OXIESEC PANEL
- Current Dir:
/
/
home
/
cubot
/
docroot
/
dist
/
static
/
js
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
๐
..
-
08/14/2022 11:12:13 AM
rwxr-xr-x
๐
20.001765676a244701b2db.js
1.56 MB
08/14/2022 11:12:10 AM
rw-r--r--
๐
21.a4548d4c25aafb117be8.js
1.34 MB
08/14/2022 11:12:12 AM
rw-r--r--
๐
22.12a943634beff3377a32.js
1.36 MB
08/14/2022 11:12:13 AM
rw-r--r--
๐
23.92eaf8eeb23617895680.js
42.35 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
24.d34620d747e0ad596977.js
6.23 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
25.bb68d7e8df5cd0d210aa.js
4.14 KB
08/14/2022 11:12:10 AM
rw-r--r--
๐
26.0f01cb0542aeb1ae63e0.js
2.06 KB
08/14/2022 11:12:10 AM
rw-r--r--
๐
27.c24fb49cd4265d110009.js
2.05 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
28.cbdd9a2e36494b8e7e7c.js
326 bytes
08/14/2022 11:12:12 AM
rw-r--r--
๐
29.bb4f0a1e06115e10ae26.js
318 bytes
08/14/2022 11:12:12 AM
rw-r--r--
๐
app.1b8fe5ff1cc27d237ff4.js
449.08 KB
08/14/2022 11:12:09 AM
rw-r--r--
๐
app.c38340ea9793effbf0cc.js
53.89 KB
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.axios.0f184e0c0ec7c3bf6d60.js
11.59 KB
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.axios.15d412cfc41c0d21ab9c.js
18.51 KB
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.babel-helper-vue-jsx-merge-props.4db6005eaaa827ce60d3.js
645 bytes
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.babel.8476c741762c6007469c.js
2.18 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.base64-js.3c73d92c1233dcf7fab2.js
1.44 KB
08/14/2022 11:12:08 AM
rw-r--r--
๐
npm.base64-js.8653aea2a2e8c68c989c.js
1.44 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.buffer.87eee1fdab30c7c447c4.js
19.44 KB
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.buffer.ca44dbdf342d0855fb11.js
19.44 KB
08/14/2022 11:12:10 AM
rw-r--r--
๐
npm.css-loader.fed8e2bdea243750b36b.js
957 bytes
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.d3-hierarchy.c8c2253339c4e4676685.js
13.5 KB
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.d3-time-format.314f5f8a7d9abf16cf84.js
9.5 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.d3-time.2ec89e60084d53c9e7c7.js
3.75 KB
08/14/2022 11:12:10 AM
rw-r--r--
๐
npm.d3.c84643ba0f2321d8c13d.js
147.42 KB
08/14/2022 11:12:10 AM
rw-r--r--
๐
npm.datatables.net-dt.c7f5903c42b05464134b.js
345 bytes
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.datatables.net-fixedheader-dt.aa37425848e58d6bde14.js
84 bytes
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.datatables.net-fixedheader.46bde606367c4eb7a765.js
7.05 KB
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.datatables.net-rowgroup-dt.e9ba3b551c9330e0084e.js
84 bytes
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.datatables.net-rowgroup.85c73efc2eba2ad7ab35.js
3.77 KB
08/14/2022 11:12:10 AM
rw-r--r--
๐
npm.datatables.net.86b1042b41e49f6a3d21.js
83.41 KB
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.es6-promise.f1633e965e20484156d8.js
6.34 KB
08/14/2022 11:12:08 AM
rw-r--r--
๐
npm.events.3fa62db403dfbe2fc018.js
5.95 KB
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.fast-isnumeric.fec6d11633acc742b8e8.js
247 bytes
08/14/2022 11:12:08 AM
rw-r--r--
๐
npm.fuzzysearch.0938685bd6633c551ce3.js
297 bytes
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.gl-mat4.fdfd66cc38eeec8d161e.js
10.65 KB
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.has-hover.907920b8622d929b53f5.js
237 bytes
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.has-passive-events.560bcb1bb541045c251d.js
321 bytes
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.ieee754.4ec539d8f5a9fbc180f5.js
950 bytes
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.is-browser.f246585d9104fe9e25a8.js
96 bytes
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.is-mobile.48d8b05c828b3c18002b.js
1.18 KB
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.is-promise.6ffb18ac659be0a497d8.js
208 bytes
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.is-string-blank.5334607a98160cdac3dc.js
341 bytes
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.isarray.29b32ffad4770d2466ef.js
179 bytes
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.jquery.c4898326f8ac5056493e.js
88.11 KB
08/14/2022 11:12:10 AM
rw-r--r--
๐
npm.jquery.dcead76af3c1acc438cb.js
88.12 KB
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.leaflet-iconmaterial.9e7704104018a6b015d3.js
1.86 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.leaflet.6260117c48642af3eead.js
145.1 KB
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.lodash.ad589824b88fa286c327.js
74.62 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.material-design-icons-iconfont.bf1884c0a9878c763687.js
86 bytes
08/14/2022 11:12:10 AM
rw-r--r--
๐
npm.material-design-icons-iconfont.d238215181d1a4a0cff9.js
85 bytes
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.mdi.2ae0351efe2bb2e096c1.js
84 bytes
08/14/2022 11:12:10 AM
rw-r--r--
๐
npm.mdi.3e8905ec49c0a0f711e9.js
83 bytes
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.mouse-event-offset.07f04de76d630c5f1838.js
348 bytes
08/14/2022 11:12:08 AM
rw-r--r--
๐
npm.nepali-date.9b750665a780dd9d904c.js
10.88 KB
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.parse-svg-path.04dac16481785c4040f8.js
594 bytes
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.plotly.js.9015f25c707fe7c31a04.js
927.17 KB
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.polybooljs.c669c4c7d010129d55ef.js
13.24 KB
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.process.672ccd900c13d8ccad5e.js
1.7 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.process.f7136e61a24777c18bb1.js
1.7 KB
08/14/2022 11:12:10 AM
rw-r--r--
๐
npm.riophae.da8a0ae391caf1ec1a59.js
54.66 KB
08/14/2022 11:12:10 AM
rw-r--r--
๐
npm.setimmediate.97a010d57e48e8e6dd93.js
1.7 KB
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.setimmediate.baa1342e5a67a7e4b515.js
1.7 KB
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.sortablejs.143626fccb69f528ad8e.js
42.32 KB
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.sortablejs.79afed1fc8dca83af1ce.js
42.32 KB
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.timers-browserify.569c8e4db69b15e690ac.js
1.11 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.timers-browserify.8c4d117f6b41f342b947.js
1.11 KB
08/14/2022 11:12:08 AM
rw-r--r--
๐
npm.tinycolor2.feeaa4db2b7598d5c03f.js
14.32 KB
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.vue-grid-layout.3d9d54ac10daf8c24e35.js
200.89 KB
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.vue-loader.4fa50e6b376fc7f906b4.js
874 bytes
08/14/2022 11:12:10 AM
rw-r--r--
๐
npm.vue-loader.98a4f66fcc2fa4294a39.js
874 bytes
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.vue-router.6f244f19990ff9797bce.js
25.91 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.vue-router.dd9aa71234a46e167810.js
25.91 KB
08/14/2022 11:12:10 AM
rw-r--r--
๐
npm.vue-style-loader.b5103048442cbb4f316a.js
2.54 KB
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.vue.025f17956148404b92b3.js
91.34 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.vue.5fbfd768c05128cba78e.js
91.34 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.vue2-leaflet.2ce388f74cc9b4a71af9.js
39.52 KB
08/14/2022 11:12:10 AM
rw-r--r--
๐
npm.vuedraggable.d71406d943ce8a562b25.js
34.36 KB
08/14/2022 11:12:10 AM
rw-r--r--
๐
npm.vuedraggable.e5a5dc383ec611ffdd45.js
34.36 KB
08/14/2022 11:12:10 AM
rw-r--r--
๐
npm.vuetify-loader.b9040a74dd4c7263e8d4.js
331 bytes
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.vuetify.68388ac2cb55cac69cf2.js
791.27 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.vuetify.8b705a4efa5f227391c5.js
779.14 KB
08/14/2022 11:12:10 AM
rw-r--r--
๐
npm.vuex.087c99b4ef23a9ff8a58.js
9.41 KB
08/14/2022 11:12:11 AM
rw-r--r--
๐
npm.vuex.de4062b5d3a514d40c97.js
9.41 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.watch-size.ba2013ab9280cef7fc05.js
1.03 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
npm.webpack.231bc6e559c13c0b9c31.js
211 bytes
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.webpack.7112bc5b47c289e366e3.js
518 bytes
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.xlsx.157b545e12627b2cf299.js
886.5 KB
08/14/2022 11:12:09 AM
rw-r--r--
๐
npm.xlsx.68a305afa3732a4e4ae1.js
459.19 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
runtime.96b4b610f5ae334b0eeb.js
1.46 KB
08/14/2022 11:12:12 AM
rw-r--r--
๐
runtime.c1da4fc9523c87a39de0.js
3.55 KB
08/14/2022 11:12:08 AM
rw-r--r--
Editing: 22.12a943634beff3377a32.js
Close
(window.webpackJsonp=window.webpackJsonp||[]).push([[22,4,5],{"+1bK":function(e,t,n){"use strict";var r=n("/CZE"),a=n("0RW4"),i=n("DzeQ"),o=n("WeBh");function l(e){return e.data.data.pid}t.findEntryWithLevel=function(e,n){var r;return n&&e.eachAfter((function(e){if(t.getPtId(e)===n)return r=e.copy()})),r||e},t.findEntryWithChild=function(e,n){var r;return e.eachAfter((function(e){for(var a=e.children||[],i=0;i<a.length;i++){var o=a[i];if(t.getPtId(o)===n)return r=e.copy()}})),r||e},t.isEntry=function(e){return!e.parent},t.isLeaf=function(e){return!e.children},t.getPtId=function(e){return e.data.data.id},t.getPtLabel=function(e){return e.data.data.label},t.getValue=function(e){return e.value},t.isHierarchyRoot=function(e){return""===l(e)},t.setSliceCursor=function(e,n,r){var a=r.isTransitioning;if(!a){var o=e.datum();a=r.hideOnRoot&&t.isHierarchyRoot(o)||r.hideOnLeaves&&t.isLeaf(o)}i(e,a?null:"pointer")},t.getInsideTextFontKey=function(e,t,n,a,i){var o=(i||{}).onPathbar?"pathbar.textfont":"insidetextfont",l=n.data.data.i;return r.castOption(t,l,o+"."+e)||r.castOption(t,l,"textfont."+e)||a.size},t.getOutsideTextFontKey=function(e,t,n,a){var i=n.data.data.i;return r.castOption(t,i,"outsidetextfont."+e)||r.castOption(t,i,"textfont."+e)||a.size},t.isOutsideText=function(e,n){return!e._hasColorscale&&t.isHierarchyRoot(n)},t.determineTextFont=function(e,n,i,o){return t.isOutsideText(e,n)?function(e,n,r){return{color:t.getOutsideTextFontKey("color",e,n,r),family:t.getOutsideTextFontKey("family",e,n,r),size:t.getOutsideTextFontKey("size",e,n,r)}}(e,n,i):function(e,n,i,o){var l=(o||{}).onPathbar,s=n.data.data,c=s.i,u=r.castOption(e,c,(l?"pathbar.textfont":"insidetextfont")+".color");return!u&&e._input.textfont&&(u=r.castOption(e._input,c,"textfont.color")),{color:u||a.contrast(s.color),family:t.getInsideTextFontKey("family",e,n,i,o),size:t.getInsideTextFontKey("size",e,n,i,o)}}(e,n,i,o)},t.hasTransition=function(e){return!!(e&&e.duration>0)},t.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0},t.isHeader=function(e,n){return!(t.isLeaf(e)||e.depth===n._maxDepth-1)},t.getParent=function(e,n){return t.findEntryWithLevel(e,l(n))},t.listPath=function(e,n){var r=e.parent;if(!r)return[];var a=n?[r.data[n]]:[r];return t.listPath(r,n).concat(a)},t.getPath=function(e){return t.listPath(e,"label").join("/")+"/"},t.formatValue=o.formatPieValue,t.formatPercent=function(e,t){var n=r.formatPercent(e,0);return"0%"===n&&(n=o.formatPiePercent(e,t)),n}},"+1rr":function(e,t,n){"use strict";var r=n("EHyX"),a=n("lNV6").hovertemplateAttrs,i=n("lNV6").texttemplateAttrs,o=n("9Okp"),l=n("mEVB"),s=n("Gl7E"),c=n("kJIm").extendFlat,u=l({editType:"calc",arrayOk:!0,colorEditType:"style",description:""}),d=c({},r.marker.line.width,{dflt:0}),h=c({width:d,editType:"calc"},o("marker.line")),f=c({line:h,editType:"calc"},o("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,role:"style",editType:"style",description:"Sets the opacity of the bars."}});e.exports={x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,text:r.text,texttemplate:i({editType:"plot"},{keys:s.eventDataKeys}),hovertext:r.hovertext,hovertemplate:a({},{keys:s.eventDataKeys}),textposition:{valType:"enumerated",role:"info",values:["inside","outside","auto","none"],dflt:"none",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."].join(" ")},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",role:"info",editType:"plot",description:["Determines if texts are kept at center or start/end points in `textposition` *inside* mode."].join(" ")},textangle:{valType:"angle",dflt:"auto",role:"info",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:c({},u,{description:"Sets the font used for `text`."}),insidetextfont:c({},u,{description:"Sets the font used for `text` lying inside the bar."}),outsidetextfont:c({},u,{description:"Sets the font used for `text` lying outside the bar."}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],role:"info",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:c({},r.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",role:"info",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,role:"info",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,role:"info",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,role:"info",editType:"calc",description:["Sets the bar width (in position axis units)."].join(" ")},marker:f,offsetgroup:{valType:"string",role:"info",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",role:"info",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:r.selected.marker.opacity,color:r.selected.marker.color,editType:"style"},textfont:r.selected.textfont,editType:"style"},unselected:{marker:{opacity:r.unselected.marker.opacity,color:r.unselected.marker.color,editType:"style"},textfont:r.unselected.textfont,editType:"style"},r:r.r,t:r.t,_deprecated:{bardir:{valType:"enumerated",role:"info",editType:"calc",values:["v","h"],description:"Renamed to `orientation`."}}}},"+8Ue":function(e,t,n){"use strict";var r=n("L2JU"),a={name:"cub-data-table",props:{headers:Array,chartdataJSON:Array,dataTableCurrenyFormat:{type:String,default:"Default"},showCurrency:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0}},data:()=>({dimensionCount:0,totalArray:[],sortBy:[],sortDesc:[],search:"",shortFormatItems:["Default","Million","Billion"],dataTableHeight:150,isFixedHeader:!0,rowsPerPage:10,rowsPerPageItems:[5,10,25,100],monthNames:["JAN","FEB","MAR","APR","MAY","JUNE","JULY","AUG","SEP","OCT","NOV","DEC"],reportItems:[],sortOrderDict:{}}),created(){this.chartdataJSON.length<=5?(this.isFixedHeader=!1,this.dataTableHeight=void 0):(this.isFixedHeader=!0,this.dataTableHeight=450);for(var e=0;e<this.headers.length;e++)if(this.headers[e].itemId<1e4){this.dimensionCount++;var t=this.getItemMetaById(this.headers[e].itemId);this.reportItems.push(t),"sort"==t.DataSubType&&(this.sortOrderDict[t.Name]=this.getSortOrder(t.Id))}else{t=this.getItemMetaById(this.headers[e].itemId);if(this.reportItems.push(t),this.chartdataJSON.length){var n={},r=0,a=0;n.itemId=t.Id;for(var i=0,o=Number(this.chartdataJSON[0][this.headers[e].text]),l=Number(this.chartdataJSON[0][this.headers[e].text]),s=0;s<this.chartdataJSON.length;s++)i+=a=Number(this.chartdataJSON[s][this.headers[e].text]),o=o<a?o:a,l=l>a?l:a;r="Min"==t.AggFunction?o:"Max"==t.AggFunction?l:"avg"==t.AggFunction?i/this.chartdataJSON.length:i,n.value=r,this.totalArray.push(n)}}},computed:{...Object(r.b)(["getSortOrder","getItemMetaById"]),shortFormat:{get:function(){return this.dataTableCurrenyFormat},set:function(e){this.$emit("update:dataTableCurrenyFormat",e)}},filteredHeaders:{get:function(){return this.headers},set:function(e){return e}}},methods:{rowClicked(e){console.log(e)},getItemDataByName(e){for(var t=0;t<this.reportItems.length;t++)if(this.reportItems[t].Name==e)return this.reportItems[t]},customSort(){var e=this.chartdataJSON,t=this.sortBy,n=this.sortDesc;this.headers;return e.sort((e,r)=>{for(var a=0;a<t.length;a++){var i=this.getItemDataByName(t[a]),o=0;if(i.Id>1e4?o=e[t[a]]-r[t[a]]:"sort"!=i.DataSubType?o=e[t[a]].toLowerCase().localeCompare(r[t[a]].toLowerCase()):(o=this.sortOrderDict[t[a]][e[t[a]]]-this.sortOrderDict[t[a]][r[t[a]]],isNaN(o)&&(o=0)),0!=o)return n[a]?-1*o:o}return 0}),e},getDisplayValue(e,t){if(t>1e4){var n=this.getItemMetaById(t),r=getFormat(n.Format),a=r.prec,i=void 0;i="i"==r.currency?"en-IN":"en-US";var o={};o.maximumFractionDigits=a,r.suffix||("Million"==this.shortFormat?e/=1e6:"Billion"==this.shortFormat&&(e/=1e9)),e=Number(e).toLocaleString(i,o),r.prefix&&(e=r.prefix+e),r.suffix&&(e+=r.suffix)}else{if(""!=t)"time"==(n=this.getItemMetaById(t)).Table&&"month"==n.Column&&(e=this.monthNames[e-1])}return e},getDisplayStyle(e){var t="";e>1e4?(t+="text-align:right;",t+="white-space:nowrap;"):(t+="text-align:left;",""!=e&&"Date"==this.getItemMetaById(e).DataType&&(t+="white-space:nowrap;"));return t}}},i=(n("/bfX"),n("KHd+")),o=Object(i.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-card",{staticClass:"elevation-0",staticStyle:{height:"100%",overflow:"hidden auto"}},[n("v-layout",[e.showSearch?n("v-flex",{attrs:{sm2:""}},[n("v-text-field",{attrs:{"append-icon":"search",label:"Search","single-line":"","hide-details":""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1):e._e(),e._v(" "),n("v-spacer"),e._v(" "),e.showCurrency?n("v-flex",{attrs:{sm2:""}},[n("v-select",{attrs:{items:e.shortFormatItems,label:"Units","hide-details":""},model:{value:e.shortFormat,callback:function(t){e.shortFormat=t},expression:"shortFormat"}})],1):e._e()],1),e._v(" "),n("v-data-table",{staticClass:"elevation-0",attrs:{height:e.dataTableHeight,headers:e.headers,"items-per-page":e.rowsPerPage,"fixed-header":e.isFixedHeader,"items-per-page-options":e.rowsPerPageItems,items:e.chartdataJSON,search:e.search,"multi-sort":"","item-key":"itemId","sort-by":e.sortBy,"sort-desc":e.sortDesc,"custom-sort":e.customSort},on:{"update:sortBy":function(t){e.sortBy=t},"update:sort-by":function(t){e.sortBy=t},"update:sortDesc":function(t){e.sortDesc=t},"update:sort-desc":function(t){e.sortDesc=t}},scopedSlots:e._u([e.chartdataJSON.length?{key:"body",fn:function(t){var r=t.items,a=t.headers;return[n("tbody",[e._l(r,(function(t,r){return n("tr",{key:r,on:{click:function(n){return e.rowClicked(t)}}},[e._l(a,(function(r){return[n("td",{key:r.itemId,style:e.getDisplayStyle(r.itemId)},[e._v(e._s(e.getDisplayValue(t[r.text],r.itemId)))])]}))],2)})),e._v(" "),e.chartdataJSON.length>1?n("tr",[n("td",{staticClass:"text-center",attrs:{colspan:e.dimensionCount}},[e._v("Grand total")]),e._v(" "),e._l(e.totalArray,(function(t){return[n("td",{key:t.itemId,staticStyle:{"text-align":"right","white-space":"nowrap"}},[e._v(e._s(e.getDisplayValue(t.value,t.itemId)))])]}))],2):e._e()],2)]}}:null,e.chartdataJSON.length>1?{key:"body.append",fn:function(t){return[n("tr",[e._l(e.totalArray,(function(t,r){return[n("td",{key:r,staticClass:"text-center"},[e._v(e._s(t))])]}))],2)]}}:null],null,!0)},[e._v(" "),e._v(" "),n("template",{slot:"no-data"},[n("v-alert",{attrs:{value:!0,color:"error",icon:"warning"}},[e._v("Sorry, nothing to display here :(")])],1)],2)],1)}),[],!1,null,null,null);t.a=o.exports},"+KUA":function(e,t){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,n,r){var a=n[0],i=n[1],o=r[0],l=r[1],s=t[0];return(o-a)*(t[1]-i)-(l-i)*(s-a)>=-e},pointBetween:function(t,n,r){var a=t[1]-n[1],i=r[0]-n[0],o=t[0]-n[0],l=r[1]-n[1],s=o*i+a*l;return!(s<e)&&!(s-(i*i+l*l)>-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])<e},pointsSameY:function(t,n){return Math.abs(t[1]-n[1])<e},pointsSame:function(e,n){return t.pointsSameX(e,n)&&t.pointsSameY(e,n)},pointsCompare:function(e,n){return t.pointsSameX(e,n)?t.pointsSameY(e,n)?0:e[1]<n[1]?-1:1:e[0]<n[0]?-1:1},pointsCollinear:function(t,n,r){var a=t[0]-n[0],i=t[1]-n[1],o=n[0]-r[0],l=n[1]-r[1];return Math.abs(a*l-o*i)<e},linesIntersect:function(t,n,r,a){var i=n[0]-t[0],o=n[1]-t[1],l=a[0]-r[0],s=a[1]-r[1],c=i*s-o*l;if(Math.abs(c)<e)return!1;var u=t[0]-r[0],d=t[1]-r[1],h=(l*d-s*u)/c,f=(i*d-o*u)/c,p={alongA:0,alongB:0,pt:[t[0]+h*i,t[1]+h*o]};return p.alongA=h<=-e?-2:h<e?-1:h-1<=-e?0:h-1<e?1:2,p.alongB=f<=-e?-2:f<e?-1:f-1<=-e?0:f-1<e?1:2,p},pointInsideRegion:function(t,n){for(var r=t[0],a=t[1],i=n[n.length-1][0],o=n[n.length-1][1],l=!1,s=0;s<n.length;s++){var c=n[s][0],u=n[s][1];u-a>e!=o-a>e&&(i-c)*(a-u)/(o-u)+c-r>e&&(l=!l),i=c,o=u}return l}};return t}},"+Y3G":function(e,t,n){"use strict";function r(e,t){var n,r,a=[0,0,0,0];for(n=0;n<4;++n)for(r=0;r<4;++r)a[r]+=e[4*n+r]*t[n];return a}e.exports=function(e,t){return r(e.projection,r(e.view,r(e.model,[t[0],t[1],t[2],1])))}},"+Yeh":function(e,t,n){"use strict";var r=n("L2JU"),a={name:"cub-data-table-crosstab",props:["report","chartdata","id"],mixins:[n("al3m").a],data:()=>({dimensionCount:0,rowsPerPage:5,page:1,rowsPerPageItems:[5,10,25,100],shortFormatItems:["Default","Million","Billion"],shortFormat:"Default",totalArray:[],itemList:[],ctHeaders:"",ctData:"",monthNames:["JAN","FEB","MAR","APR","MAY","JUNE","JULY","AUG","SEP","OCT","NOV","DEC"]}),computed:{...Object(r.b)(["getMetaNameById","getItemMetaById"])},created(){this.itemList=this.$store.state.itemList;for(var e=this.report.DimensionIds.split(":"),t=this.report.MeasureIds.split(":"),n=t.concat(e[e.length-1]),r=new Array,a=0;a<e.length-1;a++)r.push(e[a]);var i=new Array;for(a=0;a<n.length;a++)n.length,i.push(this.getItemMetaById(n[a]));var o=new Array;for(a=0;a<e.length-1;a++)o.push(this.getItemMetaById(e[a]));var l=new Array;for(a=0;a<t.length;a++)l.push(this.getItemMetaById(t[a]));var s=new Array,c=new Array,u=new Array,d=new Array,h=new Array;for(a=0;a<l.length;a++)c.push(l[a].Name);for(a=0;a<i.length;a++)h.push(i[a].Id),s.push(i[a].Name);for(a=0;a<o.length;a++)d.push(o[a].Id),u.push(o[a].Name);var f=this.chartdata.slice(1);this.ctHeaders=this.getHeader(f,o.length,i.length,l.length,d,h,s,u,c,"",""),this.ctData=this.getAllValues(this.ctHeaders,f,o.length,i.length,l.length,c);var p=this.ctHeaders[this.ctHeaders.length-1];for(a=0;a<p.length;a++)p[a].itemId<1e4&&this.dimensionCount++;for(a=0;a<p.length;a++)if(p[a].itemId>1e4){var g=this.getItemMetaById(p[a].itemId);if(this.ctData.length){var v={},m=0,y=0;v.itemId=g.Id;for(var x=0,b=Number(this.ctData[0][a]),w=Number(this.ctData[0][a]),_=0;_<this.ctData.length;_++)x+=y=Number(this.ctData[_][a]),b=b<y?b:y,w=w>y?w:y;m="Min"==g.AggFunction?b:"Max"==g.AggFunction?w:"avg"==g.AggFunction?x/this.ctData.length:x,v.value=m,this.totalArray.push(v)}}},methods:{getDisplayValue(e,t){if(0==t)return"";if(t>1e4){var n=this.getItemMetaById(t),r=getFormat(n.Format),a=r.prec,i=void 0;i="i"==r.currency?"en-IN":"en-US";var o={};o.maximumFractionDigits=a,r.suffix||("Million"==this.shortFormat?e/=1e6:"Billion"==this.shortFormat&&(e/=1e9)),e=Number(e).toLocaleString(i,o),r.prefix&&(e=r.prefix+e),r.suffix&&(e+=r.suffix)}else{"time"==(n=this.getItemMetaById(t)).Table&&"month"==n.Column&&(e=this.monthNames[e-1])}return e},getDisplayStyle(e){var t="";if(0==e)return"";e>1e4?(t+="text-align:right;",t+="white-space:nowrap;"):(t+="text-align:left;","Date"==this.getItemMetaById(e).DataType&&(t+="white-space:nowrap;"));return t}}},i=n("KHd+"),o=Object(i.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-card",{staticClass:"elevation-0",staticStyle:{height:"80%",overflow:"auto"}},[n("v-card-title",{staticClass:"py-0"},[n("v-spacer"),e._v(" "),n("v-flex",{attrs:{sm2:""}},[n("v-select",{attrs:{items:e.shortFormatItems,label:"Curreny Format","hide-details":""},model:{value:e.shortFormat,callback:function(t){e.shortFormat=t},expression:"shortFormat"}})],1)],1),e._v(" "),n("v-data-table",{attrs:{id:e.id,"disable-sort":"","disable-filtering":"","hide-default-header":"",headers:e.ctHeaders,items:e.ctData,"items-per-page":e.rowsPerPage,page:e.page},on:{"update:page":function(t){e.page=t}},scopedSlots:e._u([{key:"header",fn:function(t){var r=t.props.headers;return[n("thead",e._l(r,(function(t,r){return n("tr",{key:r},[e._l(t,(function(t){return[n("th",{key:t,attrs:{role:"columnheader",colspan:t.colspan}},[e._v(e._s(t.value))])]}))],2)})),0)]}},{key:"no-data",fn:function(){return[n("v-alert",{attrs:{value:!0,color:"error",icon:"warning"}},[e._v("Sorry, nothing to display here :(")])]},proxy:!0},{key:"body",fn:function(t){var r=t.headers,a=t.items;return[n("tbody",[e._l(a,(function(t,a){return n("tr",{key:a},[e._l(t,(function(t,a){return[n("td",{key:t,style:e.getDisplayStyle(r[r.length-1][a].itemId)},[e._v(e._s(e.getDisplayValue(t,r[r.length-1][a].itemId)))])]}))],2)})),e._v(" "),n("tr",[n("td",{staticClass:"text-center",attrs:{colspan:e.dimensionCount}},[e._v("Grand total")]),e._v(" "),e._l(e.totalArray,(function(t){return[n("td",{key:t,staticStyle:{"text-align":"right","white-space":"nowrap"}},[e._v(e._s(e.getDisplayValue(t.value,t.itemId)))])]}))],2)],2)]}}])})],1)}),[],!1,null,null,null);t.a=o.exports},"+gYs":function(e,t,n){"use strict";var r=n("EHyX"),a=r.marker,i=n("kJIm").extendFlat,o=["Area traces are deprecated!","Please switch to the *barpolar* trace type."].join(" ");e.exports={r:i({},r.r,{description:[o,"Sets the radial coordinates","for legacy polar chart only."].join(" ")}),t:i({},r.t,{description:[o,"Sets the angular coordinates","for legacy polar chart only."].join(" ")}),marker:{color:i({},a.color,{description:[o,a.color.description].join(" ")}),size:i({},a.size,{description:[o,a.size.description].join(" ")}),symbol:i({},a.symbol,{description:[o,a.symbol.description].join(" ")}),opacity:i({},a.opacity,{description:[o,a.opacity.description].join(" ")}),editType:"calc"}}},"+lml":function(e,t,n){"use strict";var r=n("bljh");e.exports=function(e,t,n){var a=e.selectAll("g."+n.replace(/\s/g,".")).data(t,(function(e){return e[0].trace.uid}));a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var i=e.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each((function(e){e[0][i]=r.select(this)})),a}},"+oog":function(e,t,n){"use strict";var r=n("bljh"),a=n("Zss7"),i=n("Nx4I"),o=n("/CZE"),l=n("wlgE").makeColorScaleFuncFromTrace,s=n("c8nr");function c(e,t){var n=t.length-2,r=o.constrain(o.findBin(e,t),0,n),a=t[r],i=t[r+1],l=o.constrain(r+(e-a)/(i-a)-.5,0,n),s=Math.round(l),c=Math.abs(l-s);return l&&l!==n&&c?{bin0:s,frac:c,bin1:Math.round(s+c/(l-s))}:{bin0:s,bin1:s,frac:0}}function u(e,t){var n=t.length-1,r=o.constrain(o.findBin(e,t),0,n),a=t[r],i=(e-a)/(t[r+1]-a)||0;return i<=0?{bin0:r,bin1:r,frac:0}:i<.5?{bin0:r,bin1:r+1,frac:i}:{bin0:r+1,bin1:r,frac:1-i}}function d(e,t,n){e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=Math.round(255*n[3])}e.exports=function(e,t,n,h){var f=t.xaxis,p=t.yaxis;o.makeTraceGroups(h,n,"hm").each((function(t){var n,h,g,v,m,y,x=r.select(this),b=t[0],w=b.trace,_=b.z,k=b.x,T=b.y,M=b.xCenter,A=b.yCenter,S=i.traceIs(w,"contour"),C=S?"best":w.zsmooth,L=_.length,I=o.maxRowLength(_),E=!1,O=!1;for(y=0;void 0===n&&y<k.length-1;)n=f.c2p(k[y]),y++;for(y=k.length-1;void 0===h&&y>0;)h=f.c2p(k[y]),y--;for(h<n&&(g=h,h=n,n=g,E=!0),y=0;void 0===v&&y<T.length-1;)v=p.c2p(T[y]),y++;for(y=T.length-1;void 0===m&&y>0;)m=p.c2p(T[y]),y--;if(m<v&&(g=v,v=m,m=g,O=!0),S&&(M=k,A=T,k=b.xfill,T=b.yfill),"fast"!==C){var D="best"===C?0:.5;n=Math.max(-D*f._length,n),h=Math.min((1+D)*f._length,h),v=Math.max(-D*p._length,v),m=Math.min((1+D)*p._length,m)}var P=Math.round(h-n),z=Math.round(m-v);if(P<=0||z<=0){x.selectAll("image").data([]).exit().remove()}else{var N,j;"fast"===C?(N=I,j=L):(N=P,j=z);var R=document.createElement("canvas");R.width=N,R.height=j;var F,B,H=R.getContext("2d"),V=l(w,{noNumericCheck:!0,returnArray:!0});"fast"===C?(F=E?function(e){return I-1-e}:o.identity,B=O?function(e){return L-1-e}:o.identity):(F=function(e){return o.constrain(Math.round(f.c2p(k[e])-n),0,P)},B=function(e){return o.constrain(Math.round(p.c2p(T[e])-v),0,z)});var G,U,q,Z,W,Y=B(0),X=[Y,Y],$=E?0:1,J=O?0:1,K=0,Q=0,ee=0,te=0;if(C){var ne,re=0;try{ne=new Uint8Array(P*z*4)}catch(e){ne=new Array(P*z*4)}if("best"===C){var ae,ie,oe,le=M||k,se=A||T,ce=new Array(le.length),ue=new Array(se.length),de=new Array(P),he=M?u:c,fe=A?u:c;for(y=0;y<le.length;y++)ce[y]=Math.round(f.c2p(le[y])-n);for(y=0;y<se.length;y++)ue[y]=Math.round(p.c2p(se[y])-v);for(y=0;y<P;y++)de[y]=he(y,ce);for(U=0;U<z;U++)for(ie=_[(ae=fe(U,ue)).bin0],oe=_[ae.bin1],y=0;y<P;y++,re+=4)d(ne,re,W=Te(ie,oe,de[y],ae))}else for(U=0;U<L;U++)for(Z=_[U],X=B(U),y=0;y<P;y++)W=ke(Z[y],1),d(ne,re=4*(X*P+F(y)),W);var pe=H.createImageData(P,z);try{pe.data.set(ne)}catch(e){var ge=pe.data,ve=ge.length;for(U=0;U<ve;U++)ge[U]=ne[U]}H.putImageData(pe,0,0)}else{var me=w.xgap,ye=w.ygap,xe=Math.floor(me/2),be=Math.floor(ye/2);for(U=0;U<L;U++)if(Z=_[U],X.reverse(),X[J]=B(U+1),X[0]!==X[1]&&void 0!==X[0]&&void 0!==X[1])for(G=[q=F(0),q],y=0;y<I;y++)G.reverse(),G[$]=F(y+1),G[0]!==G[1]&&void 0!==G[0]&&void 0!==G[1]&&(W=ke(Z[y],(G[1]-G[0])*(X[1]-X[0])),H.fillStyle="rgba("+W.join(",")+")",H.fillRect(G[0]+xe,X[0]+be,G[1]-G[0]-me,X[1]-X[0]-ye))}Q=Math.round(Q/K),ee=Math.round(ee/K),te=Math.round(te/K);var we=a("rgb("+Q+","+ee+","+te+")");e._hmpixcount=(e._hmpixcount||0)+K,e._hmlumcount=(e._hmlumcount||0)+K*we.getLuminance();var _e=x.selectAll("image").data(t);_e.enter().append("svg:image").attr({xmlns:s.svg,preserveAspectRatio:"none"}),_e.attr({height:z,width:P,x:n,y:v,"xlink:href":R.toDataURL("image/png")})}function ke(e,t){if(void 0!==e){var n=V(e);return n[0]=Math.round(n[0]),n[1]=Math.round(n[1]),n[2]=Math.round(n[2]),K+=t,Q+=n[0]*t,ee+=n[1]*t,te+=n[2]*t,n}return[0,0,0,0]}function Te(e,t,n,r){var a=e[n.bin0];if(void 0===a)return ke(void 0,1);var i,o=e[n.bin1],l=t[n.bin0],s=t[n.bin1],c=o-a||0,u=l-a||0;return i=void 0===o?void 0===s?0:void 0===l?2*(s-a):2*(2*s-l-a)/3:void 0===s?void 0===l?0:2*(2*a-o-l)/3:void 0===l?2*(2*s-o-a)/3:s+a-o-l,ke(a+n.frac*c+r.frac*(u+n.frac*i))}}))}},"/0lf":function(e,t,n){"use strict";var r=n("bljh"),a=n("g9E0"),i=n("BkK/"),o=n("c8nr");e.exports=function(e){var t,n,l=e._fullLayout,s=[],c={},u=[];for(n=0;n<l.images.length;n++){var d=l.images[n];if(d.visible)if("below"===d.layer&&"paper"!==d.xref&&"paper"!==d.yref){t=d.xref+d.yref;var h=l._plots[t];if(!h){u.push(d);continue}h.mainplot&&(t=h.mainplot.id),c[t]||(c[t]=[]),c[t].push(d)}else"above"===d.layer?s.push(d):u.push(d)}var f={left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},p={top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}};function g(t){var n=r.select(this);if(this._imgSrc!==t.source)if(n.attr("xmlns",o.svg),t.source&&"data:"===t.source.slice(0,5))n.attr("xlink:href",t.source),this._imgSrc=t.source;else{var a=new Promise(function(e){var r=new Image;function a(){n.remove(),e()}this.img=r,r.setAttribute("crossOrigin","anonymous"),r.onerror=a,r.onload=function(){var t=document.createElement("canvas");t.width=this.width,t.height=this.height,t.getContext("2d").drawImage(this,0,0);var r=t.toDataURL("image/png");n.attr("xlink:href",r),e()},n.on("error",a),r.src=t.source,this._imgSrc=t.source}.bind(this));e._promises.push(a)}}function v(t){var n=r.select(this),o=i.getFromId(e,t.xref),s=i.getFromId(e,t.yref),c=l._size,u=o?Math.abs(o.l2p(t.sizex)-o.l2p(0)):t.sizex*c.w,d=s?Math.abs(s.l2p(t.sizey)-s.l2p(0)):t.sizey*c.h,h=u*f[t.xanchor].offset,g=d*p[t.yanchor].offset,v=f[t.xanchor].sizing+p[t.yanchor].sizing,m=(o?o.r2p(t.x)+o._offset:t.x*c.w+c.l)+h,y=(s?s.r2p(t.y)+s._offset:c.h-t.y*c.h+c.t)+g;switch(t.sizing){case"fill":v+=" slice";break;case"stretch":v="none"}n.attr({x:m,y:y,width:u,height:d,preserveAspectRatio:v,opacity:t.opacity});var x=(o?o._id:"")+(s?s._id:"");a.setClipUrl(n,x?"clip"+l._uid+x:null,e)}var m=l._imageLowerLayer.selectAll("image").data(u),y=l._imageUpperLayer.selectAll("image").data(s);m.enter().append("image"),y.enter().append("image"),m.exit().remove(),y.exit().remove(),m.each((function(e){g.bind(this)(e),v.bind(this)(e)})),y.each((function(e){g.bind(this)(e),v.bind(this)(e)}));var x=Object.keys(l._plots);for(n=0;n<x.length;n++){t=x[n];var b=l._plots[t];if(b.imagelayer){var w=b.imagelayer.selectAll("image").data(c[t]||[]);w.enter().append("image"),w.exit().remove(),w.each((function(e){g.bind(this)(e),v.bind(this)(e)}))}}}},"/9aa":function(e,t,n){var r=n("NykK"),a=n("ExA7");e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},"/CZE":function(e,t,n){"use strict";var r=n("bljh"),a=n("GbLo"),i=n("6AZA"),o=i.FP_SAFE,l=i.BADNUM,s=e.exports={};s.nestedProperty=n("dNZO"),s.keyedContainer=n("Xe/Q"),s.relativeAttr=n("Lj1h"),s.isPlainObject=n("E4V0"),s.toLogRange=n("9rBw"),s.relinkPrivateKeys=n("Q1hF");var c=n("avjU");s.isTypedArray=c.isTypedArray,s.isArrayOrTypedArray=c.isArrayOrTypedArray,s.isArray1D=c.isArray1D,s.ensureArray=c.ensureArray,s.concat=c.concat,s.maxRowLength=c.maxRowLength,s.minRowLength=c.minRowLength;var u=n("09xr");s.mod=u.mod,s.modHalf=u.modHalf;var d=n("ZnKQ");s.valObjectMeta=d.valObjectMeta,s.coerce=d.coerce,s.coerce2=d.coerce2,s.coerceFont=d.coerceFont,s.coerceHoverinfo=d.coerceHoverinfo,s.coerceSelectionMarkerOpacity=d.coerceSelectionMarkerOpacity,s.validate=d.validate;var h=n("Zhzs");s.dateTime2ms=h.dateTime2ms,s.isDateTime=h.isDateTime,s.ms2DateTime=h.ms2DateTime,s.ms2DateTimeLocal=h.ms2DateTimeLocal,s.cleanDate=h.cleanDate,s.isJSDate=h.isJSDate,s.formatDate=h.formatDate,s.incrementMonth=h.incrementMonth,s.dateTick0=h.dateTick0,s.dfltRange=h.dfltRange,s.findExactDates=h.findExactDates,s.MIN_MS=h.MIN_MS,s.MAX_MS=h.MAX_MS;var f=n("3HVJ");s.findBin=f.findBin,s.sorterAsc=f.sorterAsc,s.sorterDes=f.sorterDes,s.distinctVals=f.distinctVals,s.roundUp=f.roundUp,s.sort=f.sort,s.findIndexOfMin=f.findIndexOfMin;var p=n("oBF0");s.aggNums=p.aggNums,s.len=p.len,s.mean=p.mean,s.median=p.median,s.midRange=p.midRange,s.variance=p.variance,s.stdev=p.stdev,s.interp=p.interp;var g=n("7CC7");s.init2dArray=g.init2dArray,s.transposeRagged=g.transposeRagged,s.dot=g.dot,s.translationMatrix=g.translationMatrix,s.rotationMatrix=g.rotationMatrix,s.rotationXYMatrix=g.rotationXYMatrix,s.apply2DTransform=g.apply2DTransform,s.apply2DTransform2=g.apply2DTransform2;var v=n("bkDJ");s.deg2rad=v.deg2rad,s.rad2deg=v.rad2deg,s.angleDelta=v.angleDelta,s.angleDist=v.angleDist,s.isFullCircle=v.isFullCircle,s.isAngleInsideSector=v.isAngleInsideSector,s.isPtInsideSector=v.isPtInsideSector,s.pathArc=v.pathArc,s.pathSector=v.pathSector,s.pathAnnulus=v.pathAnnulus;var m=n("bFr3");s.isLeftAnchor=m.isLeftAnchor,s.isCenterAnchor=m.isCenterAnchor,s.isRightAnchor=m.isRightAnchor,s.isTopAnchor=m.isTopAnchor,s.isMiddleAnchor=m.isMiddleAnchor,s.isBottomAnchor=m.isBottomAnchor;var y=n("GeF/");s.segmentsIntersect=y.segmentsIntersect,s.segmentDistance=y.segmentDistance,s.getTextLocation=y.getTextLocation,s.clearLocationCache=y.clearLocationCache,s.getVisibleSegment=y.getVisibleSegment,s.findPointOnPath=y.findPointOnPath;var x=n("kJIm");s.extendFlat=x.extendFlat,s.extendDeep=x.extendDeep,s.extendDeepAll=x.extendDeepAll,s.extendDeepNoArrays=x.extendDeepNoArrays;var b=n("rhNM");s.log=b.log,s.warn=b.warn,s.error=b.error;var w=n("BVrX");s.counterRegex=w.counter;var _=n("ffJW");s.throttle=_.throttle,s.throttleDone=_.done,s.clearThrottle=_.clear;var k=n("G4gu");function T(e){var t={};for(var n in e)for(var r=e[n],a=0;a<r.length;a++)t[r[a]]=+n;return t}s.getGraphDiv=k.getGraphDiv,s.isPlotDiv=k.isPlotDiv,s.removeElement=k.removeElement,s.addStyleRule=k.addStyleRule,s.addRelatedStyleRule=k.addRelatedStyleRule,s.deleteRelatedStyleRule=k.deleteRelatedStyleRule,s.clearResponsive=n("oi9M"),s.makeTraceGroups=n("+lml"),s._=n("pMAR"),s.notifier=n("AII8"),s.filterUnique=n("VWeM"),s.filterVisible=n("b8PE"),s.pushUnique=n("Whu6"),s.cleanNumber=n("8trw"),s.ensureNumber=function(e){return a(e)?(e=Number(e))<-o||e>o?l:a(e)?Number(e):l:l},s.isIndex=function(e,t){return!(void 0!==t&&e>=t)&&(a(e)&&e>=0&&e%1==0)},s.noop=n("t3iM"),s.identity=n("MGx7"),s.repeat=function(e,t){for(var n=new Array(t),r=0;r<t;r++)n[r]=e;return n},s.swapAttrs=function(e,t,n,r){n||(n="x"),r||(r="y");for(var a=0;a<t.length;a++){var i=t[a],o=s.nestedProperty(e,i.replace("?",n)),l=s.nestedProperty(e,i.replace("?",r)),c=o.get();o.set(l.get()),l.set(c)}},s.raiseToTop=function(e){e.parentNode.appendChild(e)},s.cancelTransition=function(e){return e.transition().duration(0)},s.constrain=function(e,t,n){return t>n?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},s.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},s.simpleMap=function(e,t,n,r,a){for(var i=e.length,o=new Array(i),l=0;l<i;l++)o[l]=t(e[l],n,r,a);return o},s.randstr=function e(t,n,r,a){if(r||(r=16),void 0===n&&(n=24),n<=0)return"0";var i,o,l=Math.log(Math.pow(2,n))/Math.log(r),c="";for(i=2;l===1/0;i*=2)l=Math.log(Math.pow(2,n/i))/Math.log(r)*i;var u=l-Math.floor(l);for(i=0;i<Math.floor(l);i++)c=Math.floor(Math.random()*r).toString(r)+c;u&&(o=Math.pow(r,u),c=Math.floor(Math.random()*o).toString(r)+c);var d=parseInt(c,r);return t&&t[c]||d!==1/0&&d>=Math.pow(2,n)?a>10?(s.warn("randstr failed uniqueness"),c):e(t,n,r,(a||0)+1):c},s.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={optionList:[],_newoption:function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)}};return n["_"+t]=e,n},s.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var n,r,a,i,o=e.length,l=2*o,s=2*t-1,c=new Array(s),u=new Array(o);for(n=0;n<s;n++)c[n]=(1-Math.cos(Math.PI*(n+1)/t))/(2*t);for(n=0;n<o;n++){for(i=0,r=0;r<s;r++)(a=n+r+1-t)<-o?a-=l*Math.round(a/l):a>=l&&(a-=l*Math.floor(a/l)),a<0?a=-1-a:a>=o&&(a=l-1-a),i+=e[a]*c[r];u[n]=i}return u},s.syncOrAsync=function(e,t,n){var r;function a(){return s.syncOrAsync(e,t,n)}for(;e.length;)if((r=(0,e.splice(0,1)[0])(t))&&r.then)return r.then(a).then(void 0,s.promiseError);return n&&n(t)},s.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},s.noneOrAll=function(e,t,n){if(e){var r,a=!1,i=!0;for(r=0;r<n.length;r++)null!=e[n[r]]?a=!0:i=!1;if(a&&!i)for(r=0;r<n.length;r++)e[n[r]]=t[n[r]]}},s.mergeArray=function(e,t,n,r){var a="function"==typeof r;if(s.isArrayOrTypedArray(e))for(var i=Math.min(e.length,t.length),o=0;o<i;o++){var l=e[o];t[o][n]=a?r(l):l}},s.mergeArrayCastPositive=function(e,t,n){return s.mergeArray(e,t,n,(function(e){var t=+e;return isFinite(t)&&t>0?t:0}))},s.fillArray=function(e,t,n,r){if(r=r||s.identity,s.isArrayOrTypedArray(e))for(var a=0;a<t.length;a++)t[a][n]=r(e[a])},s.castOption=function(e,t,n,r){r=r||s.identity;var a=s.nestedProperty(e,n).get();return s.isArrayOrTypedArray(a)?Array.isArray(t)&&s.isArrayOrTypedArray(a[t[0]])?r(a[t[0]][t[1]]):r(a[t]):a},s.extractOption=function(e,t,n,r){if(n in e)return e[n];var a=s.nestedProperty(t,r).get();return Array.isArray(a)?void 0:a},s.tagSelected=function(e,t,n){var r,a,i=t.selectedpoints,o=t._indexToPoints;o&&(r=T(o));for(var l=0;l<i.length;l++){var c=i[l];if(s.isIndex(c)||s.isArrayOrTypedArray(c)&&s.isIndex(c[0])&&s.isIndex(c[1])){var u=r?r[c]:c,d=n?n[u]:u;void 0!==(a=d)&&a<e.length&&(e[d].selected=1)}}},s.selIndices2selPoints=function(e){var t=e.selectedpoints,n=e._indexToPoints;if(n){for(var r=T(n),a=[],i=0;i<t.length;i++){var o=t[i];if(s.isIndex(o)){var l=r[o];s.isIndex(l)&&a.push(l)}}return a}return t},s.getTargetArray=function(e,t){var n=t.target;if("string"==typeof n&&n){var r=s.nestedProperty(e,n).get();return!!Array.isArray(r)&&r}return!!Array.isArray(n)&&n},s.minExtend=function(e,t){var n={};"object"!=typeof t&&(t={});var r,a,i,o=Object.keys(e);for(r=0;r<o.length;r++)i=e[a=o[r]],"_"!==a.charAt(0)&&"function"!=typeof i&&("module"===a?n[a]=i:Array.isArray(i)?n[a]="colorscale"===a?i.slice():i.slice(0,3):s.isTypedArray(i)?n[a]=i.subarray(0,3):n[a]=i&&"object"==typeof i?s.minExtend(e[a],t[a]):i);for(o=Object.keys(t),r=0;r<o.length;r++)"object"==typeof(i=t[a=o[r]])&&a in n&&"object"==typeof n[a]||(n[a]=i);return n},s.titleCase=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},s.containsAny=function(e,t){for(var n=0;n<t.length;n++)if(-1!==e.indexOf(t[n]))return!0;return!1},s.isIE=function(){return void 0!==window.navigator.msSaveBlob};var M=/MSIE [1-9]\./;s.isIE9orBelow=function(){return s.isIE()&&M.test(window.navigator.userAgent)};var A=/Version\/[\d\.]+.*Safari/;s.isSafari=function(){return A.test(window.navigator.userAgent)},s.isD3Selection=function(e){return e&&"function"==typeof e.classed},s.ensureSingle=function(e,t,n,r){var a=e.select(t+(n?"."+n:""));if(a.size())return a;var i=e.append(t);return n&&i.classed(n,!0),r&&i.call(r),i},s.ensureSingleById=function(e,t,n,r){var a=e.select(t+"#"+n);if(a.size())return a;var i=e.append(t).attr("id",n);return r&&i.call(r),i},s.objectFromPath=function(e,t){for(var n,r=e.split("."),a=n={},i=0;i<r.length;i++){var o=r[i],l=null,s=r[i].match(/(.*)\[([0-9]+)\]/);s?(o=s[1],l=s[2],n=n[o]=[],i===r.length-1?n[l]=t:n[l]={},n=n[l]):(i===r.length-1?n[o]=t:n[o]={},n=n[o])}return a};var S=/^([^\[\.]+)\.(.+)?/,C=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;s.expandObjectPaths=function(e){var t,n,r,a,i,o,l;if("object"==typeof e&&!Array.isArray(e))for(n in e)e.hasOwnProperty(n)&&((t=n.match(S))?(a=e[n],r=t[1],delete e[n],e[r]=s.extendDeepNoArrays(e[r]||{},s.objectFromPath(n,s.expandObjectPaths(a))[r])):(t=n.match(C))?(a=e[n],r=t[1],i=parseInt(t[2]),delete e[n],e[r]=e[r]||[],"."===t[3]?(l=t[4],o=e[r][i]=e[r][i]||{},s.extendDeepNoArrays(o,s.objectFromPath(l,s.expandObjectPaths(a)))):e[r][i]=s.expandObjectPaths(a)):e[n]=s.expandObjectPaths(e[n]));return e},s.numSeparate=function(e,t,n){if(n||(n=!1),"string"!=typeof t||0===t.length)throw new Error("Separator string required for formatting!");"number"==typeof e&&(e=String(e));var r=/(\d+)(\d{3})/,a=t.charAt(0),i=t.charAt(1),o=e.split("."),l=o[0],s=o.length>1?a+o[1]:"";if(i&&(o.length>1||l.length>4||n))for(;r.test(l);)l=l.replace(r,"$1"+i+"$2");return l+s},s.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var L=/^\w*$/;s.templateString=function(e,t){var n={};return e.replace(s.TEMPLATE_STRING_REGEX,(function(e,r){var a;return L.test(r)?a=t[r]:(n[r]=n[r]||s.nestedProperty(t,r).get,a=n[r]()),s.isValidTextValue(a)?a:""}))};var I={max:10,count:0,name:"hovertemplate"};s.hovertemplateString=function(){return D.apply(I,arguments)};var E={max:10,count:0,name:"texttemplate"};s.texttemplateString=function(){return D.apply(E,arguments)};var O=/^[:|\|]/;function D(e,t,n){var a=this,i=arguments;t||(t={});var o={};return e.replace(s.TEMPLATE_STRING_REGEX,(function(e,l,c){var u,d,h,f;for(h=3;h<i.length;h++)if(u=i[h]){if(u.hasOwnProperty(l)){d=u[l];break}if(L.test(l)||(d=o[l]||s.nestedProperty(u,l).get())&&(o[l]=d),void 0!==d)break}if(void 0===d&&a)return a.count<a.max&&(s.warn("Variable '"+l+"' in "+a.name+" could not be found!"),d=e),a.count===a.max&&s.warn("Too many "+a.name+" warnings - additional warnings will be suppressed"),a.count++,e;if(c){if(":"===c[0]&&(d=(f=n?n.numberFormat:r.format)(c.replace(O,""))(d)),"|"===c[0]){f=n?n.timeFormat.utc:r.time.format.utc;var p=s.dateTime2ms(d);d=s.formatDate(p,c.replace(O,""),!1,f)}}else t.hasOwnProperty(l+"Label")&&(d=t[l+"Label"]);return d}))}s.subplotSort=function(e,t){for(var n=Math.min(e.length,t.length)+1,r=0,a=0,i=0;i<n;i++){var o=e.charCodeAt(i)||0,l=t.charCodeAt(i)||0,s=o>=48&&o<=57,c=l>=48&&l<=57;if(s&&(r=10*r+o-48),c&&(a=10*a+l-48),!s||!c){if(r!==a)return r-a;if(o!==l)return o-l}}return a-r};var P=2e9;s.seedPseudoRandom=function(){P=2e9},s.pseudoRandom=function(){var e=P;return P=(69069*P+1)%4294967296,Math.abs(P-e)<429496729?s.pseudoRandom():P/4294967296},s.fillText=function(e,t,n){var r=Array.isArray(n)?function(e){n.push(e)}:function(e){n.text=e},a=s.extractOption(e,t,"htx","hovertext");if(s.isValidTextValue(a))return r(a);var i=s.extractOption(e,t,"tx","text");return s.isValidTextValue(i)?r(i):void 0},s.isValidTextValue=function(e){return e||0===e},s.formatPercent=function(e,t){t=t||0;for(var n=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",r=0;r<t;r++)-1!==n.indexOf(".")&&(n=(n=n.replace("0%","%")).replace(".%","%"));return n},s.isHidden=function(e){var t=window.getComputedStyle(e).display;return!t||"none"===t},s.getTextTransform=function(e){var t=e.noCenter,n=e.textX,r=e.textY,a=e.targetX,i=e.targetY,o=e.anchorX||0,l=e.anchorY||0,s=e.rotate,c=e.scale;return c?c>1&&(c=1):c=0,"translate("+(a-c*(n+o))+","+(i-c*(r+l))+")"+(c<1?"scale("+c+")":"")+(s?"rotate("+s+(t?"":" "+n+" "+r)+")":"")},s.ensureUniformFontSize=function(e,t){var n=s.extendFlat({},t);return n.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),n}},"/Hui":function(e,t,n){"use strict";var r=n("E6B2");t.calc=function(e,t){return r.calc(e,t)},t.crossTraceCalc=function(e){return r._runCrossTraceCalc("treemap",e)}},"/LJd":function(e,t,n){"use strict";e.exports={moduleType:"component",name:"colorbar",attributes:n("Z8TU"),supplyDefaults:n("jyrE"),draw:n("jezF").draw,hasColorbar:n("cIkR")}},"/LM6":function(e,t,n){"use strict";e.exports={min:"zmin",max:"zmax"}},"/NYH":function(e,t,n){"use strict";var r=n("/CZE"),a=n("89+b");e.exports=function(e,t){function n(n,i){return r.coerce(e,t,a,n,i)}n("hiddenlabels"),n("funnelareacolorway",t.colorway),n("extendfunnelareacolors")}},"/YBL":function(e,t,n){"use strict";var r=n("bljh"),a=n("u3HJ"),i=n("0RW4"),o=n("g9E0"),l=n("/CZE"),s=n("A3kh"),c=n("plED").arrayEditor,u=n("Y9zF").LINE_SPACING,d=n("PS76"),h=n("j/Ga");function f(e){return e._index}function p(e,t){return+e.attr(d.menuIndexAttrName)===t._index}function g(e,t,n,r,a,i,o,l){t.active=o,c(e.layout,d.name,t).applyUpdate("active",o),"buttons"===t.type?m(e,r,null,null,t):"dropdown"===t.type&&(a.attr(d.menuIndexAttrName,"-1"),v(e,r,a,i,t),l||m(e,r,a,i,t))}function v(e,t,n,r,a){var i=l.ensureSingle(t,"g",d.headerClassName,(function(e){e.style("pointer-events","all")})),s=a._dims,c=a.active,u=a.buttons[c]||d.blankHeaderOpts,h={y:a.pad.t,yPad:0,x:a.pad.l,xPad:0,index:0},f={width:s.headerWidth,height:s.headerHeight};i.call(y,a,u,e).call(A,a,h,f),l.ensureSingle(t,"text",d.headerArrowClassName,(function(e){e.classed("user-select-none",!0).attr("text-anchor","end").call(o.font,a.font).text(d.arrowSymbol[a.direction])})).attr({x:s.headerWidth-d.arrowOffsetX+a.pad.l,y:s.headerHeight/2+d.textOffsetY+a.pad.t}),i.on("click",(function(){n.call(S,String(p(n,a)?-1:a._index)),m(e,t,n,r,a)})),i.on("mouseover",(function(){i.call(_)})),i.on("mouseout",(function(){i.call(k,a)})),o.setTranslate(t,s.lx,s.ly)}function m(e,t,n,i,o){n||(n=t).attr("pointer-events","all");var s=function(e){return-1==+e.attr(d.menuIndexAttrName)}(n)&&"buttons"!==o.type?[]:o.buttons,c="dropdown"===o.type?d.dropdownButtonClassName:d.buttonClassName,u=n.selectAll("g."+c).data(l.filterVisible(s)),h=u.enter().append("g").classed(c,!0),f=u.exit();"dropdown"===o.type?(h.attr("opacity","0").transition().attr("opacity","1"),f.transition().attr("opacity","0").remove()):f.remove();var p=0,v=0,m=o._dims,x=-1!==["up","down"].indexOf(o.direction);"dropdown"===o.type&&(x?v=m.headerHeight+d.gapButtonHeader:p=m.headerWidth+d.gapButtonHeader),"dropdown"===o.type&&"up"===o.direction&&(v=-d.gapButtonHeader+d.gapButton-m.openHeight),"dropdown"===o.type&&"left"===o.direction&&(p=-d.gapButtonHeader+d.gapButton-m.openWidth);var b={x:m.lx+p+o.pad.l,y:m.ly+v+o.pad.t,yPad:d.gapButton,xPad:d.gapButton,index:0},T={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each((function(l,s){var c=r.select(this);c.call(y,o,l,e).call(A,o,b),c.on("click",(function(){r.event.defaultPrevented||(l.execute&&(l.args2&&o.active===s?(g(e,o,0,t,n,i,-1),a.executeAPICommand(e,l.method,l.args2)):(g(e,o,0,t,n,i,s),a.executeAPICommand(e,l.method,l.args))),e.emit("plotly_buttonclicked",{menu:o,button:l,active:o.active}))})),c.on("mouseover",(function(){c.call(_)})),c.on("mouseout",(function(){c.call(k,o),u.call(w,o)}))})),u.call(w,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&&(u.size()?function(e,t,n,r,a,i){var o,l,s,c=a.direction,u="up"===c||"down"===c,h=a._dims,f=a.active;if(u)for(l=0,s=0;s<f;s++)l+=h.heights[s]+d.gapButton;else for(o=0,s=0;s<f;s++)o+=h.widths[s]+d.gapButton;r.enable(i,o,l),r.hbar&&r.hbar.attr("opacity","0").transition().attr("opacity","1");r.vbar&&r.vbar.attr("opacity","0").transition().attr("opacity","1")}(0,0,0,i,o,T):function(e){var t=!!e.hbar,n=!!e.vbar;t&&e.hbar.transition().attr("opacity","0").each("end",(function(){t=!1,n||e.disable()}));n&&e.vbar.transition().attr("opacity","0").each("end",(function(){n=!1,t||e.disable()}))}(i))}function y(e,t,n,r){e.call(x,t).call(b,t,n,r)}function x(e,t){l.ensureSingle(e,"rect",d.itemRectClassName,(function(e){e.attr({rx:d.rx,ry:d.ry,"shape-rendering":"crispEdges"})})).call(i.stroke,t.bordercolor).call(i.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function b(e,t,n,r){var a=l.ensureSingle(e,"text",d.itemTextClassName,(function(e){e.classed("user-select-none",!0).attr({"text-anchor":"start","data-notex":1})})),i=n.label,c=r._fullLayout._meta;c&&(i=l.templateString(i,c)),a.call(o.font,t.font).text(i).call(s.convertToTspans,r)}function w(e,t){var n=t.active;e.each((function(e,a){var o=r.select(this);a===n&&t.showactive&&o.select("rect."+d.itemRectClassName).call(i.fill,d.activeColor)}))}function _(e){e.select("rect."+d.itemRectClassName).call(i.fill,d.hoverColor)}function k(e,t){e.select("rect."+d.itemRectClassName).call(i.fill,t.bgcolor)}function T(e,t){var n=t._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},i=o.tester.selectAll("g."+d.dropdownButtonClassName).data(l.filterVisible(t.buttons));i.enter().append("g").classed(d.dropdownButtonClassName,!0);var c=-1!==["up","down"].indexOf(t.direction);i.each((function(a,i){var l=r.select(this);l.call(y,t,a,e);var h=l.select("."+d.itemTextClassName),f=h.node()&&o.bBox(h.node()).width,p=Math.max(f+d.textPadX,d.minWidth),g=t.font.size*u,v=s.lineCount(h),m=Math.max(g*v,d.minHeight)+d.textOffsetY;m=Math.ceil(m),p=Math.ceil(p),n.widths[i]=p,n.heights[i]=m,n.height1=Math.max(n.height1,m),n.width1=Math.max(n.width1,p),c?(n.totalWidth=Math.max(n.totalWidth,p),n.openWidth=n.totalWidth,n.totalHeight+=m+d.gapButton,n.openHeight+=m+d.gapButton):(n.totalWidth+=p+d.gapButton,n.openWidth+=p+d.gapButton,n.totalHeight=Math.max(n.totalHeight,m),n.openHeight=n.totalHeight)})),c?n.totalHeight-=d.gapButton:n.totalWidth-=d.gapButton,n.headerWidth=n.width1+d.arrowPadX,n.headerHeight=n.height1,"dropdown"===t.type&&(c?(n.width1+=d.arrowPadX,n.totalHeight=n.height1):n.totalWidth=n.width1,n.totalWidth+=d.arrowPadX),i.remove();var h=n.totalWidth+t.pad.l+t.pad.r,f=n.totalHeight+t.pad.t+t.pad.b,p=e._fullLayout._size;n.lx=p.l+p.w*t.x,n.ly=p.t+p.h*(1-t.y);var g="left";l.isRightAnchor(t)&&(n.lx-=h,g="right"),l.isCenterAnchor(t)&&(n.lx-=h/2,g="center");var v="top";l.isBottomAnchor(t)&&(n.ly-=f,v="bottom"),l.isMiddleAnchor(t)&&(n.ly-=f/2,v="middle"),n.totalWidth=Math.ceil(n.totalWidth),n.totalHeight=Math.ceil(n.totalHeight),n.lx=Math.round(n.lx),n.ly=Math.round(n.ly),a.autoMargin(e,M(t),{x:t.x,y:t.y,l:h*({right:1,center:.5}[g]||0),r:h*({left:1,center:.5}[g]||0),b:f*({top:1,middle:.5}[v]||0),t:f*({bottom:1,middle:.5}[v]||0)})}function M(e){return d.autoMarginIdRoot+e._index}function A(e,t,n,r){r=r||{};var a=e.select("."+d.itemRectClassName),i=e.select("."+d.itemTextClassName),l=t.borderwidth,c=n.index,h=t._dims;o.setTranslate(e,l+n.x,l+n.y);var f=-1!==["up","down"].indexOf(t.direction),p=r.height||(f?h.heights[c]:h.height1);a.attr({x:0,y:0,width:r.width||(f?h.width1:h.widths[c]),height:p});var g=t.font.size*u,v=(s.lineCount(i)-1)*g/2;s.positionText(i,d.textOffsetX,p/2-v+d.textOffsetY),f?n.y+=h.heights[c]+n.yPad:n.x+=h.widths[c]+n.xPad,n.index++}function S(e,t){e.attr(d.menuIndexAttrName,t||"-1").selectAll("g."+d.dropdownButtonClassName).remove()}e.exports=function(e){var t=e._fullLayout,n=l.filterVisible(t[d.name]);function i(t){a.autoMargin(e,M(t))}var o=t._menulayer.selectAll("g."+d.containerClassName).data(n.length>0?[0]:[]);if(o.enter().append("g").classed(d.containerClassName,!0).style("cursor","pointer"),o.exit().each((function(){r.select(this).selectAll("g."+d.headerGroupClassName).each(i)})).remove(),0!==n.length){var s=o.selectAll("g."+d.headerGroupClassName).data(n,f);s.enter().append("g").classed(d.headerGroupClassName,!0);for(var c=l.ensureSingle(o,"g",d.dropdownButtonGroupClassName,(function(e){e.style("pointer-events","all")})),u=0;u<n.length;u++){var y=n[u];T(e,y)}var x="updatemenus"+t._uid,b=new h(e,c,x);s.enter().size()&&(c.node().parentNode.appendChild(c.node()),c.call(S)),s.exit().each((function(e){c.call(S),i(e)})).remove(),s.each((function(t){var n=r.select(this),i="dropdown"===t.type?c:null;a.manageCommandObserver(e,t,t.buttons,(function(r){g(e,t,t.buttons[r.index],n,i,b,r.index,!0)})),"dropdown"===t.type?(v(e,n,c,b,t),p(c,t)&&m(e,n,c,b,t)):m(e,n,null,null,t)}))}}},"/bfX":function(e,t,n){"use strict";var r=n("lzY6");n.n(r).a},"/cea":function(e,t,n){"use strict";var r=n("2FgJ"),a=n("/CZE");t.rangeToShapePosition=function(e){return"log"===e.type?e.r2d:function(e){return e}},t.shapePositionToRange=function(e){return"log"===e.type?e.d2r:function(e){return e}},t.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}},t.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}},t.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<i||n.push(a.cleanNumber(o[i]))}})),n},t.getDataToPixel=function(e,n,r){var a,i=e._fullLayout._size;if(n){var o=t.shapePositionToRange(n);a=function(e){return n._offset+n.r2p(o(e,!0))},"date"===n.type&&(a=t.decodeDate(a))}else a=r?function(e){return i.t+i.h*(1-e)}:function(e){return i.l+i.w*e};return a},t.getPixelToData=function(e,n,r){var a,i=e._fullLayout._size;if(n){var o=t.rangeToShapePosition(n);a=function(e){return o(n.p2r(e-n._offset))}}else a=r?function(e){return 1-(e-i.t)/i.h}:function(e){return(e-i.l)/i.w};return a},t.roundPositionForSharpStrokeRendering=function(e,t){var n=1===Math.round(t%2),r=Math.round(e);return n?r+.5:r},t.makeOptionsAndPlotinfo=function(e,t){var n=e._fullLayout.shapes[t]||{},r=e._fullLayout._plots[n.xref+n.yref];return!!r?r._hadPlotinfo=!0:(r={},n.xref&&"paper"!==n.xref&&(r.xaxis=e._fullLayout[n.xref+"axis"]),n.yref&&"paper"!==n.yref&&(r.yaxis=e._fullLayout[n.yref+"axis"])),r.xsizemode=n.xsizemode,r.ysizemode=n.ysizemode,r.xanchor=n.xanchor,r.yanchor=n.yanchor,{options:n,plotinfo:r}}},"/rf6":function(e,t,n){"use strict";function r(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function a(e,t,n){return void 0===n&&(n={}),r({type:"Point",coordinates:e},t,n)}function i(e,t,n){void 0===n&&(n={});for(var a=0,i=e;a<i.length;a++){var o=i[a];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var l=0;l<o[o.length-1].length;l++)if(o[o.length-1][l]!==o[0][l])throw new Error("First and last Position are not equivalent.")}return r({type:"Polygon",coordinates:e},t,n)}function o(e,t,n){if(void 0===n&&(n={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");return r({type:"LineString",coordinates:e},t,n)}function l(e,t){void 0===t&&(t={});var n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function s(e,t,n){return void 0===n&&(n={}),r({type:"MultiLineString",coordinates:e},t,n)}function c(e,t,n){return void 0===n&&(n={}),r({type:"MultiPoint",coordinates:e},t,n)}function u(e,t,n){return void 0===n&&(n={}),r({type:"MultiPolygon",coordinates:e},t,n)}function d(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n+" units is invalid");return e*r}function h(e,n){void 0===n&&(n="kilometers");var r=t.factors[n];if(!r)throw new Error(n+" units is invalid");return e/r}function f(e){return 180*(e%(2*Math.PI))/Math.PI}function p(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)&&!/^\s*$/.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.earthRadius=6371008.8,t.factors={centimeters:100*t.earthRadius,centimetres:100*t.earthRadius,degrees:t.earthRadius/111325,feet:3.28084*t.earthRadius,inches:39.37*t.earthRadius,kilometers:t.earthRadius/1e3,kilometres:t.earthRadius/1e3,meters:t.earthRadius,metres:t.earthRadius,miles:t.earthRadius/1609.344,millimeters:1e3*t.earthRadius,millimetres:1e3*t.earthRadius,nauticalmiles:t.earthRadius/1852,radians:1,yards:t.earthRadius/1.0936},t.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/t.earthRadius,yards:1/1.0936},t.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},t.feature=r,t.geometry=function(e,t,n){switch(void 0===n&&(n={}),e){case"Point":return a(t).geometry;case"LineString":return o(t).geometry;case"Polygon":return i(t).geometry;case"MultiPoint":return c(t).geometry;case"MultiLineString":return s(t).geometry;case"MultiPolygon":return u(t).geometry;default:throw new Error(e+" is invalid")}},t.point=a,t.points=function(e,t,n){return void 0===n&&(n={}),l(e.map((function(e){return a(e,t)})),n)},t.polygon=i,t.polygons=function(e,t,n){return void 0===n&&(n={}),l(e.map((function(e){return i(e,t)})),n)},t.lineString=o,t.lineStrings=function(e,t,n){return void 0===n&&(n={}),l(e.map((function(e){return o(e,t)})),n)},t.featureCollection=l,t.multiLineString=s,t.multiPoint=c,t.multiPolygon=u,t.geometryCollection=function(e,t,n){return void 0===n&&(n={}),r({type:"GeometryCollection",geometries:e},t,n)},t.round=function(e,t){if(void 0===t&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(e*n)/n},t.radiansToLength=d,t.lengthToRadians=h,t.lengthToDegrees=function(e,t){return f(h(e,t))},t.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},t.radiansToDegrees=f,t.degreesToRadians=function(e){return e%360*Math.PI/180},t.convertLength=function(e,t,n){if(void 0===t&&(t="kilometers"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("length must be a positive number");return d(h(e,t),n)},t.convertArea=function(e,n,r){if(void 0===n&&(n="meters"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("area must be a positive number");var a=t.areaFactors[n];if(!a)throw new Error("invalid original units");var i=t.areaFactors[r];if(!i)throw new Error("invalid final units");return e/a*i},t.isNumber=p,t.isObject=function(e){return!!e&&e.constructor===Object},t.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!p(e))throw new Error("bbox must only contain numbers")}))},t.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")},t.radians2degrees=function(){throw new Error("method has been renamed to `radiansToDegrees`")},t.degrees2radians=function(){throw new Error("method has been renamed to `degreesToRadians`")},t.distanceToDegrees=function(){throw new Error("method has been renamed to `lengthToDegrees`")},t.distanceToRadians=function(){throw new Error("method has been renamed to `lengthToRadians`")},t.radiansToDistance=function(){throw new Error("method has been renamed to `radiansToLength`")},t.bearingToAngle=function(){throw new Error("method has been renamed to `bearingToAzimuth`")},t.convertDistance=function(){throw new Error("method has been renamed to `convertLength`")}},"/u34":function(e,t,n){"use strict";var r=n("0RW4"),a=n("3oHU");e.exports=function(e,t){var n,i;if("lines"===e.mode)return(n=e.line.color)&&r.opacity(n)?n: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&&r.opacity(o)?o:l&&r.opacity(l)&&(t.mlw||((e.marker||{}).line||{}).width)?l:"")?r.opacity(i)<.3?r.addOpacity(i,.3):i:(n=(e.line||{}).color)&&r.opacity(n)&&a.hasLines(e)&&e.line.width?n:e.fillcolor}},"/w3t":function(e,t,n){"use strict";e.exports={attributes:n("+1rr"),layoutAttributes:n("N+MO"),supplyDefaults:n("HByh").supplyDefaults,crossTraceDefaults:n("HByh").crossTraceDefaults,supplyLayoutDefaults:n("7RaA"),calc:n("14/L"),crossTraceCalc:n("DOzC").crossTraceCalc,colorbar:n("88/Y"),arraysToCalcdata:n("QkuE"),plot:n("x5FY").plot,style:n("LfN2").style,styleOnSelect:n("LfN2").styleOnSelect,hoverPoints:n("rJf6").hoverPoints,eventData:n("1Bxf"),selectPoints:n("cADB"),moduleType:"trace",name:"bar",basePlotModule:n("kc20"),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(" ")}}},"09xr":function(e,t,n){"use strict";e.exports={mod:function(e,t){var n=e%t;return n<0?n+t:n},modHalf:function(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}}},"0GSP":function(e,t,n){"use strict";var r=n("/CZE"),a=n("6AZA").BADNUM;e.exports=function(e,t,n,i,o,l){var s,c,u,d,h=e._length,f=t.makeCalcdata(e,i),p=n.makeCalcdata(e,o),g=e.text,v=void 0!==g&&r.isArray1D(g),m=e.hovertext,y=void 0!==m&&r.isArray1D(m),x=r.distinctVals(f),b=x.vals,w=r.distinctVals(p),_=w.vals,k=[],T=_.length,M=b.length;for(s=0;s<l.length;s++)k[s]=r.init2dArray(T,M);v&&(u=r.init2dArray(T,M)),y&&(d=r.init2dArray(T,M));var A=r.init2dArray(T,M);for(s=0;s<h;s++)if(f[s]!==a&&p[s]!==a){var S=r.findBin(f[s]+x.minDiff/2,b),C=r.findBin(p[s]+w.minDiff/2,_);for(c=0;c<l.length;c++){var L=e[l[c]];k[c][C][S]=L[s],A[C][S]=s}v&&(u[C][S]=g[s]),y&&(d[C][S]=m[s])}for(e["_"+i]=b,e["_"+o]=_,c=0;c<l.length;c++)e["_"+l[c]]=k[c];v&&(e._text=u),y&&(e._hovertext=d),t&&"category"===t.type&&(e["_"+i+"CategoryMap"]=b.map((function(e){return t._categories[e]}))),n&&"category"===n.type&&(e["_"+o+"CategoryMap"]=_.map((function(e){return n._categories[e]}))),e._after2before=A}},"0K3i":function(e,t,n){"use strict";var r=n("GbLo"),a=n("6AZA").BADNUM,i=n("OqjQ"),o=n("EGun"),l=n("QTaS");function s(e){return e&&"string"==typeof e}e.exports=function(e,t){var n,c=t._length,u=new Array(c);n=t.geojson?function(e){return s(e)||r(e)}:s;for(var d=0;d<c;d++){var h=u[d]={},f=t.locations[d],p=t.z[d];n(f)&&r(p)?(h.loc=f,h.z=p):(h.loc=null,h.z=a),h.index=d}return o(u,t),i(e,t,{vals:t.z,containerStr:"",cLetter:"z"}),l(u,t),u}},"0RW4":function(e,t,n){"use strict";var r=n("Zss7"),a=n("GbLo"),i=e.exports={},o=n("37PH");i.defaults=o.defaults;var l=i.defaultLine=o.defaultLine;i.lightLine=o.lightLine;var s=i.background=o.background;function c(e){if(a(e)||"string"!=typeof e)return e;var t=e.trim();if("rgb"!==t.substr(0,3))return e;var n=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return e;var r=n[1].trim().split(/\s*[\s,]\s*/),i="a"===t.charAt(3)&&4===r.length;if(!i&&3!==r.length)return e;for(var o=0;o<r.length;o++){if(!r[o].length)return e;if(r[o]=Number(r[o]),!(r[o]>=0))return e;if(3===o)r[o]>1&&(r[o]=1);else if(r[o]>=1)return e}var l=Math.round(255*r[0])+", "+Math.round(255*r[1])+", "+Math.round(255*r[2]);return i?"rgba("+l+", "+r[3]+")":"rgb("+l+")"}i.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},i.rgb=function(e){return i.tinyRGB(r(e))},i.opacity=function(e){return e?r(e).getAlpha():0},i.addOpacity=function(e,t){var n=r(e).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+t+")"},i.combine=function(e,t){var n=r(e).toRgb();if(1===n.a)return r(e).toRgbString();var a=r(t||s).toRgb(),i=1===a.a?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},o={r:i.r*(1-n.a)+n.r*n.a,g:i.g*(1-n.a)+n.g*n.a,b:i.b*(1-n.a)+n.b*n.a};return r(o).toRgbString()},i.contrast=function(e,t,n){var a=r(e);return 1!==a.getAlpha()&&(a=r(i.combine(e,s))),(a.isDark()?t?a.lighten(t):s:n?a.darken(n):l).toString()},i.stroke=function(e,t){var n=r(t);e.style({stroke:i.tinyRGB(n),"stroke-opacity":n.getAlpha()})},i.fill=function(e,t){var n=r(t);e.style({fill:i.tinyRGB(n),"fill-opacity":n.getAlpha()})},i.clean=function(e){if(e&&"object"==typeof e){var t,n,r,a,o=Object.keys(e);for(t=0;t<o.length;t++)if(a=e[r=o[t]],"color"===r.substr(r.length-5))if(Array.isArray(a))for(n=0;n<a.length;n++)a[n]=c(a[n]);else e[r]=c(a);else if("colorscale"===r.substr(r.length-10)&&Array.isArray(a))for(n=0;n<a.length;n++)Array.isArray(a[n])&&(a[n][1]=c(a[n][1]));else if(Array.isArray(a)){var l=a[0];if(!Array.isArray(l)&&l&&"object"==typeof l)for(n=0;n<a.length;n++)i.clean(a[n])}else a&&"object"==typeof a&&i.clean(a)}}},"0Y4q":function(e,t,n){"use strict";var r=n("Nx4I"),a=n("/CZE"),i=a.extendFlat,o=a.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 n;e.framework&&e.framework.isPolar&&(e=e.framework.getConfig());var a,s=e.data,c=e.layout,u=o([],s),d=o({},c,l(t.tileClass)),h=e._context||{};if(t.width&&(d.width=t.width),t.height&&(d.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){d.annotations=[];var f=Object.keys(d);for(n=0;n<f.length;n++)a=f[n],["xaxis","yaxis","zaxis"].indexOf(a.slice(0,5))>-1&&(d[f[n]].title={text:""});for(n=0;n<u.length;n++){var p=u[n];p.showscale=!1,p.marker&&(p.marker.showscale=!1),r.traceIs(p,"pie-like")&&(p.textposition="none")}}if(Array.isArray(t.annotations))for(n=0;n<t.annotations.length;n++)d.annotations.push(t.annotations[n]);var g=Object.keys(d).filter((function(e){return e.match(/^scene\d*$/)}));if(g.length){var v={};for("thumbnail"===t.tileClass&&(v={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),n=0;n<g.length;n++){var m=d[g[n]];m.xaxis||(m.xaxis={}),m.yaxis||(m.yaxis={}),m.zaxis||(m.zaxis={}),i(m.xaxis,v),i(m.yaxis,v),i(m.zaxis,v),m._scene=null}}var y=document.createElement("div");t.tileClass&&(y.className=t.tileClass);var x={gd:y,td:y,layout:d,data:u,config:{staticPlot:void 0===t.staticPlot||t.staticPlot,plotGlPixelRatio:void 0===t.plotGlPixelRatio?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showLink:t.showLink||!1,showTips:t.showTips||!1,mapboxAccessToken:h.mapboxAccessToken}};return"transparent"!==t.setBackground&&(x.config.setBackground=t.setBackground||"opaque"),x.gd.defaultLayout=l(t.tileClass),x}},"0YvE":function(e,t,n){"use strict";e.exports=function(e,t,n,r){if("category"===t.type){var a,i=e.categoryarray,o=Array.isArray(i)&&i.length>0;o&&(a="array");var l,s=n("categoryorder",a);"array"===s&&(l=n("categoryarray")),o||"array"!==s||(s=t.categoryorder="trace"),"trace"===s?t._initialCategories=[]:"array"===s?t._initialCategories=l.slice():(l=function(e,t){var n,r,a,i=t.dataAttr||e._id.charAt(0),o={};if(t.axData)n=t.axData;else for(n=[],r=0;r<t.data.length;r++){var l=t.data[r];l[i+"axis"]===e._id&&n.push(l)}for(r=0;r<n.length;r++){var s=n[r][i];for(a=0;a<s.length;a++){var c=s[a];null!=c&&(o[c]=1)}}return Object.keys(o)}(t,r).sort(),"category ascending"===s?t._initialCategories=l:"category descending"===s&&(t._initialCategories=l.reverse()))}}},"0hfp":function(e,t,n){"use strict";n.r(t),n.d(t,"bbox",(function(){return i})),n.d(t,"feature",(function(){return o})),n.d(t,"mesh",(function(){return u})),n.d(t,"meshArcs",(function(){return d})),n.d(t,"merge",(function(){return f})),n.d(t,"mergeArcs",(function(){return p})),n.d(t,"neighbors",(function(){return v})),n.d(t,"quantize",(function(){return y})),n.d(t,"transform",(function(){return a})),n.d(t,"untransform",(function(){return m}));var r=function(e){return e},a=function(e){if(null==e)return r;var t,n,a=e.scale[0],i=e.scale[1],o=e.translate[0],l=e.translate[1];return function(e,r){r||(t=n=0);var s=2,c=e.length,u=new Array(c);for(u[0]=(t+=e[0])*a+o,u[1]=(n+=e[1])*i+l;s<c;)u[s]=e[s],++s;return u}},i=function(e){var t,n=a(e.transform),r=1/0,i=r,o=-r,l=-r;function s(e){(e=n(e))[0]<r&&(r=e[0]),e[0]>o&&(o=e[0]),e[1]<i&&(i=e[1]),e[1]>l&&(l=e[1])}function c(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(c);break;case"Point":s(e.coordinates);break;case"MultiPoint":e.coordinates.forEach(s)}}for(t in e.arcs.forEach((function(e){for(var t,a=-1,s=e.length;++a<s;)(t=n(e[a],a))[0]<r&&(r=t[0]),t[0]>o&&(o=t[0]),t[1]<i&&(i=t[1]),t[1]>l&&(l=t[1])})),e.objects)c(e.objects[t]);return[r,i,o,l]},o=function(e,t){return"string"==typeof t&&(t=e.objects[t]),"GeometryCollection"===t.type?{type:"FeatureCollection",features:t.geometries.map((function(t){return l(e,t)}))}:l(e,t)};function l(e,t){var n=t.id,r=t.bbox,a=null==t.properties?{}:t.properties,i=s(e,t);return null==n&&null==r?{type:"Feature",properties:a,geometry:i}:null==r?{type:"Feature",id:n,properties:a,geometry:i}:{type:"Feature",id:n,bbox:r,properties:a,geometry:i}}function s(e,t){var n=a(e.transform),r=e.arcs;function i(e,t){t.length&&t.pop();for(var a=r[e<0?~e:e],i=0,o=a.length;i<o;++i)t.push(n(a[i],i));e<0&&function(e,t){for(var n,r=e.length,a=r-t;a<--r;)n=e[a],e[a++]=e[r],e[r]=n}(t,o)}function o(e){return n(e)}function l(e){for(var t=[],n=0,r=e.length;n<r;++n)i(e[n],t);return t.length<2&&t.push(t[0]),t}function s(e){for(var t=l(e);t.length<4;)t.push(t[0]);return t}function c(e){return e.map(s)}return function e(t){var n,r=t.type;switch(r){case"GeometryCollection":return{type:r,geometries:t.geometries.map(e)};case"Point":n=o(t.coordinates);break;case"MultiPoint":n=t.coordinates.map(o);break;case"LineString":n=l(t.arcs);break;case"MultiLineString":n=t.arcs.map(l);break;case"Polygon":n=c(t.arcs);break;case"MultiPolygon":n=t.arcs.map(c);break;default:return null}return{type:r,coordinates:n}}(t)}var c=function(e,t){var n={},r={},a={},i=[],o=-1;function l(e,t){for(var r in e){var a=e[r];delete t[a.start],delete a.start,delete a.end,a.forEach((function(e){n[e<0?~e:e]=1})),i.push(a)}}return t.forEach((function(n,r){var a,i=e.arcs[n<0?~n:n];i.length<3&&!i[1][0]&&!i[1][1]&&(a=t[++o],t[o]=n,t[r]=a)})),t.forEach((function(t){var n,i,o=function(t){var n,r=e.arcs[t<0?~t:t],a=r[0];e.transform?(n=[0,0],r.forEach((function(e){n[0]+=e[0],n[1]+=e[1]}))):n=r[r.length-1];return t<0?[n,a]:[a,n]}(t),l=o[0],s=o[1];if(n=a[l])if(delete a[n.end],n.push(t),n.end=s,i=r[s]){delete r[i.start];var c=i===n?n:n.concat(i);r[c.start=n.start]=a[c.end=i.end]=c}else r[n.start]=a[n.end]=n;else if(n=r[s])if(delete r[n.start],n.unshift(t),n.start=l,i=a[l]){delete a[i.end];var u=i===n?n:i.concat(n);r[u.start=i.start]=a[u.end=n.end]=u}else r[n.start]=a[n.end]=n;else r[(n=[t]).start=l]=a[n.end=s]=n})),l(a,r),l(r,a),t.forEach((function(e){n[e<0?~e:e]||i.push([e])})),i},u=function(e){return s(e,d.apply(this,arguments))};function d(e,t,n){var r,a,i;if(arguments.length>1)r=h(e,t,n);else for(a=0,r=new Array(i=e.arcs.length);a<i;++a)r[a]=a;return{type:"MultiLineString",arcs:c(e,r)}}function h(e,t,n){var r,a=[],i=[];function o(e){var t=e<0?~e:e;(i[t]||(i[t]=[])).push({i:e,g:r})}function l(e){e.forEach(o)}function s(e){e.forEach(l)}return function e(t){switch(r=t,t.type){case"GeometryCollection":t.geometries.forEach(e);break;case"LineString":l(t.arcs);break;case"MultiLineString":case"Polygon":s(t.arcs);break;case"MultiPolygon":!function(e){e.forEach(s)}(t.arcs)}}(t),i.forEach(null==n?function(e){a.push(e[0].i)}:function(e){n(e[0].g,e[e.length-1].g)&&a.push(e[0].i)}),a}var f=function(e){return s(e,p.apply(this,arguments))};function p(e,t){var n={},r=[],a=[];function i(e){e.forEach((function(t){t.forEach((function(t){(n[t=t<0?~t:t]||(n[t]=[])).push(e)}))})),r.push(e)}function o(t){return function(e){for(var t,n=-1,r=e.length,a=e[r-1],i=0;++n<r;)t=a,a=e[n],i+=t[0]*a[1]-t[1]*a[0];return Math.abs(i)}(s(e,{type:"Polygon",arcs:[t]}).coordinates[0])}return t.forEach((function e(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(e);break;case"Polygon":i(t.arcs);break;case"MultiPolygon":t.arcs.forEach(i)}})),r.forEach((function(e){if(!e._){var t=[],r=[e];for(e._=1,a.push(t);e=r.pop();)t.push(e),e.forEach((function(e){e.forEach((function(e){n[e<0?~e:e].forEach((function(e){e._||(e._=1,r.push(e))}))}))}))}})),r.forEach((function(e){delete e._})),{type:"MultiPolygon",arcs:a.map((function(t){var r,a=[];if(t.forEach((function(e){e.forEach((function(e){e.forEach((function(e){n[e<0?~e:e].length<2&&a.push(e)}))}))})),(r=(a=c(e,a)).length)>1)for(var i,l,s=1,u=o(a[0]);s<r;++s)(i=o(a[s]))>u&&(l=a[0],a[0]=a[s],a[s]=l,u=i);return a})).filter((function(e){return e.length>0}))}}var g=function(e,t){for(var n=0,r=e.length;n<r;){var a=n+r>>>1;e[a]<t?n=a+1:r=a}return n},v=function(e){var t={},n=e.map((function(){return[]}));function r(e,n){e.forEach((function(e){e<0&&(e=~e);var r=t[e];r?r.push(n):t[e]=[n]}))}function a(e,t){e.forEach((function(e){r(e,t)}))}var i={LineString:r,MultiLineString:a,Polygon:a,MultiPolygon:function(e,t){e.forEach((function(e){a(e,t)}))}};for(var o in e.forEach((function e(t,n){"GeometryCollection"===t.type?t.geometries.forEach((function(t){e(t,n)})):t.type in i&&i[t.type](t.arcs,n)})),t)for(var l=t[o],s=l.length,c=0;c<s;++c)for(var u=c+1;u<s;++u){var d,h=l[c],f=l[u];(d=n[h])[o=g(d,f)]!==f&&d.splice(o,0,f),(d=n[f])[o=g(d,h)]!==h&&d.splice(o,0,h)}return n},m=function(e){if(null==e)return r;var t,n,a=e.scale[0],i=e.scale[1],o=e.translate[0],l=e.translate[1];return function(e,r){r||(t=n=0);var s=2,c=e.length,u=new Array(c),d=Math.round((e[0]-o)/a),h=Math.round((e[1]-l)/i);for(u[0]=d-t,t=d,u[1]=h-n,n=h;s<c;)u[s]=e[s],++s;return u}},y=function(e,t){if(e.transform)throw new Error("already quantized");if(t&&t.scale)s=e.bbox;else{if(!((n=Math.floor(t))>=2))throw new Error("n must be โฅ2");var n,r=(s=e.bbox||i(e))[0],a=s[1],o=s[2],l=s[3];t={scale:[o-r?(o-r)/(n-1):1,l-a?(l-a)/(n-1):1],translate:[r,a]}}var s,c,u=m(t),d=e.objects,h={};function f(e){return u(e)}function p(e){var t;switch(e.type){case"GeometryCollection":t={type:"GeometryCollection",geometries:e.geometries.map(p)};break;case"Point":t={type:"Point",coordinates:f(e.coordinates)};break;case"MultiPoint":t={type:"MultiPoint",coordinates:e.coordinates.map(f)};break;default:return e}return null!=e.id&&(t.id=e.id),null!=e.bbox&&(t.bbox=e.bbox),null!=e.properties&&(t.properties=e.properties),t}for(c in d)h[c]=p(d[c]);return{type:"Topology",bbox:s,transform:t,objects:h,arcs:e.arcs.map((function(e){var t,n=0,r=1,a=e.length,i=new Array(a);for(i[0]=u(e[0],0);++n<a;)((t=u(e[n],n))[0]||t[1])&&(i[r++]=t);return 1===r&&(i[r++]=[0,0]),i.length=r,i}))}}},"0tl7":function(e,t,n){"use strict";var r=n("mEVB"),a=n("37PH"),i=(0,n("plED").templatedArray)("button",{visible:{valType:"boolean",role:"info",dflt:!0,editType:"plot",description:"Determines whether or not this button is visible."},step:{valType:"enumerated",role:"info",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",role:"info",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",role:"info",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",role:"info",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",role:"info",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,role:"style",editType:"plot",description:"Sets the x position (in normalized coordinates) of the range selector."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",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,role:"style",editType:"plot",description:"Sets the y position (in normalized coordinates) of the range selector."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",role:"info",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:r({editType:"plot",description:"Sets the font of the range selector button text."}),bgcolor:{valType:"color",dflt:a.lightLine,role:"style",editType:"plot",description:"Sets the background color of the range selector buttons."},activecolor:{valType:"color",role:"style",editType:"plot",description:"Sets the background color of the active range selector button."},bordercolor:{valType:"color",dflt:a.defaultLine,role:"style",editType:"plot",description:"Sets the color of the border enclosing the range selector."},borderwidth:{valType:"number",min:0,dflt:0,role:"style",editType:"plot",description:"Sets the width (in px) of the border enclosing the range selector."},editType:"plot"}},"0wH6":function(e,t,n){"use strict";var r=n("BVrX").counter;e.exports={idRegex:{x:r("x"),y:r("y")},attrRegex:r("[xy]axis"),xAxisMatch:r("xaxis"),yAxisMatch:r("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:"-select",DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},1:function(e,t){},"14/L":function(e,t,n){"use strict";var r=n("BkK/"),a=n("IVx0").hasColorscale,i=n("OqjQ"),o=n("QkuE"),l=n("QTaS");e.exports=function(e,t){var n,s,c=r.getFromId(e,t.xaxis||"x"),u=r.getFromId(e,t.yaxis||"y"),d={msUTC:!(!t.base&&0!==t.base)};"h"===t.orientation?(n=c.makeCalcdata(t,"x",d),s=u.makeCalcdata(t,"y")):(n=u.makeCalcdata(t,"y",d),s=c.makeCalcdata(t,"x"));for(var h=Math.min(s.length,n.length),f=new Array(h),p=0;p<h;p++)f[p]={p:s[p],s:n[p]},t.ids&&(f[p].id=String(t.ids[p]));return a(t,"marker")&&i(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),a(t,"marker.line")&&i(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),o(f,t),l(f,t),f}},"15jM":function(e,t,n){"use strict";var r=n("mEVB"),a=n("37PH"),i=n("21T9").dash,o=n("kJIm").extendFlat,l=n("plED").templatedArray,s=n("eN+q").FORMAT_LINK,c=n("eN+q").DATE_FORMAT_LINK,u=n("6AZA").ONEDAY,d=n("0wH6"),h=d.HOUR_PATTERN,f=d.WEEKDAY_PATTERN;e.exports={visible:{valType:"boolean",role:"info",editType:"plot",description:["A single toggle to hide the axis while preserving interaction like dragging.","Default is true when a cheater plot is present on the axis, otherwise","false"].join(" ")},color:{valType:"color",dflt:a.defaultLine,role:"style",editType:"ticks",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},title:{text:{valType:"string",role:"info",editType:"ticks",description:["Sets the title of this axis.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:r({editType:"ticks",description:["Sets this axis' title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),standoff:{valType:"number",role:"info",min:0,editType:"ticks",description:["Sets the standoff distance (in px) between the axis labels and the title text","The default value is a function of the axis tick labels, the title `font.size`","and the axis `linewidth`.","Note that the axis title position is always constrained within the margins,","so the actual standoff distance is always less than the set or default value.","By setting `standoff` and turning on `automargin`, plotly.js will push the","margins to fit the axis title at given standoff distance."].join(" ")},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",role:"info",editType:"calc",_noTemplating:!0,description:["Sets the axis type.","By default, plotly attempts to determined the axis type","by looking into the data of the traces that referenced","the axis in question."].join(" ")},autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,role:"info",editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0},description:["Determines whether or not the range of this axis is","computed in relation to the input data.","See `rangemode` for more info.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",role:"info",editType:"plot",description:["If *normal*, the range is computed in relation to the extrema","of the input data.","If *tozero*`, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data.","Applies only to linear axes."].join(" ")},range:{valType:"info_array",role:"info",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0,description:["Sets the range of this axis.","If the axis `type` is *log*, then you must take the log of your","desired range (e.g. to set the range from 1 to 100,","set the range from 0 to 2).","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},fixedrange:{valType:"boolean",dflt:!1,role:"info",editType:"calc",description:["Determines whether or not this axis is zoom-able.","If true, then zoom is disabled."].join(" ")},scaleanchor:{valType:"enumerated",values:[d.idRegex.x.toString(),d.idRegex.y.toString()],role:"info",editType:"plot",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","changes together with the range of the corresponding axis","such that the scale of pixels per unit is in a constant ratio.","Both axes are still zoomable, but when you zoom one, the other will","zoom the same amount, keeping a fixed midpoint.","`constrain` and `constraintoward` determine how we enforce the constraint.","You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}`","but you can only link axes of the same `type`.","The linked axis can have the opposite letter (to constrain the aspect ratio)","or the same letter (to match scales across subplots).","Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant","and the last constraint encountered will be ignored to avoid possible","inconsistent constraints via `scaleratio`.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden."].join(" ")},scaleratio:{valType:"number",min:0,dflt:1,role:"info",editType:"plot",description:["If this axis is linked to another by `scaleanchor`, this determines the pixel","to unit scale ratio. For example, if this value is 10, then every unit on","this axis spans 10 times the number of pixels as a unit on the linked axis.","Use this for example to create an elevation profile where the vertical scale","is exaggerated a fixed amount with respect to the horizontal."].join(" ")},constrain:{valType:"enumerated",values:["range","domain"],dflt:"range",role:"info",editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines how that happens:","by increasing the *range* (default), or by decreasing the *domain*."].join(" ")},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],role:"info",editType:"plot",description:["If this axis needs to be compressed (either due to its own `scaleanchor` and","`scaleratio` or those of the other axis), determines which direction we push","the originally specified plot area. Options are *left*, *center* (default),","and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes."].join(" ")},matches:{valType:"enumerated",values:[d.idRegex.x.toString(),d.idRegex.y.toString()],role:"info",editType:"calc",description:["If set to another axis id (e.g. `x2`, `y`), the range of this axis","will match the range of the corresponding axis in data-coordinates space.","Moreover, matching axes share auto-range values, category lists and","histogram auto-bins.","Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint","is currently forbidden.","Moreover, note that matching axes must have the same `type`."].join(" ")},rangebreaks:l("rangebreak",{enabled:{valType:"boolean",role:"info",dflt:!0,editType:"calc",description:["Determines whether this axis rangebreak is enabled or disabled.","Please note that `rangebreaks` only work for *date* axis type."].join(" ")},bounds:{valType:"info_array",role:"info",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc",description:["Sets the lower and upper bounds of this axis rangebreak.","Can be used with `pattern`."].join(" ")},pattern:{valType:"enumerated",values:[f,h,""],role:"info",editType:"calc",description:["Determines a pattern on the time line that generates breaks.","If *"+f+"* - days of the week in English e.g. 'Sunday' or `sun`","(matching is case-insensitive and considers only the first three characters),","as well as Sunday-based integers between 0 and 6.","If *"+h+"* - hour (24-hour clock) as decimal numbers between 0 and 24.","for more info.","Examples:","- { pattern: '"+f+"', bounds: [6, 1] }"," or simply { bounds: ['sat', 'mon'] }"," breaks from Saturday to Monday (i.e. skips the weekends).","- { pattern: '"+h+"', bounds: [17, 8] }"," breaks from 5pm to 8am (i.e. skips non-work hours)."].join(" ")},values:{valType:"info_array",freeLength:!0,role:"info",editType:"calc",items:{valType:"any",editType:"calc"},description:["Sets the coordinate values corresponding to the rangebreaks.","An alternative to `bounds`.","Use `dvalue` to set the size of the values along the axis."].join(" ")},dvalue:{valType:"number",role:"info",editType:"calc",min:0,dflt:u,description:["Sets the size of each `values` item.","The default is one day in milliseconds."].join(" ")},editType:"calc"}),tickmode:{valType:"enumerated",values:["auto","linear","array"],role:"info",editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0},description:["Sets the tick mode for this axis.","If *auto*, the number of ticks is set via `nticks`.","If *linear*, the placement of the ticks is determined by","a starting position `tick0` and a tick step `dtick`","(*linear* is the default value if `tick0` and `dtick` are provided).","If *array*, the placement of the ticks is set via `tickvals`","and the tick text is `ticktext`.","(*array* is the default value if `tickvals` is provided)."].join(" ")},nticks:{valType:"integer",min:0,dflt:0,role:"style",editType:"ticks",description:["Specifies the maximum number of ticks for the particular axis.","The actual number of ticks will be chosen automatically to be","less than or equal to `nticks`.","Has an effect only if `tickmode` is set to *auto*."].join(" ")},tick0:{valType:"any",role:"style",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the placement of the first tick on this axis.","Use with `dtick`.","If the axis `type` is *log*, then you must take the log of your starting tick","(e.g. to set the starting tick to 100, set the `tick0` to 2)","except when `dtick`=*L<f>* (see `dtick` for more info).","If the axis `type` is *date*, it should be a date string, like date data.","If the axis `type` is *category*, it should be a number, using the scale where","each category is assigned a serial number from zero in the order it appears."].join(" ")},dtick:{valType:"any",role:"style",editType:"ticks",impliedEdits:{tickmode:"linear"},description:["Sets the step in-between ticks on this axis. Use with `tick0`.","Must be a positive number, or special strings available to *log* and *date* axes.","If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n","is the tick number. For example,","to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1.","To set tick marks at 1, 100, 10000, ... set dtick to 2.","To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433.","*log* has several special values; *L<f>*, where `f` is a positive number,","gives ticks linearly spaced in value (but not position).","For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc.","To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5).","`tick0` is ignored for *D1* and *D2*.","If the axis `type` is *date*, then you must convert the time to milliseconds.","For example, to set the interval between ticks to one day,","set `dtick` to 86400000.0.","*date* also has special values *M<n>* gives ticks spaced by a number of months.","`n` must be a positive integer.","To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*.","To set ticks every 4 years, set `dtick` to *M48*"].join(" ")},tickvals:{valType:"data_array",editType:"ticks",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},ticktext:{valType:"data_array",editType:"ticks",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},ticks:{valType:"enumerated",values:["outside","inside",""],role:"style",editType:"ticks",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *outside* (*inside*), this axis' are drawn outside (inside)","the axis lines."].join(" ")},tickson:{valType:"enumerated",values:["labels","boundaries"],role:"info",dflt:"labels",editType:"ticks",description:["Determines where ticks and grid lines are drawn with respect to their","corresponding tick labels.","Only has an effect for axes of `type` *category* or *multicategory*.","When set to *boundaries*, ticks and grid lines are drawn half a category","to the left/bottom of labels."].join(" ")},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,role:"style",editType:"ticks+layoutstyle",description:["Determines if the axis lines or/and ticks are mirrored to","the opposite side of the plotting area.","If *true*, the axis lines are mirrored.","If *ticks*, the axis lines and ticks are mirrored.","If *false*, mirroring is disable.","If *all*, axis lines are mirrored on all shared-axes subplots.","If *allticks*, axis lines and ticks are mirrored","on all shared-axes subplots."].join(" ")},ticklen:{valType:"number",min:0,dflt:5,role:"style",editType:"ticks",description:"Sets the tick length (in px)."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",editType:"ticks",description:"Sets the tick width (in px)."},tickcolor:{valType:"color",dflt:a.defaultLine,role:"style",editType:"ticks",description:"Sets the tick color."},showticklabels:{valType:"boolean",dflt:!0,role:"style",editType:"ticks",description:"Determines whether or not the tick labels are drawn."},automargin:{valType:"boolean",dflt:!1,role:"style",editType:"ticks",description:["Determines whether long tick labels automatically grow the figure","margins."].join(" ")},showspikes:{valType:"boolean",dflt:!1,role:"style",editType:"modebar",description:["Determines whether or not spikes (aka droplines) are drawn for this axis.","Note: This only takes affect when hovermode = closest"].join(" ")},spikecolor:{valType:"color",dflt:null,role:"style",editType:"none",description:"Sets the spike color. If undefined, will use the series color"},spikethickness:{valType:"number",dflt:3,role:"style",editType:"none",description:"Sets the width (in px) of the zero line."},spikedash:o({},i,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],role:"style",dflt:"toaxis",editType:"none",description:["Determines the drawing mode for the spike line","If *toaxis*, the line is drawn from the data point to the axis the ","series is plotted on.","If *across*, the line is drawn across the entire plot area, and","supercedes *toaxis*.","If *marker*, then a marker dot is drawn on the axis the series is","plotted on"].join(" ")},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"data",role:"style",editType:"none",description:"Determines whether spikelines are stuck to the cursor or to the closest datapoints."},tickfont:r({editType:"ticks",description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",role:"style",editType:"ticks",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},tickprefix:{valType:"string",dflt:"",role:"style",editType:"ticks",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",editType:"ticks",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",role:"style",editType:"ticks",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",editType:"ticks",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",editType:"ticks",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",role:"style",editType:"ticks",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B."].join(" ")},separatethousands:{valType:"boolean",dflt:!1,role:"style",editType:"ticks",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",role:"style",editType:"ticks",description:["Sets the tick label formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:",s,"And for dates see:",c,"We add one item to d3's date formatter: *%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")},tickformatstops:l("tickformatstop",{enabled:{valType:"boolean",role:"info",dflt:!0,editType:"ticks",description:["Determines whether or not this stop is used.","If `false`, this stop is ignored even within its `dtickrange`."].join(" ")},dtickrange:{valType:"info_array",role:"info",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks",description:["range [*min*, *max*], where *min*, *max* - dtick values","which describe some zoom level, it is possible to omit *min*","or *max* value by passing *null*"].join(" ")},value:{valType:"string",dflt:"",role:"style",editType:"ticks",description:["string - dtickformat for described zoom level, the same as *tickformat*"].join(" ")},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",role:"style",editType:"none",description:["Sets the hover text formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:",s,"And for dates see:",c,"We add one item to d3's date formatter: *%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")},showline:{valType:"boolean",dflt:!1,role:"style",editType:"ticks+layoutstyle",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:a.defaultLine,role:"style",editType:"layoutstyle",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,role:"style",editType:"ticks+layoutstyle",description:"Sets the width (in px) of the axis line."},showgrid:{valType:"boolean",role:"style",editType:"ticks",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")},gridcolor:{valType:"color",dflt:a.lightLine,role:"style",editType:"ticks",description:"Sets the color of the grid lines."},gridwidth:{valType:"number",min:0,dflt:1,role:"style",editType:"ticks",description:"Sets the width (in px) of the grid lines."},zeroline:{valType:"boolean",role:"style",editType:"ticks",description:["Determines whether or not a line is drawn at along the 0 value","of this axis.","If *true*, the zero line is drawn on top of the grid lines."].join(" ")},zerolinecolor:{valType:"color",dflt:a.defaultLine,role:"style",editType:"ticks",description:"Sets the line color of the zero line."},zerolinewidth:{valType:"number",dflt:1,role:"style",editType:"ticks",description:"Sets the width (in px) of the zero line."},showdividers:{valType:"boolean",dflt:!0,role:"style",editType:"ticks",description:["Determines whether or not a dividers are drawn","between the category levels of this axis.","Only has an effect on *multicategory* axes."].join(" ")},dividercolor:{valType:"color",dflt:a.defaultLine,role:"style",editType:"ticks",description:["Sets the color of the dividers","Only has an effect on *multicategory* axes."].join(" ")},dividerwidth:{valType:"number",dflt:1,role:"style",editType:"ticks",description:["Sets the width (in px) of the dividers","Only has an effect on *multicategory* axes."].join(" ")},anchor:{valType:"enumerated",values:["free",d.idRegex.x.toString(),d.idRegex.y.toString()],role:"info",editType:"plot",description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to","the corresponding opposite-letter axis.","If set to *free*, this axis' position is determined by `position`."].join(" ")},side:{valType:"enumerated",values:["top","bottom","left","right"],role:"info",editType:"plot",description:["Determines whether a x (y) axis is positioned","at the *bottom* (*left*) or *top* (*right*)","of the plotting area."].join(" ")},overlaying:{valType:"enumerated",values:["free",d.idRegex.x.toString(),d.idRegex.y.toString()],role:"info",editType:"plot",description:["If set a same-letter axis id, this axis is overlaid on top of","the corresponding same-letter axis, with traces and axes visible for both","axes.","If *false*, this axis does not overlay any same-letter axes.","In this case, for axes with overlapping domains only the highest-numbered","axis will be visible."].join(" ")},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",role:"info",editType:"plot",description:["Sets the layer on which this axis is displayed.","If *above traces*, this axis is displayed above all the subplot's traces","If *below traces*, this axis is displayed below all the subplot's traces,","but above the grid lines.","Useful when used together with scatter-like traces with `cliponaxis`","set to *false* to show markers and/or text nodes above this axis."].join(" ")},domain:{valType:"info_array",role:"info",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot",description:["Sets the domain of this axis (in plot fraction)."].join(" ")},position:{valType:"number",min:0,max:1,dflt:0,role:"style",editType:"plot",description:["Sets the position of this axis in the plotting space","(in normalized coordinates).","Only has an effect if `anchor` is set to *free*."].join(" ")},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","median ascending","median descending"],dflt:"trace",role:"info",editType:"calc",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`.","Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the","numerical order of the values.","Similarly, the order can be determined by the min, max, sum, mean or median of all the values."].join(" ")},categoryarray:{valType:"data_array",role:"info",editType:"calc",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},uirevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of user-driven changes in axis `range`,","`autorange`, and `title` if in `editable: true` configuration.","Defaults to `layout.uirevision`."].join(" ")},editType:"calc",_deprecated:{autotick:{valType:"boolean",role:"info",editType:"ticks",description:["Obsolete.","Set `tickmode` to *auto* for old `autotick` *true* behavior.","Set `tickmode` to *linear* for `autotick` *false*."].join(" ")},title:{valType:"string",role:"info",editType:"ticks",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the axis' title, please use `title.text` now."].join(" ")},titlefont:r({editType:"ticks",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}}},"1Bxf":function(e,t,n){"use strict";e.exports=function(e,t,n){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),"h"===n.orientation?(e.label=e.y,e.value=e.x):(e.label=e.x,e.value=e.y),e}},"1YsL":function(e,t,n){"use strict";var r=n("/CZE"),a=n("dnh+");e.exports=function(e,t,n){var i=!1;function o(n,i){return r.coerce(e,t,a,n,i)}for(var l=0;l<n.length;l++){var s=n[l];if(s.visible&&"funnel"===s.type){i=!0;break}}i&&(o("funnelmode"),o("funnelgap",.2),o("funnelgroupgap"))}},"1vus":function(e,t,n){"use strict";var r=n("pcRN"),a=n("/CZE"),i=n("BkK/"),o=n("wlgE").extractOpts;e.exports=function(e,t,n,l,s,c){var u,d,h,f,p=e.cd[0],g=p.trace,v=e.xa,m=e.ya,y=p.x,x=p.y,b=p.z,w=p.xCenter,_=p.yCenter,k=p.zmask,T=g.zhoverformat,M=y,A=x;if(!1!==e.index){try{h=Math.round(e.index[1]),f=Math.round(e.index[0])}catch(t){return void a.error("Error hovering on heatmap, pointNumber must be [row,col], found:",e.index)}if(h<0||h>=b[0].length||f<0||f>b.length)return}else{if(r.inbox(t-y[0],t-y[y.length-1],0)>0||r.inbox(n-x[0],n-x[x.length-1],0)>0)return;if(c){var S;for(M=[2*y[0]-y[1]],S=1;S<y.length;S++)M.push((y[S]+y[S-1])/2);for(M.push([2*y[y.length-1]-y[y.length-2]]),A=[2*x[0]-x[1]],S=1;S<x.length;S++)A.push((x[S]+x[S-1])/2);A.push([2*x[x.length-1]-x[x.length-2]])}h=Math.max(0,Math.min(M.length-2,a.findBin(t,M))),f=Math.max(0,Math.min(A.length-2,a.findBin(n,A)))}var C=v.c2p(y[h]),L=v.c2p(y[h+1]),I=m.c2p(x[f]),E=m.c2p(x[f+1]);c?(L=C,u=y[h],E=I,d=x[f]):(u=w?w[h]:(y[h]+y[h+1])/2,d=_?_[f]:(x[f]+x[f+1])/2,v&&"category"===v.type&&(u=y[h]),m&&"category"===m.type&&(d=x[f]),g.zsmooth&&(C=L=v.c2p(u),I=E=m.c2p(d)));var O=b[f][h];if(k&&!k[f][h]&&(O=void 0),void 0!==O||g.hoverongaps){var D;Array.isArray(p.hovertext)&&Array.isArray(p.hovertext[f])?D=p.hovertext[f][h]:Array.isArray(p.text)&&Array.isArray(p.text[f])&&(D=p.text[f][h]);var P=o(g),z={type:"linear",range:[P.min,P.max],hoverformat:T,_separators:v._separators,_numFormat:v._numFormat},N=i.tickText(z,O,"hover").text;return[a.extendFlat(e,{index:g._after2before?g._after2before[f][h]:[f,h],distance:e.maxHoverDistance,spikeDistance:e.maxSpikeDistance,x0:C,x1:L,y0:I,y1:E,xLabelVal:u,yLabelVal:d,zLabelVal:O,zLabel:N,text:D})]}}},"1wZf":function(e,t,n){"use strict";var r=n("Nx4I"),a=n("/CZE").isArrayOrTypedArray;e.exports=function(e,t,n,i,o,l){var s,c,u,d=[],h=r.traceIs(e,"contour"),f=r.traceIs(e,"histogram"),p=r.traceIs(e,"gl2d");if(a(t)&&t.length>1&&!f&&"category"!==l.type){var g=t.length;if(!(g<=o))return h?t.slice(0,o):t.slice(0,o+1);if(h||p)d=t.slice(0,o);else if(1===o)d=[t[0]-.5,t[0]+.5];else{for(d=[1.5*t[0]-.5*t[1]],u=1;u<g;u++)d.push(.5*(t[u-1]+t[u]));d.push(1.5*t[g-1]-.5*t[g-2])}if(g<o){var v=d[d.length-1],m=v-d[d.length-2];for(u=g;u<o;u++)v+=m,d.push(v)}}else{var y=e[l._id.charAt(0)+"calendar"];if(f)s=l.r2c(n,0,y);else if(a(t)&&1===t.length)s=t[0];else if(void 0===n)s=0;else{s=("log"===l.type?l.d2c:l.r2c)(n,0,y)}for(c=i||1,u=h||p?0:-.5;u<o;u++)d.push(s+c*u)}return d}},"1y5b":function(e,t,n){"use strict";var r=n("0wH6"),a=n("plED").templatedArray;e.exports=a("image",{visible:{valType:"boolean",role:"info",dflt:!0,editType:"arraydraw",description:["Determines whether or not this image is visible."].join(" ")},source:{valType:"string",role:"info",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",role:"info",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",role:"info",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."].join(" ")},sizey:{valType:"number",role:"info",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."].join(" ")},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",role:"info",editType:"arraydraw",description:["Specifies which dimension of the image to constrain."].join(" ")},opacity:{valType:"number",role:"info",min:0,max:1,dflt:1,editType:"arraydraw",description:"Sets the opacity of the image."},x:{valType:"any",role:"info",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",role:"info",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",role:"info",editType:"arraydraw",description:"Sets the anchor for the x position"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",role:"info",editType:"arraydraw",description:"Sets the anchor for the y position."},xref:{valType:"enumerated",values:["paper",r.idRegex.x.toString()],dflt:"paper",role:"info",editType:"arraydraw",description:["Sets the images's x coordinate axis.","If set to a x axis id (e.g. *x* or *x2*), the `x` position","refers to an x data coordinate","If set to *paper*, the `x` position refers to the distance from","the left of plot in normalized coordinates","where *0* (*1*) corresponds to the left (right)."].join(" ")},yref:{valType:"enumerated",values:["paper",r.idRegex.y.toString()],dflt:"paper",role:"info",editType:"arraydraw",description:["Sets the images's y coordinate axis.","If set to a y axis id (e.g. *y* or *y2*), the `y` position","refers to a y data coordinate.","If set to *paper*, the `y` position refers to the distance from","the bottom of the plot in normalized coordinates","where *0* (*1*) corresponds to the bottom (top)."].join(" ")},editType:"arraydraw"})},2:function(e,t){},"21T9":function(e,t,n){"use strict";t.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",role:"style",editType:"style",description:["Sets the dash style of lines. Set to a dash type string","(*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*)","or a dash length list in px (eg *5px,10px,2px,2px*)."].join(" ")}},"28dr":function(e,t,n){"use strict";var r=n("bljh"),a=n("Nx4I"),i=n("/CZE"),o=n("0RW4"),l=n("g9E0"),s=n("pcRN"),c=n("u3HJ"),u=n("BkK/"),d=n("zlYT").getAutoRange,h=n("Tv4R"),f=n("GHb7").prepSelect,p=n("GHb7").clearSelect,g=n("GHb7").selectOnClick,v=n("vmS9"),m=n("CASU"),y=n("CRlY"),x=n("xAC+"),b=n("0hfp").feature;function w(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}n("S4zj")(r);var _=w.prototype;function k(e,t){var n=m.clipPad,r=e[0]+n,a=e[1]-n,i=t[0]+n,o=t[1]-n;r>0&&a<0&&(a+=360);var l=(a-r)/4;return{type:"Polygon",coordinates:[[[r,i],[r,o],[r+l,o],[r+2*l,o],[r+3*l,o],[a,o],[a,i],[a-l,i],[a-2*l,i],[a-3*l,i],[r,i]]]}}e.exports=function(e){return new w(e)},_.plot=function(e,t,n){var r=this,a=t[this.id],i=[],o=!1;for(var l in m.layerNameToAdjective)if("frame"!==l&&a["show"+l]){o=!0;break}for(var s=0;s<e.length;s++)if(e[0][0].trace.locationmode){o=!0;break}if(o){var c=x.getTopojsonName(a);null!==r.topojson&&c===r.topojsonName||(r.topojsonName=c,void 0===PlotlyGeoAssets.topojson[r.topojsonName]&&i.push(r.fetchTopojson()))}i=i.concat(y.fetchTraceGeoData(e)),n.push(new Promise((function(n,a){Promise.all(i).then((function(){r.topojson=PlotlyGeoAssets.topojson[r.topojsonName],r.update(e,t),n()})).catch(a)})))},_.fetchTopojson=function(){var e=this,t=x.getTopojsonPath(e.topojsonURL,e.topojsonName);return new Promise((function(n,a){r.json(t,(function(r,i){if(r)return 404===r.status?a(new Error(["plotly.js could not find topojson file at",t,".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):a(new Error(["unexpected error while fetching topojson file at",t].join(" ")));PlotlyGeoAssets.topojson[e.topojsonName]=i,n()}))}))},_.update=function(e,t){var n=t[this.id];this.hasChoropleth=!1;for(var r=0;r<e.length;r++){var a=e[r],i=a[0].trace;"choropleth"===i.type&&(this.hasChoropleth=!0),!0===i.visible&&i._length>0&&i._module.calcGeoJSON(a,t)}if(!this.updateProjection(e,t)){this.viewInitial&&this.scope===n.scope||this.saveViewInitial(n),this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),c.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var o=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=o.selectAll(".point"),this.dataPoints.text=o.selectAll("text"),this.dataPaths.line=o.selectAll(".js-line");var l=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=l.selectAll("path"),this.render()}},_.updateProjection=function(e,t){var n=this.graphDiv,o=t[this.id],l=t._size,s=o.domain,c=o.projection,u=o.lonaxis,h=o.lataxis,f=u._ax,p=h._ax,g=this.projection=function(e){for(var t=e.projection.type,n=r.geo[m.projNames[t]](),a=e._isClipped?m.lonaxisSpan[t]/2:null,i=["center","rotate","parallels","clipExtent"],o=function(e){return e?n:[]},l=0;l<i.length;l++){var s=i[l];"function"!=typeof n[s]&&(n[s]=o)}n.isLonLatOverEdges=function(e){if(null===n(e))return!0;if(a){var t=n.rotate();return r.geo.distance(e,[-t[0],-t[1]])>a*Math.PI/180}return!1},n.getPath=function(){return r.geo.path().projection(n)},n.getBounds=function(e){return n.getPath().bounds(e)},n.fitExtent=function(e,t){var r=e[1][0]-e[0][0],a=e[1][1]-e[0][1],i=n.clipExtent&&n.clipExtent();n.scale(150).translate([0,0]),i&&n.clipExtent(null);var o=n.getBounds(t),l=Math.min(r/(o[1][0]-o[0][0]),a/(o[1][1]-o[0][1])),s=+e[0][0]+(r-l*(o[1][0]+o[0][0]))/2,c=+e[0][1]+(a-l*(o[1][1]+o[0][1]))/2;return i&&n.clipExtent(i),n.scale(150*l).translate([s,c])},n.precision(m.precision),a&&n.clipAngle(a-m.clipPad);return n}(o),v=[[l.l+l.w*s.x[0],l.t+l.h*(1-s.y[1])],[l.l+l.w*s.x[1],l.t+l.h*(1-s.y[0])]],y=o.center||{},x=c.rotation||{},b=u.range||[],w=h.range||[];if(o.fitbounds){f._length=v[1][0]-v[0][0],p._length=v[1][1]-v[0][1],f.range=d(n,f),p.range=d(n,p);var _=(f.range[0]+f.range[1])/2,T=(p.range[0]+p.range[1])/2;if(o._isScoped)y={lon:_,lat:T};else if(o._isClipped){y={lon:_,lat:T},x={lon:_,lat:T,roll:x.roll};var M=c.type,A=m.lonaxisSpan[M]/2||180,S=m.lataxisSpan[M]/2||180;b=[_-A,_+A],w=[T-S,T+S]}else y={lon:_,lat:T},x={lon:_,lat:x.lat,roll:x.roll}}g.center([y.lon-x.lon,y.lat-x.lat]).rotate([-x.lon,-x.lat,x.roll]).parallels(c.parallels);var C=k(b,w);g.fitExtent(v,C);var L=this.bounds=g.getBounds(C),I=this.fitScale=g.scale(),E=g.translate();if(!isFinite(L[0][0])||!isFinite(L[0][1])||!isFinite(L[1][0])||!isFinite(L[1][1])||isNaN(E[0])||isNaN(E[0])){for(var O=["fitbounds","projection.rotation","center","lonaxis.range","lataxis.range"],D="Invalid geo settings, relayout'ing to default view.",P={},z=0;z<O.length;z++)P[this.id+"."+O[z]]=null;return this.viewInitial=null,i.warn(D),n._promises.push(a.call("relayout",n,P)),D}if(o.fitbounds){var N=g.getBounds(k(f.range,p.range)),j=Math.min((L[1][0]-L[0][0])/(N[1][0]-N[0][0]),(L[1][1]-L[0][1])/(N[1][1]-N[0][1]));isFinite(j)?g.scale(j*I):i.warn("Something went wrong during"+this.id+"fitbounds computations.")}else g.scale(c.scale*I);var R=this.midPt=[(L[0][0]+L[1][0])/2,(L[0][1]+L[1][1])/2];if(g.translate([E[0]+(R[0]-E[0]),E[1]+(R[1]-E[1])]).clipExtent(L),o._isAlbersUsa){var F=g([y.lon,y.lat]),B=g.translate();g.translate([B[0]-(F[0]-B[0]),B[1]-(F[1]-B[1])])}},_.updateBaseLayers=function(e,t){var n=this,a=n.topojson,i=n.layers,s=n.basePaths;function c(e){return"lonaxis"===e||"lataxis"===e}function d(e){return Boolean(m.lineLayers[e])}function h(e){return Boolean(m.fillLayers[e])}var f=(this.hasChoropleth?m.layersForChoropleth:m.layers).filter((function(e){return d(e)||h(e)?t["show"+e]:!c(e)||t[e].showgrid})),p=n.framework.selectAll(".layer").data(f,String);p.exit().each((function(e){delete i[e],delete s[e],r.select(this).remove()})),p.enter().append("g").attr("class",(function(e){return"layer "+e})).each((function(e){var t=i[e]=r.select(this);"bg"===e?n.bgRect=t.append("rect").style("pointer-events","all"):c(e)?s[e]=t.append("path").style("fill","none"):"backplot"===e?t.append("g").classed("choroplethlayer",!0):"frontplot"===e?t.append("g").classed("scatterlayer",!0):d(e)?s[e]=t.append("path").style("fill","none").style("stroke-miterlimit",2):h(e)&&(s[e]=t.append("path").style("stroke","none"))})),p.order(),p.each((function(n){var r=s[n],i=m.layerNameToAdjective[n];"frame"===n?r.datum(m.sphereSVG):d(n)||h(n)?r.datum(b(a,a.objects[n])):c(n)&&r.datum(function(e,t,n){var r,a,i,o=t[e],l=m.scopeDefaults[t.scope];"lonaxis"===e?(r=l.lonaxisRange,a=l.lataxisRange,i=function(e,t){return[e,t]}):"lataxis"===e&&(r=l.lataxisRange,a=l.lonaxisRange,i=function(e,t){return[t,e]});var s={type:"linear",range:[r[0],r[1]-1e-6],tick0:o.tick0,dtick:o.dtick};u.setConvert(s,n);var c=u.calcTicks(s);t.isScoped||"lonaxis"!==e||c.pop();for(var d=c.length,h=new Array(d),f=0;f<d;f++)for(var p=c[f].x,g=h[f]=[],v=a[0];v<a[1]+2.5;v+=2.5)g.push(i(p,v));return{type:"MultiLineString",coordinates:h}}(n,t,e)).call(o.stroke,t[n].gridcolor).call(l.dashLine,"",t[n].gridwidth),d(n)?r.call(o.stroke,t[i+"color"]).call(l.dashLine,"",t[i+"width"]):h(n)&&r.call(o.fill,t[i+"color"])}))},_.updateDims=function(e,t){var n=this.bounds,r=(t.framewidth||0)/2,a=n[0][0]-r,i=n[0][1]-r,s=n[1][0]-a+r,c=n[1][1]-i+r;l.setRect(this.clipRect,a,i,s,c),this.bgRect.call(l.setRect,a,i,s,c).call(o.fill,t.bgcolor),this.xaxis._offset=a,this.xaxis._length=s,this.yaxis._offset=i,this.yaxis._length=c},_.updateFx=function(e,t){var n=this,i=n.graphDiv,o=n.bgRect,l=e.dragmode,c=e.clickmode;if(!n.isStatic){var u;"select"===l?u=function(e,t){(e.range={})[n.id]=[m([t.xmin,t.ymin]),m([t.xmax,t.ymax])]}:"lasso"===l&&(u=function(e,t,r){(e.lassoPoints={})[n.id]=r.filtered.map(m)});var d={element:n.bgRect.node(),gd:i,plotinfo:{id:n.id,xaxis:n.xaxis,yaxis:n.yaxis,fillRangeItems:u},xaxes:[n.xaxis],yaxes:[n.yaxis],subplot:n.id,clickFn:function(e){2===e&&p(i)}};"pan"===l?(o.node().onmousedown=null,o.call(v(n,t)),o.on("dblclick.zoom",(function(){var e=n.viewInitial,t={};for(var r in e)t[n.id+"."+r]=e[r];a.call("_guiRelayout",i,t),i.emit("plotly_doubleclick",null)})),i._context._scrollZoom.geo||o.on("wheel.zoom",null)):"select"!==l&&"lasso"!==l||(o.on(".zoom",null),d.prepFn=function(e,t,n){f(e,t,n,d,l)},h.init(d)),o.on("mousemove",(function(){var e=n.projection.invert(r.mouse(this));if(!e||isNaN(e[0])||isNaN(e[1]))return h.unhover(i,r.event);n.xaxis.p2c=function(){return e[0]},n.yaxis.p2c=function(){return e[1]},s.hover(i,r.event,n.id)})),o.on("mouseout",(function(){i._dragging||h.unhover(i,r.event)})),o.on("click",(function(){"select"!==l&&"lasso"!==l&&(c.indexOf("select")>-1&&g(r.event,i,[n.xaxis],[n.yaxis],n.id,d),c.indexOf("event")>-1&&s.click(i,r.event))}))}function m(e){return n.projection.invert([e[0]+n.xaxis._offset,e[1]+n.yaxis._offset])}},_.makeFramework=function(){var e=this,t=e.graphDiv,n=t._fullLayout,a="clip"+n._uid+e.id;e.clipDef=n._clips.append("clipPath").attr("id",a),e.clipRect=e.clipDef.append("rect"),e.framework=r.select(e.container).append("g").attr("class","geo "+e.id).call(l.setClipUrl,a,t),e.project=function(t){var n=e.projection(t);return n?[n[0]-e.xaxis._offset,n[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(t){return e.project(t)[0]}},e.yaxis={_id:"y",c2p:function(t){return e.project(t)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},u.setConvert(e.mockAxis,n)},_.saveViewInitial=function(e){var t,n=e.center||{},r=e.projection,a=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale},t=e._isScoped?{"center.lon":n.lon,"center.lat":n.lat}:e._isClipped?{"projection.rotation.lon":a.lon,"projection.rotation.lat":a.lat}:{"center.lon":n.lon,"center.lat":n.lat,"projection.rotation.lon":a.lon},i.extendFlat(this.viewInitial,t)},_.render=function(){var e,t=this.projection,n=t.getPath();function r(e){var n=t(e.lonlat);return n?"translate("+n[0]+","+n[1]+")":null}function a(e){return t.isLonLatOverEdges(e.lonlat)?"none":null}for(e in this.basePaths)this.basePaths[e].attr("d",n);for(e in this.dataPaths)this.dataPaths[e].attr("d",(function(e){return n(e.geojson)}));for(e in this.dataPoints)this.dataPoints[e].attr("display",a).attr("transform",r)}},"29RQ":function(e,t,n){"use strict";n.r(t);var r=n("fHvi").a,a=(n("EcrW"),n("KHd+")),i=Object(a.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-container",{ref:"analyzeview",attrs:{fluid:""}},[n("v-card",[n("table",{staticStyle:{width:"100%",top:"10%",position:"relative"}},[n("tr",[n("td",{staticStyle:{width:"48px"}},[e._v("Rows")]),e._v(" "),n("td",{staticStyle:{width:"4px"}},[e._v(":")]),e._v(" "),n("td",{staticStyle:{"overflow-y":"auto"}},[n("draggable",{staticClass:"rowdroparea",attrs:{group:{name:"md"},move:e.checkMDRearrange},model:{value:e.selectedRows,callback:function(t){e.selectedRows=t},expression:"selectedRows"}},e._l(e.selectedRows,(function(t){return n("v-chip",{key:t.Id,staticClass:"area",attrs:{close:"",small:"",color:"#387CA3","text-color":"white"},on:{"update:active":function(n){return e.toggleRow(t)}}},[e._v(e._s(t.Name))])})),1)],1),e._v(" "),n("td",{staticStyle:{align:"center",width:"40px"},attrs:{rowspan:"2"}},[n("v-btn",{attrs:{rounded:"",color:"#3c8dbc",dark:""},on:{click:function(t){return e.getVueReport()}}},[e._v("Go")])],1),e._v(" "),n("td",{staticStyle:{align:"center",width:"40px"},attrs:{rowspan:"2"}},[n("v-btn",{attrs:{rounded:"",color:"#3c8dbc",dark:""},on:{click:function(t){return e.clearSelection()}}},[e._v("Clear")])],1)]),e._v(" "),n("tr",[n("td",{staticStyle:{width:"40px"}},[e._v("Columns")]),e._v(" "),n("td",{staticStyle:{width:"4px"}},[e._v(":")]),e._v(" "),n("td",{staticStyle:{"overflow-y":"auto"}},[n("draggable",{staticClass:"coldroparea",attrs:{group:{name:"md"},move:e.checkMDRearrange},model:{value:e.selectedColumns,callback:function(t){e.selectedColumns=t},expression:"selectedColumns"}},e._l(e.selectedColumns,(function(t){return n("v-chip",{key:t.Id,staticClass:"area",attrs:{close:"",small:"",color:"#98506D","text-color":"white"},on:{"update:active":function(n){return e.toggleColumn(t)}}},[e._v(e._s(t.Name))])})),1)],1)])])]),e._v(" "),e.goClicked?n("v-layout",[n("v-flex",{attrs:{md8:""}},[n("label",{staticStyle:{color:"darkred","font-size":"15px","font-style":"italic"}},[e._v(e._s(e.AppliedFilters))])]),e._v(" "),n("v-spacer"),e._v(" "),n("v-flex",[n("v-layout",{attrs:{"align-end":"","justify-end":""}},[n("v-menu",{attrs:{"open-on-hover":"","offset-x":"",left:""},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on,a=t.attrs;return[n("v-icon",e._g(e._b({staticStyle:{"margin-top":"12px"},attrs:{title:"Chart Type",color:"#2aa9dae3"}},"v-icon",a,!1),Object.assign({},r)),[e._v("mdi-poll")])]}}],null,!1,2995490666)},[e._v(" "),n("v-card",[n("table",{staticClass:"gtypeTable",attrs:{border:"0",cellpadding:"0",cellspacing:"0"}},[n("tr",[n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionReportPie",attrs:{title:"Pie"},on:{click:function(t){return e.redrawGraph("Pie")}}})])]),e._v(" "),n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionReportDonut",attrs:{title:"Donut Chart"},on:{click:function(t){return e.redrawGraph("Donut")}}})])]),e._v(" "),n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionReportSunburst",attrs:{title:"Sunburst Chart"},on:{click:function(t){return e.redrawGraph("Sunburst")}}})])]),e._v(" "),n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionHVLine",attrs:{title:"HVLine"},on:{click:function(t){return e.redrawGraph("HVLine")}}})])]),e._v(" "),n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionReportLine",attrs:{title:"Line"},on:{click:function(t){return e.redrawGraph("Line")}}})])])]),e._v(" "),n("tr",[n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionReportStackedArea",attrs:{title:"Stacked Area Chart"},on:{click:function(t){return e.redrawGraph("StackedArea")}}})])]),e._v(" "),n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionReportBar",attrs:{title:"Bar"},on:{click:function(t){return e.redrawGraph("Bar")}}})])]),e._v(" "),n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionReportColumn",attrs:{title:"Column chart"},on:{click:function(t){return e.redrawGraph("Column")}}})])]),e._v(" "),n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionReportStack",attrs:{title:"Stacked Bar"},on:{click:function(t){return e.redrawGraph("StackedBar")}}})])]),e._v(" "),n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionFunnelChart",attrs:{title:"Funnel Chart"},on:{click:function(t){return e.redrawGraph("Funnel")}}})])])]),e._v(" "),n("tr",[n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionReportZoomTree",attrs:{title:"Zoomable Tree"},on:{click:function(t){return e.redrawGraph("Treemap")}}})])]),e._v(" "),n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionReportHeat",attrs:{title:"Heat Chart"},on:{click:function(t){return e.redrawGraph("Heatmap")}}})])]),e._v(" "),n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionReportMap",attrs:{title:"Map"},on:{click:function(t){return e.redrawGraph("Geo")}}})])]),e._v(" "),n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionReportDataTable",attrs:{title:"Data Table"},on:{click:function(t){return e.redrawGraph("DataTable")}}})])]),e._v(" "),n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionProgressBar",attrs:{title:"Progress Bar"},on:{click:function(t){return e.redrawGraph("ProgressBar")}}})])])]),e._v(" "),n("tr",[n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionStackedFunnel",attrs:{title:"Stacked Funnel"},on:{click:function(t){return e.redrawGraph("StackedFunnel")}}})])]),e._v(" "),n("td",[n("span",{staticClass:"gtypeClass"},[n("b",{staticClass:"actionInfoBox",attrs:{title:"InfoBox"},on:{click:function(t){return e.redrawGraph("InfoBox")}}})])])])])])],1),e._v(" "),n("v-icon",{staticStyle:{"margin-top":"12px"},attrs:{title:"download"},on:{click:function(){e.exportData()}}},[e._v("mdi-download")]),e._v(" "),n("v-icon",{staticStyle:{"margin-top":"12px"},attrs:{title:"Save Report"},on:{click:function(){e.saveReportDialog=!0}}},[e._v("mdi-content-save")])],1)],1),e._v(" "),n("cub-save",{attrs:{reportId:e.reportId,dimIds:e.selectedDimIds.join(":"),measIds:e.selectedMeasIds.join(":"),filterStr:e.selectedFilterStr,cmplxFilterStr:e.complexFilterStr,isCrossTab:e.dataTableItems.isCrossTab,graphType:e.selectedGraphType},model:{value:e.saveReportDialog,callback:function(t){e.saveReportDialog=t},expression:"saveReportDialog"}})],1):e._e(),e._v(" "),e.isFetchingData?n("v-container",{staticStyle:{top:"50%",height:"100%",width:"100%"}},[n("v-row",{staticClass:"fill-height",attrs:{"align-content":"center",justify:"center"}},[n("v-col",{staticClass:"subtitle-1 text-center",attrs:{cols:"12"}},[e._v("Getting report data")]),e._v(" "),n("v-col",{attrs:{cols:"6"}},[n("v-progress-linear",{attrs:{color:"deep-purple accent-4",indeterminate:"",rounded:"",height:"6"}})],1)],1)],1):e._e(),e._v(" "),n("v-breadcrumbs",{directives:[{name:"show",rawName:"v-show",value:e.drillLabels.length>1,expression:"drillLabels.length>1"}],attrs:{items:e.drillLabels},scopedSlots:e._u([{key:"item",fn:function(t){var r=t.item;return[n("v-breadcrumbs-item",{on:{click:function(t){return e.breadcrumbClick(r.text,r.depth,r.node)}}},[e._v(e._s(r.text))])]}},{key:"divider",fn:function(){return[n("v-icon",[e._v("mdi-chevron-right")])]},proxy:!0}])}),e._v(" "),e.dataTableItems.isdatatable&&!e.dataTableItems.isCrossTab?n("div",{staticStyle:{height:"100%",width:"100%"},attrs:{id:"chart_div"}},[n("v-row"),e._v(" "),n("div",{attrs:{id:"tablediv"}},[n("cub-data-table",{attrs:{headers:e.dataTableItems.headers,dataTableCurrenyFormat:e.currencyFormat,chartdataJSON:e.dataTableItems.chartdataJSON},on:{"update:dataTableCurrenyFormat":function(t){e.currencyFormat=t},"update:data-table-curreny-format":function(t){e.currencyFormat=t}}})],1)],1):e.dataTableItems.isdatatable&&e.dataTableItems.isCrossTab?n("div",{staticStyle:{height:"100%",width:"100%"},attrs:{id:"chart_div"}},[n("div",{attrs:{id:"tablediv"}},[n("cub-data-table-crosstab",{attrs:{report:e.report,chartdata:e.dataTableItems.chartdata}})],1)]):n("div",{attrs:{id:"chart_div"}})],1)}),[],!1,null,"d85920da",null);t.default=i.exports},"2DHC":function(e,t,n){"use strict";e.exports={moduleType:"trace",name:"funnelarea",basePlotModule:n("qPk+"),categories:["pie-like","funnelarea","showLegend"],attributes:n("7MU3"),layoutAttributes:n("89+b"),supplyDefaults:n("5IWQ"),supplyLayoutDefaults:n("/NYH"),calc:n("OTZx").calc,crossTraceCalc:n("OTZx").crossTraceCalc,plot:n("fEMZ"),style:n("pB2H"),styleOne:n("pwgW"),meta:{description:["Visualize stages in a process using area-encoded trapezoids. This trace can be used",'to show data in a part-to-whole representation similar to a "pie" trace, wherein','each item appears in a single stage. See also the "funnel" trace type for a different',"approach to visualizing funnel data."].join(" ")}}},"2FgJ":function(e,t,n){"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}}},"2S8E":function(e,t,n){"use strict";var r=n("2mon"),a=n("/CZE").isArrayOrTypedArray;e.exports=function(e,t,n,i){function o(n){var r=e[n];return void 0!==r?r:(t._template||{})[n]}var l=o("tick0"),s=o("dtick"),c=o("tickvals"),u=n("tickmode",a(c)?"array":s?"linear":"auto");if("auto"===u)n("nticks");else if("linear"===u){var d=t.dtick=r.dtick(s,i);t.tick0=r.tick0(l,i,t.calendar,d)}else if("multicategory"!==i){void 0===n("tickvals")?t.tickmode="auto":n("ticktext")}}},"2mon":function(e,t,n){"use strict";var r=n("GbLo"),a=n("/CZE"),i=n("6AZA").ONEDAY;t.dtick=function(e,t){var n="log"===t,a="date"===t,o="category"===t,l=a?i:1;if(!e)return l;if(r(e))return(e=Number(e))<=0?l:o?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if("string"!=typeof e||!a&&!n)return l;var s=e.charAt(0),c=e.substr(1);return(c=r(c)?Number(c):0)<=0||!(a&&"M"===s&&c===Math.round(c)||n&&"L"===s||n&&"D"===s&&(1===c||2===c))?l:e},t.tick0=function(e,t,n,i){return"date"===t?a.cleanDate(e,a.dateTick0(n)):"D1"!==i&&"D2"!==i?r(e)?Number(e):0:void 0}},"2oy/":function(e,t,n){"use strict";var r=n("bljh"),a=n("0RW4"),i=n("/CZE"),o=n("+1bK"),l=n("k6aH").resizeText;function s(e,t,n,r){var l,s,c=(r||{}).hovered,u=t.data.data,d=u.i,h=u.color,f=o.isHierarchyRoot(t),p=1;if(c)l=n._hovered.marker.line.color,s=n._hovered.marker.line.width;else if(f&&"rgba(0,0,0,0)"===h)p=0,l="rgba(0,0,0,0)",s=0;else if(l=i.castOption(n,d,"marker.line.color")||a.defaultLine,s=i.castOption(n,d,"marker.line.width")||0,!n._hasColorscale&&!t.onPathbar){var g=n.marker.depthfade;if(g){var v,m=a.combine(a.addOpacity(n._backgroundColor,.75),h);if(!0===g){var y=o.getMaxDepth(n);v=isFinite(y)?o.isLeaf(t)?0:n._maxVisibleLayers-(t.data.depth-n._entryDepth):t.data.height+1}else v=t.data.depth-n._entryDepth,n._atRootLevel||v++;if(v>0)for(var x=0;x<v;x++){var b=.5*x/v;h=a.combine(a.addOpacity(m,b),h)}}}e.style("stroke-width",s).call(a.fill,h).call(a.stroke,l).style("opacity",p)}e.exports={style:function(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");l(e,t,"treemap"),t.each((function(e){var t=r.select(this),n=e[0].trace;t.style("opacity",n.opacity),t.selectAll("path.surface").each((function(e){r.select(this).call(s,e,n,{hovered:!1})}))}))},styleOne:s}},"2z/O":function(e,t,n){"use strict";var r=n("GbLo"),a=n("Nx4I"),i=n("BkK/"),o=n("/CZE"),l=n("PDHv");function s(e,t,n,a){var s=t["error_"+a]||{},c=[];if(s.visible&&-1!==["linear","log"].indexOf(n.type)){for(var u=l(s),d=0;d<e.length;d++){var h=e[d],f=h.i;if(void 0===f)f=d;else if(null===f)continue;var p=h[a];if(r(n.c2l(p))){var g=u(p,f);if(r(g[0])&&r(g[1])){var v=h[a+"s"]=p-g[0],m=h[a+"h"]=p+g[1];c.push(v,m)}}}var y=n._id,x=t._extremes[y],b=i.findExtremes(n,c,o.extendFlat({tozero:x.opts.tozero},{padded:!0}));x.min=x.min.concat(b.min),x.max=x.max.concat(b.max)}}e.exports=function(e){for(var t=e.calcdata,n=0;n<t.length;n++){var r=t[n],o=r[0].trace;if(!0===o.visible&&a.traceIs(o,"errorBarsOK")){var l=i.getFromId(e,o.xaxis),c=i.getFromId(e,o.yaxis);s(r,o,l,"x"),s(r,o,c,"y")}}}},3:function(e,t){},"37PH":function(e,t,n){"use strict";t.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],t.defaultLine="#444",t.lightLine="#eee",t.background="#fff",t.borderLine="#BEC8D9",t.lightFraction=1e3/11},"3HVJ":function(e,t,n){"use strict";var r=n("GbLo"),a=n("rhNM"),i=n("MGx7"),o=n("6AZA").BADNUM;function l(e,t){return e<t}function s(e,t){return e<=t}function c(e,t){return e>t}function u(e,t){return e>=t}t.findBin=function(e,t,n){if(r(t.start))return n?Math.ceil((e-t.start)/t.size-1e-9)-1:Math.floor((e-t.start)/t.size+1e-9);var i,o,d=0,h=t.length,f=0,p=h>1?(t[h-1]-t[0])/(h-1):1;for(o=p>=0?n?l:s:n?u:c,e+=1e-9*p*(n?-1:1)*(p>=0?1:-1);d<h&&f++<100;)o(t[i=Math.floor((d+h)/2)],e)?d=i+1:h=i;return f>90&&a.log("Long binary search..."),d-1},t.sorterAsc=function(e,t){return e-t},t.sorterDes=function(e,t){return t-e},t.distinctVals=function(e){var n,r=e.slice();for(r.sort(t.sorterAsc),n=r.length-1;n>-1&&r[n]===o;n--);for(var a,i=r[n]-r[0]||1,l=i/(n||1)/1e4,s=[],c=0;c<=n;c++){var u=r[c],d=u-a;void 0===a?(s.push(u),a=u):d>l&&(i=Math.min(i,d),s.push(u),a=u)}return{vals:s,minDiff:i}},t.roundUp=function(e,t,n){for(var r,a=0,i=t.length-1,o=0,l=n?0:1,s=n?1:0,c=n?Math.ceil:Math.floor;a<i&&o++<100;)t[r=c((a+i)/2)]<=e?a=r+l:i=r-s;return t[a]},t.sort=function(e,t){for(var n=0,r=0,a=1;a<e.length;a++){var i=t(e[a],e[a-1]);if(i<0?n=1:i>0&&(r=1),n&&r)return e.sort(t)}return r?e:e.reverse()},t.findIndexOfMin=function(e,t){t=t||i;for(var n,r=1/0,a=0;a<e.length;a++){var o=t(e[a]);o<r&&(r=o,n=a)}return n}},"3MKb":function(e,t,n){"use strict";var r=n("/CZE"),a=n("5azm"),i=n("QtxG"),o=n("PS76").name,l=i.buttons;function s(e,t,n){function o(n,a){return r.coerce(e,t,i,n,a)}o("visible",a(e,t,{name:"buttons",handleItemDefaults:c}).length>0)&&(o("active"),o("direction"),o("type"),o("showactive"),o("x"),o("y"),r.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),r.coerceFont(o,"font",n.font),o("bgcolor",n.paper_bgcolor),o("bordercolor"),o("borderwidth"))}function c(e,t){function n(n,a){return r.coerce(e,t,l,n,a)}n("visible","skip"===e.method||Array.isArray(e.args))&&(n("method"),n("args"),n("args2"),n("label"),n("execute"))}e.exports=function(e,t){a(e,t,{name:o,handleItemDefaults:s})}},"3PNt":function(e,t){e.exports=!0},"3iLW":function(e,t,n){"use strict";var r=n("/CZE"),a=n("BkK/");function i(e,t){var n=t.fullSceneLayout.domain,i=t.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},r.extendFlat(e._xa,o),a.setConvert(e._xa),e._xa._offset=i.l+n.x[0]*i.w,e._xa.l2p=function(){return.5*(1+e._pdata[0]/e._pdata[3])*i.w*(n.x[1]-n.x[0])},e._ya={},r.extendFlat(e._ya,o),a.setConvert(e._ya),e._ya._offset=i.t+(1-n.y[1])*i.h,e._ya.l2p=function(){return.5*(1-e._pdata[1]/e._pdata[3])*i.h*(n.y[1]-n.y[0])}}e.exports=function(e){for(var t=e.fullSceneLayout.annotations,n=0;n<t.length;n++)i(t[n],e);e.fullLayout._infolayer.selectAll(".annotation-"+e.id).remove()}},"3mkv":function(e,t,n){"use strict";e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},"3oHU":function(e,t,n){"use strict";var r=n("/CZE");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 r.isPlainObject(e.marker)&&r.isArrayOrTypedArray(e.marker.size)}}},"3w8G":function(e,t,n){"use strict";n.r(t);t.default=function(e,t){var n=document.createElement("_"),r=n.appendChild(document.createElement("_")),a=n.appendChild(document.createElement("_")),i=r.appendChild(document.createElement("_")),o=void 0,l=void 0;return r.style.cssText=n.style.cssText="height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1",i.style.cssText=a.style.cssText="display:block;height:100%;transition:0s;width:100%",i.style.width=i.style.height="200%",e.appendChild(n),s(),function(){c(),e.removeChild(n)};function s(){c();var i=e.offsetWidth,u=e.offsetHeight;i===o&&u===l||(o=i,l=u,a.style.width=2*i+"px",a.style.height=2*u+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,t({width:i,height:u})),r.addEventListener("scroll",s),n.addEventListener("scroll",s)}function c(){r.removeEventListener("scroll",s),n.removeEventListener("scroll",s)}}},"49sm":function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},"4O/9":function(e,t,n){var r=n("Sxd8");e.exports=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=r(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}},"4WVA":function(e,t,n){"use strict";var r=n("/CZE"),a=n("HByh").handleGroupingDefaults,i=n("HByh").handleText,o=n("B28u"),l=n("Df4R"),s=n("0RW4"),c=n("uM7j"),u=c.INCREASING.COLOR,d=c.DECREASING.COLOR;function h(e,t,n){e(t+".marker.color",n),e(t+".marker.line.color",s.defaultLine),e(t+".marker.line.width")}e.exports={supplyDefaults:function(e,t,n,a){function s(n,a){return r.coerce(e,t,l,n,a)}if(o(e,t,a,s)){s("measure"),s("orientation",t.x&&!t.y?"h":"v"),s("base"),s("offset"),s("width"),s("text"),s("hovertext"),s("hovertemplate");var c=s("textposition");if(i(e,t,a,s,c,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),"none"!==t.textposition&&(s("texttemplate"),t.texttemplate||s("textinfo")),h(s,"increasing",u),h(s,"decreasing",d),h(s,"totals","#4499FF"),s("connector.visible"))s("connector.mode"),s("connector.line.width")&&(s("connector.line.color"),s("connector.line.dash"))}else t.visible=!1},crossTraceDefaults:function(e,t){var n,i;function o(e){return r.coerce(i._input,i,l,e)}if("group"===t.waterfallmode)for(var s=0;s<e.length;s++)n=(i=e[s])._input,a(n,i,t,o)}}},"4X2v":function(e,t,n){"use strict";var r=n("bljh"),a=n("yUfG"),i=n("g9E0"),o=n("/CZE"),l=n("A3kh"),s=n("k6aH"),c=s.recordMinTextSize,u=s.clearMinTextSize,d=n("wK8V"),h=d.computeTransform,f=d.transformInsideText,p=n("dZSj").styleOne,g=n("LfN2").resizeText,v=n("aWIO"),m=n("i6kf"),y=n("+1bK");function x(e,n,s,u){var d=e._fullLayout,g=!d.uniformtext.mode&&y.hasTransition(u),x=r.select(s).selectAll("g.slice"),w=n[0],_=w.trace,k=w.hierarchy,T=y.findEntryWithLevel(k,_.level),M=y.getMaxDepth(_),A=d._size,S=_.domain,C=A.w*(S.x[1]-S.x[0]),L=A.h*(S.y[1]-S.y[0]),I=.5*Math.min(C,L),E=w.cx=A.l+A.w*(S.x[1]+S.x[0])/2,O=w.cy=A.t+A.h*(1-S.y[0])-L/2;if(!T)return x.remove();var D=null,P={};g&&x.each((function(e){P[y.getPtId(e)]={rpx0:e.rpx0,rpx1:e.rpx1,x0:e.x0,x1:e.x1,transform:e.transform},!D&&y.isEntry(e)&&(D=e)}));var z=function(e){return a.partition().size([2*Math.PI,e.height+1])(e)}(T).descendants(),N=T.height+1,j=0,R=M;w.hasMultipleRoots&&y.isHierarchyRoot(T)&&(z=z.slice(1),N-=1,j=1,R+=1),z=z.filter((function(e){return e.y1<=R}));var F=Math.min(N,M),B=function(e){return(e-j)/F*I},H=function(e,t){return[e*Math.cos(t),-e*Math.sin(t)]},V=function(e){return o.pathAnnulus(e.rpx0,e.rpx1,e.x0,e.x1,E,O)},G=function(e){return E+b(e)[0]*(e.transform.rCenter||0)+(e.transform.x||0)},U=function(e){return O+b(e)[1]*(e.transform.rCenter||0)+(e.transform.y||0)};(x=x.data(z,y.getPtId)).enter().append("g").classed("slice",!0),g?x.exit().transition().each((function(){var e=r.select(this);e.select("path.surface").transition().attrTween("d",(function(e){var t=function(e){var t,n=y.getPtId(e),a=P[n],i=P[y.getPtId(T)];if(i){var o=e.x1>i.x1?2*Math.PI:0;t=e.rpx1<i.rpx1?{rpx0:0,rpx1:0}:{x0:o,x1:o}}else{var l,s=y.getPtId(e.parent);x.each((function(e){if(y.getPtId(e)===s)return l=e}));var c,u=l.children;u.forEach((function(e,t){if(y.getPtId(e)===n)return c=t}));var d=u.length,h=r.interpolate(l.x0,l.x1);t={rpx0:I,rpx1:I,x0:h(c/d),x1:h((c+1)/d)}}return r.interpolate(a,t)}(e);return function(e){return V(t(e))}})),e.select("g.slicetext").attr("opacity",0)})).remove():x.exit().remove(),x.order();var q=null;if(g&&D){var Z=y.getPtId(D);x.each((function(e){null===q&&y.getPtId(e)===Z&&(q=e.x1)}))}var W=x;function Y(e){var t=e.parent,n=P[y.getPtId(t)],a={};if(n){var i=t.children,o=i.indexOf(e),l=i.length,s=r.interpolate(n.x0,n.x1);a.x0=s(o/l),a.x1=s(o/l)}else a.x0=a.x1=0;return a}g&&(W=W.transition().each("end",(function(){var t=r.select(this);y.setSliceCursor(t,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),W.each((function(a){var s=r.select(this),u=o.ensureSingle(s,"path","surface",(function(e){e.style("pointer-events","all")}));a.rpx0=B(a.y0),a.rpx1=B(a.y1),a.xmid=(a.x0+a.x1)/2,a.pxmid=H(a.rpx1,a.xmid),a.midangle=-(a.xmid-Math.PI/2),a.startangle=-(a.x0-Math.PI/2),a.stopangle=-(a.x1-Math.PI/2),a.halfangle=.5*Math.min(o.angleDelta(a.x0,a.x1)||Math.PI,Math.PI),a.ring=1-a.rpx0/a.rpx1,a.rInscribed=function(e){return 0===e.rpx0&&o.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}(a),g?u.transition().attrTween("d",(function(e){var t=function(e){var t,n=P[y.getPtId(e)],a={x0:e.x0,x1:e.x1,rpx0:e.rpx0,rpx1:e.rpx1};if(n)t=n;else if(D)if(e.parent)if(q){var i=e.x1>q?2*Math.PI:0;t={x0:i,x1:i}}else t={rpx0:I,rpx1:I},o.extendFlat(t,Y(e));else t={rpx0:0,rpx1:0};else t={x0:0,x1:0};return r.interpolate(t,a)}(e);return function(e){return V(t(e))}})):u.attr("d",V),s.call(v,T,e,n,{eventDataKeys:m.eventDataKeys,transitionTime:m.CLICK_TRANSITION_TIME,transitionEasing:m.CLICK_TRANSITION_EASING}).call(y.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),u.call(p,a,_);var x=o.ensureSingle(s,"g","slicetext"),b=o.ensureSingle(x,"text","",(function(e){e.attr("data-notex",1)})),k=o.ensureUniformFontSize(e,y.determineTextFont(_,a,d.font));b.text(t.formatSliceLabel(a,T,_,n,d)).classed("slicetext",!0).attr("text-anchor","middle").call(i.font,k).call(l.convertToTspans,e);var M=i.bBox(b.node());a.transform=f(M,a,w),a.transform.targetX=G(a),a.transform.targetY=U(a);var A=function(e,t){var n=e.transform;return h(n,t),n.fontSize=k.size,c(_.type,n,d),o.getTextTransform(n)};g?b.transition().attrTween("transform",(function(e){var t=function(e){var t,n=P[y.getPtId(e)],a=e.transform;if(n)t=n;else if(t={rpx1:e.rpx1,transform:{textPosAngle:a.textPosAngle,scale:0,rotate:a.rotate,rCenter:a.rCenter,x:a.x,y:a.y}},D)if(e.parent)if(q){var i=e.x1>q?2*Math.PI:0;t.x0=t.x1=i}else o.extendFlat(t,Y(e));else t.x0=t.x1=0;else t.x0=t.x1=0;var l=r.interpolate(t.transform.textPosAngle,e.transform.textPosAngle),s=r.interpolate(t.rpx1,e.rpx1),u=r.interpolate(t.x0,e.x0),h=r.interpolate(t.x1,e.x1),f=r.interpolate(t.transform.scale,a.scale),p=r.interpolate(t.transform.rotate,a.rotate),g=0===a.rCenter?3:0===t.transform.rCenter?1/3:1,v=r.interpolate(t.transform.rCenter,a.rCenter);return function(e){var t=s(e),n=u(e),r=h(e),i=function(e){return v(Math.pow(e,g))}(e),o={pxmid:H(t,(n+r)/2),rpx1:t,transform:{textPosAngle:l(e),rCenter:i,x:a.x,y:a.y}};return c(_.type,a,d),{transform:{targetX:G(o),targetY:U(o),scale:f(e),rotate:p(e),rCenter:i}}}}(e);return function(e){return A(t(e),M)}})):b.attr("transform",A(a,M))}))}function b(e){return t=e.rpx1,n=e.transform.textPosAngle,[t*Math.sin(n),-t*Math.cos(n)];var t,n}t.plot=function(e,t,n,a){var i,o,l=e._fullLayout,s=l._sunburstlayer,c=!n,d=!l.uniformtext.mode&&y.hasTransition(n);(u("sunburst",l),(i=s.selectAll("g.trace.sunburst").data(t,(function(e){return e[0].trace.uid}))).enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),i.order(),d)?(a&&(o=a()),r.transition().duration(n.duration).ease(n.easing).each("end",(function(){o&&o()})).each("interrupt",(function(){o&&o()})).each((function(){s.selectAll("g.trace").each((function(t){x(e,t,this,n)}))}))):(i.each((function(t){x(e,t,this,n)})),l.uniformtext.mode&&g(e,l._sunburstlayer.selectAll(".trace"),"sunburst"));c&&i.exit().remove()},t.formatSliceLabel=function(e,t,n,r,a){var i=n.texttemplate,l=n.textinfo;if(!(i||l&&"none"!==l))return"";var s=a.separators,c=r[0],u=e.data.data,d=c.hierarchy,h=y.isHierarchyRoot(e),f=y.getParent(d,e),p=y.getValue(e);if(!i){var g,v=l.split("+"),m=function(e){return-1!==v.indexOf(e)},x=[];if(m("label")&&u.label&&x.push(u.label),u.hasOwnProperty("v")&&m("value")&&x.push(y.formatValue(u.v,s)),!h){m("current path")&&x.push(y.getPath(e.data));var b=0;m("percent parent")&&b++,m("percent entry")&&b++,m("percent root")&&b++;var w=b>1;if(b){var _,k=function(e){g=y.formatPercent(_,s),w&&(g+=" of "+e),x.push(g)};m("percent parent")&&!h&&(_=p/y.getValue(f),k("parent")),m("percent entry")&&(_=p/y.getValue(t),k("entry")),m("percent root")&&(_=p/y.getValue(d),k("root"))}}return m("text")&&(g=o.castOption(n,u.i,"text"),o.isValidTextValue(g)&&x.push(g)),x.join("<br>")}var T=o.castOption(n,u.i,"texttemplate");if(!T)return"";var M={};u.label&&(M.label=u.label),u.hasOwnProperty("v")&&(M.value=u.v,M.valueLabel=y.formatValue(u.v,s)),M.currentPath=y.getPath(e.data),h||(M.percentParent=p/y.getValue(f),M.percentParentLabel=y.formatPercent(M.percentParent,s),M.parent=y.getPtLabel(f)),M.percentEntry=p/y.getValue(t),M.percentEntryLabel=y.formatPercent(M.percentEntry,s),M.entry=y.getPtLabel(t),M.percentRoot=p/y.getValue(d),M.percentRootLabel=y.formatPercent(M.percentRoot,s),M.root=y.getPtLabel(d),u.hasOwnProperty("color")&&(M.color=u.color);var A=o.castOption(n,u.i,"text");return(o.isValidTextValue(A)||""===A)&&(M.text=A),M.customdata=o.castOption(n,u.i,"customdata"),o.texttemplateString(T,M,a._d3locale,M,n._meta||{})}},"4htA":function(e,t,n){"use strict";t.selectMode=function(e){return"lasso"===e||"select"===e},t.drawMode=function(e){return"drawclosedpath"===e||"drawopenpath"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},t.openMode=function(e){return"drawline"===e||"drawopenpath"===e},t.rectMode=function(e){return"select"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},t.freeMode=function(e){return"lasso"===e||"drawclosedpath"===e||"drawopenpath"===e},t.selectingOrDrawing=function(e){return t.freeMode(e)||t.rectMode(e)}},"56vX":function(e,t,n){"use strict";var r=n("bljh"),a=n("0RW4"),i=n("g9E0"),o=n("wlgE");function l(e,t){var n=t[0].trace,l=t[0].node3.selectAll(".choroplethlocation"),s=n.marker||{},c=s.line||{},u=o.makeColorScaleFuncFromTrace(n);l.each((function(e){r.select(this).attr("fill",u(e.z)).call(a.stroke,e.mlc||c.color).call(i.dashLine,"",e.mlw||c.width||0).style("opacity",s.opacity)})),i.selectedPointStyle(l,n,e)}e.exports={style:function(e,t){t&&l(e,t)},styleOnSelect:function(e,t){var n=t[0].node3,r=t[0].trace;r.selectedpoints?i.selectedPointStyle(n.selectAll(".choroplethlocation"),r,e):l(e,t)}}},"5EAt":function(e,t){e.exports=function(e){var t=[];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&&(t.push([r].concat(i.splice(0,2))),o="l",r="m"==r?"l":"L");;){if(i.length==n[o])return i.unshift(r),t.push(i);if(i.length<n[o])throw new Error("malformed path data");t.push([r].concat(i.splice(0,n[o])))}})),t};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},r=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var a=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},"5IWQ":function(e,t,n){"use strict";var r=n("/CZE"),a=n("7MU3"),i=n("gfA5").defaults,o=n("HByh").handleText,l=n("qc20").handleLabelsAndValues;e.exports=function(e,t,n,s){function c(n,i){return r.coerce(e,t,a,n,i)}var u=c("labels"),d=c("values"),h=l(u,d),f=h.len;if(t._hasLabels=h.hasLabels,t._hasValues=h.hasValues,!t._hasLabels&&t._hasValues&&(c("label0"),c("dlabel")),f){t._length=f,c("marker.line.width")&&c("marker.line.color",s.paper_bgcolor),c("marker.colors"),c("scalegroup");var p,g=c("text"),v=c("texttemplate");if(v||(p=c("textinfo",Array.isArray(g)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),v||p&&"none"!==p){var m=c("textposition");o(e,t,s,c,m,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}i(t,s,c),c("title.text")&&(c("title.position"),r.coerceFont(c,"title.font",s.font)),c("aspectratio"),c("baseratio")}else t.visible=!1}},"5azm":function(e,t,n){"use strict";var r=n("/CZE"),a=n("plED");e.exports=function(e,t,n){var i,o,l=n.name,s=n.inclusionAttr||"visible",c=t[l],u=r.isArrayOrTypedArray(e[l])?e[l]:[],d=t[l]=[],h=a.arrayTemplater(t,l,s);for(i=0;i<u.length;i++){var f=u[i];r.isPlainObject(f)?o=h.newItem(f):(o=h.newItem({}))[s]=!1,o._index=i,!1!==o[s]&&n.handleItemDefaults(f,o,t,n),d.push(o)}var p=h.defaultItems();for(i=0;i<p.length;i++)(o=p[i])._index=d.length,n.handleItemDefaults({},o,t,n,{}),d.push(o);if(r.isArrayOrTypedArray(c)){var g=Math.min(c.length,d.length);for(i=0;i<g;i++)r.relinkPrivateKeys(d[i],c[i])}return d}},"5jll":function(e,t,n){"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}},"6AZA":function(e,t,n){"use strict";e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEAVGYEAR:315576e5,ONEAVGMONTH:26298e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"โ"}},"6BKz":function(e,t,n){"use strict";var r=n("bljh"),a=n("GbLo"),i=n("Zss7"),o=n("/CZE"),l=n("h0EB"),s=n("A3kh"),c=n("yVNY"),u=n("g9E0"),d=n("0RW4"),h=n("Tv4R"),f=n("BkK/"),p=n("Nx4I"),g=n("xMdC"),v=n("f7dW"),m=n("6BNG"),y=n("Q9kw"),x=v.YANGLE,b=Math.PI*x/180,w=1/Math.sin(b),_=Math.cos(b),k=Math.sin(b),T=v.HOVERARROWSIZE,M=v.HOVERTEXTPAD;function A(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa,e.ya||""].join(",")}t.hover=function(e,t,n,i){e=o.getGraphDiv(e),o.throttle(e._fullLayout._uid+v.HOVERID,v.HOVERMINTIME,(function(){!function(e,t,n,i){n||(n="xy");var s=Array.isArray(n)?n:[n],u=e._fullLayout,f=u._plots||[],v=f[n],m=u._has("cartesian");if(v){var y=v.overlays.map((function(e){return e.id}));s=s.concat(y)}for(var x=s.length,b=new Array(x),_=new Array(x),k=!1,T=0;T<x;T++){var M=s[T];if(f[M])k=!0,b[T]=f[M].xaxis,_[T]=f[M].yaxis;else{if(!u[M]||!u[M]._subplot)return void o.warn("Unrecognized subplot: "+M);var S=u[M]._subplot;b[T]=S.xaxis,_[T]=S.yaxis}}var L=t.hovermode||u.hovermode;L&&!k&&(L="closest");if(-1===["x","y","closest","x unified","y unified"].indexOf(L)||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return h.unhoverRaw(e,t);var P,z,N,j,R,F,B,H,V,G,U,q,Z,W=-1===u.hoverdistance?1/0:u.hoverdistance,Y=-1===u.spikedistance?1/0:u.spikedistance,X=[],$=[],J={hLinePoint:null,vLinePoint:null},K=!1;if(Array.isArray(t))for(L="array",N=0;N<t.length;N++)(R=e.calcdata[t[N].curveNumber||0])&&(F=R[0].trace,"skip"!==R[0].trace.hoverinfo&&($.push(R),"h"===F.orientation&&(K=!0)));else{for(j=0;j<e.calcdata.length;j++)R=e.calcdata[j],"skip"!==(F=R[0].trace).hoverinfo&&g.isTraceInSubplots(F,s)&&($.push(R),"h"===F.orientation&&(K=!0));var Q,ee;if(!t.target)Q="xpx"in t?t.xpx:b[0]._length/2,ee="ypx"in t?t.ypx:_[0]._length/2;else{if(!1===l.triggerHandler(e,"plotly_beforehover",t))return;var te=t.target.getBoundingClientRect();if(Q=t.clientX-te.left,ee=t.clientY-te.top,Q<0||Q>b[0]._length||ee<0||ee>_[0]._length)return h.unhoverRaw(e,t)}if(t.pointerX=Q+b[0]._offset,t.pointerY=ee+_[0]._offset,P="xval"in t?g.flat(s,t.xval):g.p2c(b,Q),z="yval"in t?g.flat(s,t.yval):g.p2c(_,ee),!a(P[0])||!a(z[0]))return o.warn("Fx.hover failed",t,e),h.unhoverRaw(e,t)}var ne=1/0;function re(e,n){for(j=0;j<$.length;j++)if((R=$[j])&&R[0]&&R[0].trace&&!0===(F=R[0].trace).visible&&0!==F._length&&-1===["carpet","contourcarpet"].indexOf(F._module.name)){if("splom"===F.type?B=s[H=0]:(B=g.getSubplot(F),H=s.indexOf(B)),V=L,g.isUnifiedHover(V)&&(V=V.charAt(0)),q={cd:R,trace:F,xa:b[H],ya:_[H],maxHoverDistance:W,maxSpikeDistance:Y,index:!1,distance:Math.min(ne,W),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:d.defaultLine,name:F.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},u[B]&&(q.subplot=u[B]._subplot),u._splomScenes&&u._splomScenes[F.uid]&&(q.scene=u._splomScenes[F.uid]),Z=X.length,"array"===V){var r=t[j];"pointNumber"in r?(q.index=r.pointNumber,V="closest"):(V="","xval"in r&&(G=r.xval,V="x"),"yval"in r&&(U=r.yval,V=V?"closest":"y"))}else void 0!==e&&void 0!==n?(G=e,U=n):(G=P[H],U=z[H]);if(0!==W)if(F._module&&F._module.hoverPoints){var i=F._module.hoverPoints(q,G,U,V,u._hoverlayer);if(i)for(var l,c=0;c<i.length;c++)l=i[c],a(l.x0)&&a(l.y0)&&X.push(E(l,L))}else o.log("Unrecognized trace type in hover:",F);if("closest"===L&&X.length>Z&&(X.splice(0,Z),ne=X[0].distance),m&&0!==Y&&0===X.length){q.distance=Y,q.index=!1;var h=F._module.hoverPoints(q,G,U,"closest",u._hoverlayer);if(h&&(h=h.filter((function(e){return e.spikeDistance<=Y}))),h&&h.length){var f,p=h.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)&&(f=ie(v),(!J.vLinePoint||J.vLinePoint.spikeDistance>f.spikeDistance)&&(J.vLinePoint=f))}var y=h.filter((function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap}));if(y.length){var x=y[0];a(x.x0)&&a(x.y0)&&(f=ie(x),(!J.hLinePoint||J.hLinePoint.spikeDistance>f.spikeDistance)&&(J.hLinePoint=f))}}}}}function ae(e,t){for(var n,r=null,a=1/0,i=0;i<e.length;i++)(n=e[i].spikeDistance)<=a&&n<=t&&(r=e[i],a=n);return r}function ie(e){return e?{xa:e.xa,ya:e.ya,x:void 0!==e.xSpike?e.xSpike:(e.x0+e.x1)/2,y:void 0!==e.ySpike?e.ySpike:(e.y0+e.y1)/2,distance:e.distance,spikeDistance:e.spikeDistance,curveNumber:e.trace.index,color:e.color,pointNumber:e.index}:null}re();var oe={fullLayout:u,container:u._hoverlayer,outerContainer:u._paperdiv,event:t},le=e._spikepoints,se={vLinePoint:J.vLinePoint,hLinePoint:J.hLinePoint};if(e._spikepoints=se,m&&0!==Y&&0!==X.length){var ce=ae(X.filter((function(e){return e.ya.showspikes})),Y);J.hLinePoint=ie(ce);var ue=ae(X.filter((function(e){return e.xa.showspikes})),Y);J.vLinePoint=ie(ue)}if(0===X.length){var de=h.unhoverRaw(e,t);return!m||null===J.hLinePoint&&null===J.vLinePoint||D(le)&&O(e,J,oe),de}m&&D(le)&&O(e,J,oe);if(X.sort((function(e,t){return e.distance-t.distance})),g.isXYhover(V)&&0!==X[0].length&&"splom"!==X[0].trace.type){var he=X[0],fe=he.cd[he.index],pe="group"===u.boxmode||"group"===u.violinmode,ge=he.xVal,ve=he.xa;"category"===ve.type&&(ge=ve._categoriesMap[ge]),"date"===ve.type&&(ge=ve.d2c(ge)),fe&&fe.t&&fe.t.posLetter===ve._id&&pe&&(ge+=fe.t.dPos);var me=he.yVal;"category"===(ve=he.ya).type&&(me=ve._categoriesMap[me]),"date"===ve.type&&(me=ve.d2c(me)),fe&&fe.t&&fe.t.posLetter===ve._id&&pe&&(me+=fe.t.dPos),re(ge,me);var ye={};X=X.filter((function(e){var t=A(e);if(!ye[t])return ye[t]=!0,ye[t]}))}var xe=e._hoverdata,be=[];for(N=0;N<X.length;N++){var we=X[N],_e=g.makeEventData(we,we.trace,we.cd);if(!1!==we.hovertemplate){var ke=!1;we.cd[we.index]&&we.cd[we.index].ht&&(ke=we.cd[we.index].ht),we.hovertemplate=ke||we.trace.hovertemplate||!1}we.eventData=[_e],be.push(_e)}e._hoverdata=be;var Te="y"===L&&($.length>1||X.length>1)||"closest"===L&&K&&X.length>1,Me=d.combine(u.plot_bgcolor||d.background,u.paper_bgcolor),Ae={hovermode:L,rotateLabels:Te,bgColor:Me,container:u._hoverlayer,outerContainer:u._paperdiv,commonLabelOpts:u.hoverlabel,hoverdistance:u.hoverdistance},Se=C(X,Ae,e);g.isUnifiedHover(L)||(!function(e,t,n){var r,a,i,o,l,s,c,u=0,d=1,h=e.size(),f=new Array(h),p=0;function g(e){var t=e[0],n=e[e.length-1];if(a=t.pmin-t.pos-t.dp+t.size,i=n.pos+n.dp+n.size-t.pmax,a>.01){for(l=e.length-1;l>=0;l--)e[l].dp+=a;r=!1}if(!(i<.01)){if(a<-.01){for(l=e.length-1;l>=0;l--)e[l].dp-=i;r=!1}if(r){var c=0;for(o=0;o<e.length;o++)(s=e[o]).pos+s.dp+s.size>t.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<e.length&&!(c<=0);o++)if((s=e[o]).pos<t.pmin+1)for(s.del=!0,c--,i=2*s.size,l=e.length-1;l>=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 r=e[t],a="x"===r._id.charAt(0),i=r.range;0===p&&i&&i[0]>i[1]!==a&&(d=-1),f[p++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(a?w:1)/2,pmin:0,pmax:a?n.width:n.height}]})),f.sort((function(e,t){return e[0].posref-t[0].posref||d*(t[0].traceIndex-e[0].traceIndex)}));for(;!r&&u<=h;){for(u++,r=!0,o=0;o<f.length-1;){var v=f[o],m=f[o+1],y=v[v.length-1],x=m[0];if((a=y.pos+y.dp+y.size-x.pos-x.dp+x.size)>.01&&y.pmin===x.pmin&&y.pmax===x.pmax){for(l=m.length-1;l>=0;l--)m[l].dp+=a;for(v.push.apply(v,m),f.splice(o+1,1),c=0,l=v.length-1;l>=0;l--)c+=v[l].dp;for(i=c/v.length,l=v.length-1;l>=0;l--)v[l].dp-=i;r=!1}else o++}f.forEach(g)}for(o=f.length-1;o>=0;o--){var b=f[o];for(l=b.length-1;l>=0;l--){var _=b[l],k=_.datum;k.offset=_.dp,k.del=_.del}}}(Se,Te?"xa":"ya",u),I(Se,Te));if(t.target&&t.target.tagName){var Ce=p.getComponentMethod("annotations","hasClickToShow")(e,be);c(r.select(t.target),Ce?"pointer":"")}if(!t.target||i||!function(e,t,n){if(!n||n.length!==e._hoverdata.length)return!0;for(var r=n.length-1;r>=0;r--){var a=n[r],i=e._hoverdata[r];if(a.curveNumber!==i.curveNumber||String(a.pointNumber)!==String(i.pointNumber)||String(a.pointNumbers)!==String(i.pointNumbers))return!0}return!1}(e,0,xe))return;xe&&e.emit("plotly_unhover",{event:t,points:xe});e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:b,yaxes:_,xvals:P,yvals:z})}(e,t,n,i)}))},t.loneHover=function(e,t){var n=!0;Array.isArray(e)||(n=!1,e=[e]);var a=e.map((function(e){return{color:e.color||d.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,eventData:e.eventData||!1,hovertemplateLabels:e.hovertemplateLabels||!1}})),i=r.select(t.container),o=t.outerContainer?r.select(t.outerContainer):i,l={hovermode:"closest",rotateLabels:!1,bgColor:t.bgColor||d.background,container:i,outerContainer:o},s=C(a,l,t.gd),c=0,u=0;return s.sort((function(e,t){return e.y0-t.y0})).each((function(e,n){var r=e.y0-e.by/2;e.offset=r-5<c?c-r+5:0,c=r+e.by+e.offset,n===t.anchorIndex&&(u=e.offset)})).each((function(e){e.offset-=u})),I(s,l.rotateLabels),n?s:s.node()};var S=/<extra>([\s\S]*)<\/extra>/;function C(e,t,n){var a=n._fullLayout,i=t.hovermode,l=t.rotateLabels,c=t.bgColor,h=t.container,f=t.outerContainer,p=t.commonLabelOpts||{},b=t.fontFamily||v.HOVERFONT,w=t.fontSize||v.HOVERFONTSIZE,_=e[0],k=_.xa,S=_.ya,C="y"===i.charAt(0)?"yLabel":"xLabel",I=_[C],E=(String(I)||"").split(" ")[0],O=f.node().getBoundingClientRect(),D=O.top,P=O.width,z=O.height,N=void 0!==I&&_.distance<=t.hoverdistance&&("x"===i||"y"===i);if(N){var j,R,F=!0;for(j=0;j<e.length;j++)if(F&&void 0===e[j].zLabel&&(F=!1),R=e[j].hoverinfo||e[j].trace.hoverinfo){var B=Array.isArray(R)?R:R.split("+");if(-1===B.indexOf("all")&&-1===B.indexOf(i)){N=!1;break}}F&&(N=!1)}var H=h.selectAll("g.axistext").data(N?[0]:[]);function V(e){return e.filter((function(e){return void 0!==e.zLabelVal||(e[C]||"").split(" ")[0]===E}))}if(H.enter().append("g").classed("axistext",!0),H.exit().remove(),H.each((function(){var t=r.select(this),l=o.ensureSingle(t,"path","",(function(e){e.style({"stroke-width":"1px"})})),c=o.ensureSingle(t,"text","",(function(e){e.attr("data-notex",1)})),h=p.bgcolor||d.defaultLine,f=p.bordercolor||d.contrast(h),g=d.contrast(h),v={family:p.font.family||b,size:p.font.size||w,color:p.font.color||g};l.style({fill:h,stroke:f}),c.text(I).call(u.font,v).call(s.positionText,0,0).call(s.convertToTspans,n),t.attr("transform","");var m,y,x=c.node().getBoundingClientRect();if("x"===i){var A="top"===k.side?"-":"";c.attr("text-anchor","middle").call(s.positionText,0,"top"===k.side?D-x.bottom-T-M:D-x.top+T+M),m=k._offset+(_.x0+_.x1)/2,y=S._offset+("top"===k.side?0:S._length);var C=x.width/2+M;m<C?(m=C,l.attr("d","M-"+(C-T)+",0L-"+(C-2*T)+","+A+T+"H"+(M+x.width/2)+"v"+A+(2*M+x.height)+"H-"+C+"V"+A+T+"Z")):m>a.width-C?(m=a.width-C,l.attr("d","M"+(C-T)+",0L"+C+","+A+T+"v"+A+(2*M+x.height)+"H-"+C+"V"+A+T+"H"+(C-2*T)+"Z")):l.attr("d","M0,0L"+T+","+A+T+"H"+(M+x.width/2)+"v"+A+(2*M+x.height)+"H-"+(M+x.width/2)+"V"+A+T+"H-"+T+"Z")}else{var L,E,O;"right"===S.side?(L="start",E=1,O="",m=k._offset+k._length):(L="end",E=-1,O="-",m=k._offset),y=S._offset+(_.y0+_.y1)/2,c.attr("text-anchor",L),l.attr("d","M0,0L"+O+T+","+T+"V"+(M+x.height/2)+"h"+O+(2*M+x.width)+"V-"+(M+x.height/2)+"H"+O+T+"V-"+T+"Z");var P,z=x.height/2,N=D-x.top-z,j="clip"+a._uid+"commonlabel"+S._id;if(m<x.width+2*M+T){P="M-"+(T+M)+"-"+z+"h-"+(x.width-M)+"V"+z+"h"+(x.width-M)+"Z";var R=x.width-m+M;s.positionText(c,R,N),"end"===L&&c.selectAll("tspan").each((function(){var e=r.select(this),t=u.tester.append("text").text(e.text()).call(u.font,v),n=t.node().getBoundingClientRect();Math.round(n.width)<Math.round(x.width)&&e.attr("x",R-n.width),t.remove()}))}else s.positionText(c,E*(M+T),N),P=null;var F=a._topclips.selectAll("#"+j).data(P?[0]:[]);F.enter().append("clipPath").attr("id",j).append("path"),F.exit().remove(),F.select("path").attr("d",P),u.setClipUrl(c,P?j:null,n)}t.attr("transform","translate("+m+","+y+")"),e=V(e)})),g.isUnifiedHover(i)){if(h.selectAll("g.hovertext").remove(),void 0!==I&&_.distance<=t.hoverdistance&&(e=V(e)),0===e.length)return;var G={showlegend:!0,legend:{title:{text:I,font:a.hoverlabel.font},font:a.hoverlabel.font,bgcolor:a.hoverlabel.bgcolor,bordercolor:a.hoverlabel.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},U={};m(G,U,n._fullData);var q=U.legend;q.entries=[];for(var Z=0;Z<e.length;Z++){var W=L(e[Z],!0,i,a,I),Y=W[0],X=W[1],$=e[Z];$.name=X,$.text=""!==X?X+" : "+Y:Y;var J=$.cd[$.index];J&&(J.mc&&($.mc=J.mc),J.mcc&&($.mc=J.mcc),J.mlc&&($.mlc=J.mlc),J.mlcc&&($.mlc=J.mlcc),J.mlw&&($.mlw=J.mlw),J.mrc&&($.mrc=J.mrc),J.dir&&($.dir=J.dir)),$._distinct=!0,q.entries.push([$])}q.entries.sort((function(e,t){return e[0].trace.index-t[0].trace.index})),q.layer=h,y(n,q);var K=o.mean(e.map((function(e){return(e.y0+e.y1)/2}))),Q=o.mean(e.map((function(e){return(e.x0+e.x1)/2}))),ee=h.select("g.legend"),te=ee.node().getBoundingClientRect();Q+=k._offset,K+=S._offset-te.height/2;var ne=te.width+2*M;!(Q+ne<=P)&&Q-ne>=0?Q-=ne:Q+=2*M;var re=te.height+2*M,ae=K+re>=z;return re<=z&&(K<=D?K=S._offset+2*M:ae&&(K=z-re)),ee.attr("transform","translate("+Q+","+K+")"),ee}var ie=h.selectAll("g.hovertext").data(e,(function(e){return A(e)}));return ie.enter().append("g").classed("hovertext",!0).each((function(){var e=r.select(this);e.append("rect").call(d.fill,d.addOpacity(c,.8)),e.append("text").classed("name",!0),e.append("path").style("stroke-width","1px"),e.append("text").classed("nums",!0).call(u.font,b,w)})),ie.exit().remove(),ie.each((function(e){var t=r.select(this).attr("transform",""),o=e.bgcolor||e.color,h=d.combine(d.opacity(o)?o:d.defaultLine,c),f=d.combine(d.opacity(e.color)?e.color:d.defaultLine,c),p=e.borderColor||d.contrast(h),g=L(e,N,i,a,I,t),v=g[0],m=g[1],y=t.select("text.nums").call(u.font,e.fontFamily||b,e.fontSize||w,e.fontColor||p).text(v).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,n),_=t.select("text.name"),k=0,A=0;if(m&&m!==v){_.call(u.font,e.fontFamily||b,e.fontSize||w,f).text(m).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,n);var S=_.node().getBoundingClientRect();k=S.width+2*M,A=S.height+2*M}else _.remove(),t.select("rect").remove();t.select("path").style({fill:h,stroke:p});var C,E,O=y.node().getBoundingClientRect(),j=e.xa._offset+(e.x0+e.x1)/2,R=e.ya._offset+(e.y0+e.y1)/2,F=Math.abs(e.x1-e.x0),B=Math.abs(e.y1-e.y0),H=O.width+T+M+k;if(e.ty0=D-O.top,e.bx=O.width+2*M,e.by=Math.max(O.height+2*M,A),e.anchor="start",e.txwidth=O.width,e.tx2width=k,e.offset=0,l)e.pos=j,C=R+B/2+H<=z,E=R-B/2-H>=0,"top"!==e.idealAlign&&C||!E?C?(R+=B/2,e.anchor="start"):e.anchor="middle":(R-=B/2,e.anchor="end");else if(e.pos=R,C=j+F/2+H<=P,E=j-F/2-H>=0,"left"!==e.idealAlign&&C||!E)if(C)j+=F/2,e.anchor="start";else{e.anchor="middle";var V=H/2,G=j+V-P,U=j-V;G>0&&(j-=G),U<0&&(j+=-U)}else j-=F/2,e.anchor="end";y.attr("text-anchor",e.anchor),k&&_.attr("text-anchor",e.anchor),t.attr("transform","translate("+j+","+R+")"+(l?"rotate("+x+")":""))})),ie}function L(e,t,n,r,a,i){var l="",s="";void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=o.templateString(e.name,e.trace._meta)),l=P(e.name,e.nameLength)),void 0!==e.zLabel?(void 0!==e.xLabel&&(s+="x: "+e.xLabel+"<br>"),void 0!==e.yLabel&&(s+="y: "+e.yLabel+"<br>"),"choropleth"!==e.trace.type&&"choroplethmapbox"!==e.trace.type&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[n.charAt(0)+"Label"]===a?s=e[("x"===n.charAt(0)?"y":"x")+"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?"<br>":"")+e.text),void 0!==e.extraText&&(s+=(s?"<br>":"")+e.extraText),i&&""===s&&!e.hovertemplate&&(""===l&&i.remove(),s=l);var c=r._d3locale,u=e.hovertemplate||!1,d=e.hovertemplateLabels||e,h=e.eventData[0]||{};return u&&(s=(s=o.hovertemplateString(u,d,c,h,e.trace._meta)).replace(S,(function(t,n){return l=P(n,e.nameLength),""}))),[s,l]}function I(e,t){e.each((function(e){var n=r.select(this);if(e.del)return n.remove();var a=n.select("text.nums"),i=e.anchor,o="end"===i?-1:1,l={start:1,end:-1,middle:0}[i],c=l*(T+M),d=c+l*(e.txwidth+M),h=0,f=e.offset;"middle"===i&&(c-=e.tx2width/2,d+=e.txwidth/2+M),t&&(f*=-k,h=e.offset*_),n.select("path").attr("d","middle"===i?"M-"+(e.bx/2+e.tx2width/2)+","+(f-e.by/2)+"h"+e.bx+"v"+e.by+"h-"+e.bx+"Z":"M0,0L"+(o*T+h)+","+(T+f)+"v"+(e.by/2-T)+"h"+o*e.bx+"v-"+e.by+"H"+(o*T+h)+"V"+(f-T)+"Z");var p=c+h,g=f+e.ty0-e.by/2+M,v=e.textAlign||"auto";"auto"!==v&&("left"===v&&"start"!==i?(a.attr("text-anchor","start"),p="middle"===i?-e.bx/2-e.tx2width/2+M:-e.bx-M):"right"===v&&"end"!==i&&(a.attr("text-anchor","end"),p="middle"===i?e.bx/2-e.tx2width/2-M:e.bx+M)),a.call(s.positionText,p,g),e.tx2width&&(n.select("text.name").call(s.positionText,d+l*M+h,f+e.ty0-e.by/2+M),n.select("rect").call(u.setRect,d+(l-1)*e.tx2width/2+h,f-e.by/2-1,e.tx2width,e.by+2))}))}function E(e,t){var n=e.index,r=e.trace||{},i=e.cd[0],l=e.cd[n]||{};function s(e){return e||a(e)&&0===e}var c=Array.isArray(n)?function(e,t){var a=o.castOption(i,n,e);return s(a)?a:o.extractOption({},r,"",t)}:function(e,t){return o.extractOption(l,r,e,t)};function u(t,n,r){var a=c(n,r);s(a)&&(e[t]=a)}if(u("hoverinfo","hi","hoverinfo"),u("bgcolor","hbg","hoverlabel.bgcolor"),u("borderColor","hbc","hoverlabel.bordercolor"),u("fontFamily","htf","hoverlabel.font.family"),u("fontSize","hts","hoverlabel.font.size"),u("fontColor","htc","hoverlabel.font.color"),u("nameLength","hnl","hoverlabel.namelength"),u("textAlign","hta","hoverlabel.align"),e.posref="y"===t||"closest"===t&&"h"===r.orientation?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=o.constrain(e.x0,0,e.xa._length),e.x1=o.constrain(e.x1,0,e.xa._length),e.y0=o.constrain(e.y0,0,e.ya._length),e.y1=o.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal&&(e.xLabel="xLabel"in e?e.xLabel:f.hoverLabelText(e.xa,e.xLabelVal),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:f.hoverLabelText(e.ya,e.yLabelVal),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 d=f.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+d+" / -"+f.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ยฑ "+d,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var h=f.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+h+" / -"+f.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ยฑ "+h,"y"===t&&(e.distance+=1)}var p=e.hoverinfo||e.trace.hoverinfo;return p&&"all"!==p&&(-1===(p=Array.isArray(p)?p:p.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===p.indexOf("y")&&(e.yLabel=void 0),-1===p.indexOf("z")&&(e.zLabel=void 0),-1===p.indexOf("text")&&(e.text=void 0),-1===p.indexOf("name")&&(e.name=void 0)),e}function O(e,t,n){var r,a,o=n.container,l=n.fullLayout,s=l._size,c=n.event,h=!!t.hLinePoint,p=!!t.vLinePoint;if(o.selectAll(".spikeline").remove(),p||h){var g=d.combine(l.plot_bgcolor,l.paper_bgcolor);if(h){var v,m,y=t.hLinePoint;r=y&&y.xa,"cursor"===(a=y&&y.ya).spikesnap?(v=c.pointerX,m=c.pointerY):(v=r._offset+y.x,m=a._offset+y.y);var x,b,w=i.readability(y.color,g)<1.5?d.contrast(g):y.color,_=a.spikemode,k=a.spikethickness,T=a.spikecolor||w,M=f.getPxPosition(e,a);if(-1!==_.indexOf("toaxis")||-1!==_.indexOf("across")){if(-1!==_.indexOf("toaxis")&&(x=M,b=v),-1!==_.indexOf("across")){var A=a._counterDomainMin,S=a._counterDomainMax;"free"===a.anchor&&(A=Math.min(A,a.position),S=Math.max(S,a.position)),x=s.l+A*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(a.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:g}).classed("spikeline",!0).classed("crisp",!0)}-1!==_.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:M+("right"!==a.side?k:-k),cy:m,r:k,fill:T}).classed("spikeline",!0)}if(p){var C,L,I=t.vLinePoint;r=I&&I.xa,a=I&&I.ya,"cursor"===r.spikesnap?(C=c.pointerX,L=c.pointerY):(C=r._offset+I.x,L=a._offset+I.y);var E,O,D=i.readability(I.color,g)<1.5?d.contrast(g):I.color,P=r.spikemode,z=r.spikethickness,N=r.spikecolor||D,j=f.getPxPosition(e,r);if(-1!==P.indexOf("toaxis")||-1!==P.indexOf("across")){if(-1!==P.indexOf("toaxis")&&(E=j,O=L),-1!==P.indexOf("across")){var R=r._counterDomainMin,F=r._counterDomainMax;"free"===r.anchor&&(R=Math.min(R,r.position),F=Math.max(F,r.position)),E=s.t+(1-F)*s.h,O=s.t+(1-R)*s.h}o.insert("line",":first-child").attr({x1:C,x2:C,y1:E,y2:O,"stroke-width":z,stroke:N,"stroke-dasharray":u.dashStyle(r.spikedash,z)}).classed("spikeline",!0).classed("crisp",!0),o.insert("line",":first-child").attr({x1:C,x2:C,y1:E,y2:O,"stroke-width":z+2,stroke:g}).classed("spikeline",!0).classed("crisp",!0)}-1!==P.indexOf("marker")&&o.insert("circle",":first-child").attr({cx:C,cy:j-("top"!==r.side?z:-z),r:z,fill:N}).classed("spikeline",!0)}}}function D(e,t){return!t||(t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint)}function P(e,t){return s.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}},"6BNG":function(e,t,n){"use strict";var r=n("Nx4I"),a=n("/CZE"),i=n("plED"),o=n("6Ccv"),l=n("poX/"),s=n("efHY");e.exports=function(e,t,n){for(var c=e.legend||{},u=0,d=!1,h="normal",f=0;f<n.length;f++){var p=n[f];p.visible&&((p.showlegend||p._dfltShowLegend&&!(p._module&&p._module.attributes&&p._module.attributes.showlegend&&!1===p._module.attributes.showlegend.dflt))&&(u++,p.showlegend&&(d=!0,(r.traceIs(p,"pie-like")||!0===p._input.showlegend)&&u++)),(r.traceIs(p,"bar")&&"stack"===t.barmode||-1!==["tonextx","tonexty"].indexOf(p.fill))&&(h=s.isGrouped({traceorder:h})?"grouped+reversed":"reversed"),void 0!==p.legendgroup&&""!==p.legendgroup&&(h=s.isReversed({traceorder:h})?"reversed+grouped":"grouped"))}var g=a.coerce(e,t,l,"showlegend",d&&u>1);if(!1!==g||c.uirevision){var v=i.newContainer(t,"legend");if(w("uirevision",t.uirevision),!1!==g){w("bgcolor",t.paper_bgcolor),w("bordercolor"),w("borderwidth"),a.coerceFont(w,"font",t.font);var m,y,x,b=w("orientation");"h"===b?(m=0,r.getComponentMethod("rangeslider","isVisible")(e.xaxis)?(y=1.1,x="bottom"):(y=-.1,x="top")):(m=1.02,y=1,x="auto"),w("traceorder",h),s.isGrouped(t.legend)&&w("tracegroupgap"),w("itemsizing"),w("itemclick"),w("itemdoubleclick"),w("x",m),w("xanchor"),w("y",y),w("yanchor",x),w("valign"),a.noneOrAll(c,v,["x","y"]),w("title.text")&&(w("title.side","h"===b?"left":"top"),a.coerceFont(w,"title.font",t.font))}}function w(e,t){return a.coerce(c,v,o,e,t)}}},"6Ccv":function(e,t,n){"use strict";var r=n("mEVB"),a=n("37PH");e.exports={bgcolor:{valType:"color",role:"style",editType:"legend",description:["Sets the legend background color.","Defaults to `layout.paper_bgcolor`."].join(" ")},bordercolor:{valType:"color",dflt:a.defaultLine,role:"style",editType:"legend",description:"Sets the color of the border enclosing the legend."},borderwidth:{valType:"number",min:0,dflt:0,role:"style",editType:"legend",description:"Sets the width (in px) of the border enclosing the legend."},font:r({editType:"legend",description:"Sets the font used to text the legend items."}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",role:"info",editType:"legend",description:"Sets the orientation of the legend."},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],role:"style",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,role:"style",editType:"legend",description:["Sets the amount of vertical space (in px) between legend groups."].join(" ")},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",role:"style",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(" ")},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",role:"info",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* disable legend item click interactions."].join(" ")},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",role:"info",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* disable legend item double-click interactions."].join(" ")},x:{valType:"number",min:-2,max:3,role:"style",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",role:"info",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,role:"style",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"],role:"info",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",role:"info",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",role:"style",editType:"legend",description:["Sets the vertical alignment of the symbols with respect to their associated text."].join(" ")},title:{text:{valType:"string",dflt:"",role:"info",editType:"legend",description:["Sets the title of the legend."].join(" ")},font:r({editType:"legend",description:["Sets this legend's title font."].join(" ")}),side:{valType:"enumerated",values:["top","left","top left"],role:"style",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"}},"6M+F":function(e,t,n){"use strict";var r=n("/CZE"),a=n("QkhT");e.exports=function(e,t,n){var i=document.createElement("a"),o="download"in i;return new Promise((function(l,s){var c,u;if(r.isIE9orBelow()&&s(new Error("IE < 10 unsupported")),r.isSafari()){var d="svg"===n?",":";base64,";return a.octetStream(d+encodeURIComponent(e)),l(t)}return r.isIE()?(c=a.createBlob(e,"svg"),window.navigator.msSaveBlob(c,t),c=null,l(t)):o?(c=a.createBlob(e,n),u=a.createObjectURL(c),i.href=u,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),a.revokeObjectURL(u),c=null,l(t)):void s(new Error("download error"))}))}},"6Ue+":function(e,t,n){"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}}},"6bQy":function(e,t,n){"use strict";e.exports=function(e){for(var t,n=e.length,r=0;r<n;r++)if(((t=e.charCodeAt(r))<9||t>13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}},"6feh":function(e,t,n){"use strict";var r=n("/CZE");e.exports=function(e,t,n,a,i){i=i||{},a("textposition"),r.coerceFont(a,"textfont",n.font),i.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}},"6weB":function(e,t,n){"use strict";e.exports=function(e,t,n){"spline"===n("line.shape")&&n("line.smoothing")}},7252:function(e,t,n){"use strict";e.exports=function(e,t){var n,r,a,i,o,l=e.cd,s=e.xaxis,c=e.yaxis,u=[];if(!1===t)for(n=0;n<l.length;n++)l[n].selected=0;else for(n=0;n<l.length;n++)(a=(r=l[n]).ct)&&(i=s.c2p(a),o=c.c2p(a),t.contains([i,o],null,n,e)?(u.push({pointNumber:n,lon:a[0],lat:a[1]}),r.selected=1):r.selected=0);return u}},"7CC7":function(e,t,n){"use strict";t.init2dArray=function(e,t){for(var n=new Array(e),r=0;r<e;r++)n[r]=new Array(t);return n},t.transposeRagged=function(e){var t,n,r=0,a=e.length;for(t=0;t<a;t++)r=Math.max(r,e[t].length);var i=new Array(r);for(t=0;t<r;t++)for(i[t]=new Array(a),n=0;n<a;n++)i[t][n]=e[n][t];return i},t.dot=function(e,n){if(!e.length||!n.length||e.length!==n.length)return null;var r,a,i=e.length;if(e[0].length)for(r=new Array(i),a=0;a<i;a++)r[a]=t.dot(e[a],n);else if(n[0].length){var o=t.transposeRagged(n);for(r=new Array(o.length),a=0;a<o.length;a++)r[a]=t.dot(e,o[a])}else for(r=0,a=0;a<i;a++)r+=e[a]*n[a];return r},t.translationMatrix=function(e,t){return[[1,0,e],[0,1,t],[0,0,1]]},t.rotationMatrix=function(e){var t=e*Math.PI/180;return[[Math.cos(t),-Math.sin(t),0],[Math.sin(t),Math.cos(t),0],[0,0,1]]},t.rotationXYMatrix=function(e,n,r){return t.dot(t.dot(t.translationMatrix(n,r),t.rotationMatrix(e)),t.translationMatrix(-n,-r))},t.apply2DTransform=function(e){return function(){var n=arguments;3===n.length&&(n=n[0]);var r=1===arguments.length?n[0]:[n[0],n[1]];return t.dot(e,[r[0],r[1],1]).slice(0,2)}},t.apply2DTransform2=function(e){var n=t.apply2DTransform(e);return function(e){return n(e.slice(0,2)).concat(n(e.slice(2,4)))}}},"7MU3":function(e,t,n){"use strict";var r=n("kZ5o"),a=n("qHYo"),i=n("gfA5").attributes,o=n("lNV6").hovertemplateAttrs,l=n("lNV6").texttemplateAttrs,s=n("kJIm").extendFlat;e.exports={labels:r.labels,label0:r.label0,dlabel:r.dlabel,values:r.values,marker:{colors:r.marker.colors,line:{color:s({},r.marker.line.color,{dflt:null,description:["Sets the color of the line enclosing each sector.","Defaults to the `paper_bgcolor` value."].join(" ")}),width:s({},r.marker.line.width,{dflt:1}),editType:"calc"},editType:"calc"},text:r.text,hovertext:r.hovertext,scalegroup:s({},r.scalegroup,{description:["If there are multiple funnelareas 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:s({},r.textinfo,{flags:["label","text","value","percent"]}),texttemplate:l({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:s({},a.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:o({},{keys:["label","color","value","text","percent"]}),textposition:s({},r.textposition,{values:["inside","none"],dflt:"inside"}),textfont:r.textfont,insidetextfont:r.insidetextfont,title:{text:r.title.text,font:r.title.font,position:s({},r.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:i({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",role:"info",min:0,dflt:1,editType:"plot",description:["Sets the ratio between height and width"].join(" ")},baseratio:{valType:"number",role:"info",min:0,max:1,dflt:.333,editType:"plot",description:["Sets the ratio between bottom length and maximum top length."].join(" ")}}},"7RaA":function(e,t,n){"use strict";var r=n("Nx4I"),a=n("BkK/"),i=n("/CZE"),o=n("N+MO");e.exports=function(e,t,n){function l(n,r){return i.coerce(e,t,o,n,r)}for(var s=!1,c=!1,u=!1,d={},h=l("barmode"),f=0;f<n.length;f++){var p=n[f];if(r.traceIs(p,"bar")&&p.visible){if(s=!0,"group"===h){var g=p.xaxis+p.yaxis;d[g]&&(u=!0),d[g]=!0}if(p.visible&&"histogram"===p.type)"category"!==a.getFromId({_fullLayout:t},p["v"===p.orientation?"xaxis":"yaxis"]).type&&(c=!0)}}s?("overlay"!==h&&l("barnorm"),l("bargap",c&&!u?0:.2),l("bargroupgap")):delete t.barmode}},"7ncg":function(e,t,n){"use strict";var r=n("bljh"),a=n("Nx4I"),i=n("/CZE"),o=n("g9E0"),l=n("0RW4"),s=n("IVx0").extractOpts,c=n("3oHU"),u=n("pwgW"),d=n("WeBh").castOption;function h(e,t){return(t?"radial":"horizontal")+(e?"":"reversed")}e.exports=function(e,t,n){var f=t._fullLayout;n||(n=f.legend);var p="constant"===n.itemsizing,g=function(e,t,n,r){var a;if(e+1)a=e;else{if(!(t&&t.width>0))return 0;a=t.width}return p?r:Math.min(a,n)};function v(e,t,n){var i=e[0].trace,o=i.marker||{},s=o.line||{},c=n?i.visible&&i.type===n:a.traceIs(i,"bar"),u=r.select(t).select("g.legendpoints").selectAll("path.legend"+n).data(c?[e]:[]);u.enter().append("path").classed("legend"+n,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),u.exit().remove(),u.each((function(e){var t=r.select(this),n=e[0],a=g(n.mlw,o.line,5,2);t.style("stroke-width",a+"px").call(l.fill,n.mc||o.color),a&&l.stroke(t,n.mlc||s.color)}))}function m(e,t,n){var o=e[0],l=o.trace,s=n?l.visible&&l.type===n:a.traceIs(l,n),c=r.select(t).select("g.legendpoints").selectAll("path.legend"+n).data(s?[e]:[]);if(c.enter().append("path").classed("legend"+n,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),c.exit().remove(),c.size()){var h=(l.marker||{}).line,f=g(d(h.width,o.pts),h,5,2),p=i.minExtend(l,{marker:{line:{width:f}}});p.marker.line.color=h.color;var v=i.minExtend(o,{trace:p});u(c,v,p)}}e.each((function(e){var t=r.select(this),a=i.ensureSingle(t,"g","layers");a.style("opacity",e[0].trace.opacity);var o=n.valign,l=e[0].lineHeight,s=e[0].height;if("middle"!==o&&l&&s){var c={top:1,bottom:-1}[o]*(.5*(l-s+3));a.attr("transform","translate(0,"+c+")")}else a.attr("transform",null);a.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),a.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var u=a.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 n,a=e[0].trace,c=[];if(a.visible)switch(a.type){case"histogram2d":case"heatmap":c=[["M-15,-2V4H15V-2Z"]],n=!0;break;case"choropleth":case"choroplethmapbox":c=[["M-6,-6V6H6V-6Z"]],n=!0;break;case"densitymapbox":c=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],n="radial";break;case"cone":c=[["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"]],n=!1;break;case"streamtube":c=[["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"]],n=!1;break;case"surface":c=[["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"]],n=!0;break;case"mesh3d":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],n=!1;break;case"volume":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],n=!0;break;case"isosurface":c=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],n=!1}var u=r.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(c);u.enter().append("path").classed("legend3dandfriends",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),u.exit().remove(),u.each((function(e,c){var u,d=r.select(this),f=s(a),p=f.colorscale,g=f.reversescale;if(p){if(!n){var v=p.length;u=0===c?p[g?v-1:0][1]:1===c?p[g?0:v-1][1]:p[Math.floor((v-1)/2)][1]}}else{var m=a.vertexcolor||a.facecolor||a.color;u=i.isArrayOrTypedArray(m)?m[c]||m[0]:m}d.attr("d",e[0]),u?d.call(l.fill,u):d.call((function(e){if(e.size()){var r="legendfill-"+a.uid;o.gradient(e,t,r,h(g,"radial"===n),p,"fill")}}))}))})).each((function(e){var t=e[0].trace,n="waterfall"===t.type;if(e[0]._distinct&&n){var a=e[0].trace[e[0].dir].marker;return e[0].mc=a.color,e[0].mlw=a.line.width,e[0].mlc=a.line.color,v(e,this,"waterfall")}var i=[];t.visible&&n&&(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=r.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(i);o.enter().append("path").classed("legendwaterfall",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),o.exit().remove(),o.each((function(e){var n=r.select(this),a=t[e[0]].marker,i=g(void 0,a.line,5,2);n.attr("d",e[1]).style("stroke-width",i+"px").call(l.fill,a.color),i&&n.call(l.stroke,a.line.color)}))})).each((function(e){v(e,this,"funnel")})).each((function(e){v(e,this)})).each((function(e){var n=e[0].trace,s=r.select(this).select("g.legendpoints").selectAll("path.legendbox").data(n.visible&&a.traceIs(n,"box-violin")?[e]:[]);s.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),s.exit().remove(),s.each((function(){var e=r.select(this);if("all"!==n.boxpoints&&"all"!==n.points||0!==l.opacity(n.fillcolor)||0!==l.opacity((n.line||{}).color)){var a=g(void 0,n.line,5,2);e.style("stroke-width",a+"px").call(l.fill,n.fillcolor),a&&l.stroke(e,n.line.color)}else{var c=i.minExtend(n,{marker:{size:p?12:i.constrain(n.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});s.call(o.pointStyle,c,t)}}))})).each((function(e){m(e,this,"funnelarea")})).each((function(e){m(e,this,"pie")})).each((function(e){var n,a,l=e[0],u=l.trace,d=u.visible&&u.fill&&"none"!==u.fill,f=c.hasLines(u),p=u.contours,v=!1,m=!1,y=s(u),x=y.colorscale,b=y.reversescale;if(p){var w=p.coloring;"lines"===w?v=!0:f="none"===w||"heatmap"===w||p.showlines,"constraint"===p.type?d="="!==p._operation:"fill"!==w&&"heatmap"!==w||(m=!0)}var _=c.hasMarkers(u)||c.hasText(u),k=d||m,T=f||v,M=_||!k?"M5,0":T?"M5,-2":"M5,-3",A=r.select(this),S=A.select(".legendfill").selectAll("path").data(d||m?[e]:[]);if(S.enter().append("path").classed("js-fill",!0),S.exit().remove(),S.attr("d",M+"h30v6h-30z").call(d?o.fillGroupStyle:function(e){if(e.size()){var n="legendfill-"+u.uid;o.gradient(e,t,n,h(b),x,"fill")}}),f||v){var C=g(void 0,u.line,10,5);a=i.minExtend(u,{line:{width:C}}),n=[i.minExtend(l,{trace:a})]}var L=A.select(".legendlines").selectAll("path").data(f||v?[n]:[]);L.enter().append("path").classed("js-line",!0),L.exit().remove(),L.attr("d",M+(v?"l30,0.0001":"h30")).call(f?o.lineGroupStyle:function(e){if(e.size()){var n="legendline-"+u.uid;o.lineGroupStyle(e),o.gradient(e,t,n,h(b),x,"stroke")}})})).each((function(e){var n,a,l=e[0],s=l.trace,u=c.hasMarkers(s),d=c.hasText(s),h=c.hasLines(s);function f(e,t,n,r){var a=i.nestedProperty(s,e).get(),o=i.isArrayOrTypedArray(a)&&t?t(a):a;if(p&&o&&void 0!==r&&(o=r),n){if(o<n[0])return n[0];if(o>n[1])return n[1]}return o}function g(e){return l._distinct&&l.index&&e[l.index]?e[l.index]:e[0]}if(u||d||h){var v={},m={};if(u){v.mc=f("marker.color",g),v.mx=f("marker.symbol",g),v.mo=f("marker.opacity",i.mean,[.2,1]),v.mlc=f("marker.line.color",g),v.mlw=f("marker.line.width",i.mean,[0,5],2),m.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var y=f("marker.size",i.mean,[2,16],12);v.ms=y,m.marker.size=y}h&&(m.line={width:f("line.width",g,[0,10],5)}),d&&(v.tx="Aa",v.tp=f("textposition",g),v.ts=10,v.tc=f("textfont.color",g),v.tf=f("textfont.family",g)),n=[i.minExtend(l,v)],(a=i.minExtend(s,m)).selectedpoints=null,a.texttemplate=null}var x=r.select(this).select("g.legendpoints"),b=x.selectAll("path.scatterpts").data(u?n:[]);b.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform","translate(20,0)"),b.exit().remove(),b.call(o.pointStyle,a,t),u&&(n[0].mrc=3);var w=x.selectAll("g.pointtext").data(d?n:[]);w.enter().append("g").classed("pointtext",!0).append("text").attr("transform","translate(20,0)"),w.exit().remove(),w.selectAll("text").call(o.textPointStyle,a,t)})).each((function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(t.visible&&"candlestick"===t.type?[e,e]:[]);n.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","translate(20,0)").style("stroke-miterlimit",1),n.exit().remove(),n.each((function(e,n){var a=r.select(this),i=t[n?"increasing":"decreasing"],o=g(void 0,i.line,5,2);a.style("stroke-width",o+"px").call(l.fill,i.fillcolor),o&&l.stroke(a,i.line.color)}))})).each((function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(t.visible&&"ohlc"===t.type?[e,e]:[]);n.enter().append("path").classed("legendohlc",!0).attr("d",(function(e,t){return t?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform","translate(20,0)").style("stroke-miterlimit",1),n.exit().remove(),n.each((function(e,n){var a=r.select(this),i=t[n?"increasing":"decreasing"],s=g(void 0,i.line,5,2);a.style("fill","none").call(o.dashLine,i.line.dash,s),s&&l.stroke(a,i.line.color)}))}))}},"7pK6":function(e,t,n){"use strict";var r=n("fiWp").EventEmitter,a=n("Nx4I"),i=n("/CZE"),o=n("QkhT"),l=n("0Y4q"),s=n("ywRt"),c=n("Tr0U");e.exports=function(e,t){var n=new r,u=l(e,{format:"png"}),d=u.gd;d.style.position="absolute",d.style.left="-5000px",document.body.appendChild(d);var h=o.getRedrawFunc(d);return a.call("plot",d,u.data,u.layout,u.config).then(h).then((function(){var e=o.getDelay(d._fullLayout);setTimeout((function(){var e=s(d),r=document.createElement("canvas");r.id=i.randstr(),(n=c({format:t.format,width:d._fullLayout.width,height:d._fullLayout.height,canvas:r,emitter:n,svg:e})).clean=function(){d&&document.body.removeChild(d)}}),e)})).catch((function(e){n.emit("error",e)})),n}},"7rOW":function(e,t,n){"use strict";var r=n("5jll");e.exports={moduleType:"component",name:r.name,layoutAttributes:n("nF9v"),supplyLayoutDefaults:n("chCF"),draw:n("8QPt")}},"825b":function(e,t,n){"use strict";e.exports=n("2DHC")},"86IV":function(e,t,n){"use strict";var r=n("GbLo"),a=n("/CZE");e.exports=function(e,t,n,i){var o,l,s,c,u=i.counterAxes||[],d=i.overlayableAxes||[],h=i.letter,f=i.grid;f&&(l=f._domains[h][f._axisMap[t._id]],o=f._anchors[t._id],l&&(s=f[h+"side"].split(" ")[0],c=f.domain[h]["right"===s||"top"===s?1:0])),l=l||[0,1],o=o||(r(e.position)?"free":u[0]||"free"),s=s||("x"===h?"bottom":"left"),c=c||0,"free"===a.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(u),dflt:o}},"anchor")&&n("position",c),a.coerce(e,t,{side:{valType:"enumerated",values:"x"===h?["bottom","top"]:["left","right"],dflt:s}},"side");var p=!1;if(d.length&&(p=a.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(d),dflt:!1}},"overlaying")),!p){var g=n("domain",l);g[0]>g[1]-1/4096&&(t.domain=l),a.noneOrAll(e.domain,t.domain,l)}return n("layer"),t}},"88/Y":function(e,t,n){"use strict";e.exports={container:"marker",min:"cmin",max:"cmax"}},"89+b":function(e,t,n){"use strict";var r=n("eNjM").hiddenlabels;e.exports={hiddenlabels:r,funnelareacolorway:{valType:"colorlist",role:"style",editType:"calc",description:["Sets the default funnelarea 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 `extendfunnelareacolors`."].join(" ")},extendfunnelareacolors:{valType:"boolean",dflt:!0,role:"style",editType:"calc",description:["If `true`, the funnelarea slice colors (whether given by `funnelareacolorway` 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(" ")}}},"8QPt":function(e,t,n){"use strict";var r=n("bljh"),a=n("u3HJ"),i=n("0RW4"),o=n("g9E0"),l=n("/CZE"),s=n("A3kh"),c=n("plED").arrayEditor,u=n("5jll"),d=n("Y9zF"),h=d.LINE_SPACING,f=d.FROM_TL,p=d.FROM_BR;function g(e){return u.autoMarginIdRoot+e._index}function v(e){return e._index}function m(e,t){var n=o.tester.selectAll("g."+u.labelGroupClass).data(t._visibleSteps);n.enter().append("g").classed(u.labelGroupClass,!0);var i=0,c=0;n.each((function(e){var n=b(r.select(this),{step:e},t).node();if(n){var a=o.bBox(n);c=Math.max(c,a.height),i=Math.max(i,a.width)}})),n.remove();var d=t._dims={};d.inputAreaWidth=Math.max(u.railWidth,u.gripHeight);var h=e._fullLayout._size;d.lx=h.l+h.w*t.x,d.ly=h.t+h.h*(1-t.y),"fraction"===t.lenmode?d.outerLength=Math.round(h.w*t.len):d.outerLength=t.len,d.inputAreaStart=0,d.inputAreaLength=Math.round(d.outerLength-t.pad.l-t.pad.r);var v=(d.inputAreaLength-2*u.stepInset)/(t._stepCount-1),m=i+u.labelPadding;if(d.labelStride=Math.max(1,Math.ceil(m/v)),d.labelHeight=c,d.currentValueMaxWidth=0,d.currentValueHeight=0,d.currentValueTotalHeight=0,d.currentValueMaxLines=1,t.currentvalue.visible){var x=o.tester.append("g");n.each((function(e){var n=y(x,t,e.label),r=n.node()&&o.bBox(n.node())||{width:0,height:0},a=s.lineCount(n);d.currentValueMaxWidth=Math.max(d.currentValueMaxWidth,Math.ceil(r.width)),d.currentValueHeight=Math.max(d.currentValueHeight,Math.ceil(r.height)),d.currentValueMaxLines=Math.max(d.currentValueMaxLines,a)})),d.currentValueTotalHeight=d.currentValueHeight+t.currentvalue.offset,x.remove()}d.height=d.currentValueTotalHeight+u.tickOffset+t.ticklen+u.labelOffset+d.labelHeight+t.pad.t+t.pad.b;var w="left";l.isRightAnchor(t)&&(d.lx-=d.outerLength,w="right"),l.isCenterAnchor(t)&&(d.lx-=d.outerLength/2,w="center");var _="top";l.isBottomAnchor(t)&&(d.ly-=d.height,_="bottom"),l.isMiddleAnchor(t)&&(d.ly-=d.height/2,_="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*p[_],t:d.height*f[_]};"fraction"===t.lenmode?(k.l=0,k.xl=t.x-t.len*f[w],k.r=0,k.xr=t.x+t.len*p[w]):(k.x=t.x,k.l=d.outerLength*f[w],k.r=d.outerLength*p[w]),a.autoMargin(e,g(t),k)}function y(e,t,n){if(t.currentvalue.visible){var r,a,i=t._dims;switch(t.currentvalue.xanchor){case"right":r=i.inputAreaLength-u.currentValueInset-i.currentValueMaxWidth,a="left";break;case"center":r=.5*i.inputAreaLength,a="middle";break;default:r=u.currentValueInset,a="left"}var c=l.ensureSingle(e,"text",u.labelClass,(function(e){e.classed("user-select-none",!0).attr({"text-anchor":a,"data-notex":1})})),d=t.currentvalue.prefix?t.currentvalue.prefix:"";if("string"==typeof n)d+=n;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),c.call(o.font,t.currentvalue.font).text(d).call(s.convertToTspans,t._gd);var g=s.lineCount(c),v=(i.currentValueMaxLines+1-g)*t.currentvalue.font.size*h;return s.positionText(c,r,v),c}}function x(e,t,n){l.ensureSingle(e,"rect",u.gripRectClass,(function(r){r.call(T,t,e,n).style("pointer-events","all")})).attr({width:u.gripWidth,height:u.gripHeight,rx:u.gripRadius,ry:u.gripRadius}).call(i.stroke,n.bordercolor).call(i.fill,n.bgcolor).style("stroke-width",n.borderwidth+"px")}function b(e,t,n){var r=l.ensureSingle(e,"text",u.labelClass,(function(e){e.classed("user-select-none",!0).attr({"text-anchor":"middle","data-notex":1})})),a=t.step.label,i=n._gd._fullLayout._meta;return i&&(a=l.templateString(a,i)),r.call(o.font,n.font).text(a).call(s.convertToTspans,n._gd),r}function w(e,t){var n=l.ensureSingle(e,"g",u.labelsClass),a=t._dims,i=n.selectAll("g."+u.labelGroupClass).data(a.labelSteps);i.enter().append("g").classed(u.labelGroupClass,!0),i.exit().remove(),i.each((function(e){var n=r.select(this);n.call(b,e,t),o.setTranslate(n,S(t,e.fraction),u.tickOffset+t.ticklen+t.font.size*h+u.labelOffset+a.currentValueTotalHeight)}))}function _(e,t,n,r,a){var i=Math.round(r*(n._stepCount-1)),o=n._visibleSteps[i]._index;o!==n.active&&k(e,t,n,o,!0,a)}function k(e,t,n,r,i,o){var l=n.active;n.active=r,c(e.layout,u.name,n).applyUpdate("active",r);var s=n.steps[n.active];t.call(A,n,o),t.call(y,n),e.emit("plotly_sliderchange",{slider:n,step:n.steps[n.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 n=t._nextMethod.step;n.method&&(n.execute&&a.executeAPICommand(e,n.method,n.args),t._nextMethod=null,t._nextMethodRaf=null)}))))}function T(e,t,n){var a=n.node(),o=r.select(t);function l(){return n.data()[0]}e.on("mousedown",(function(){var e=l();t.emit("plotly_sliderstart",{slider:e});var s=n.select("."+u.gripRectClass);r.event.stopPropagation(),r.event.preventDefault(),s.call(i.fill,e.activebgcolor);var c=C(e,r.mouse(a)[0]);_(t,n,e,c,!0),e._dragging=!0,o.on("mousemove",(function(){var e=l(),i=C(e,r.mouse(a)[0]);_(t,n,e,i,!1)})),o.on("mouseup",(function(){var e=l();e._dragging=!1,s.call(i.fill,e.bgcolor),o.on("mouseup",null),o.on("mousemove",null),t.emit("plotly_sliderend",{slider:e,step:e.steps[e.active]})}))}))}function M(e,t){var n=e.selectAll("rect."+u.tickRectClass).data(t._visibleSteps),a=t._dims;n.enter().append("rect").classed(u.tickRectClass,!0),n.exit().remove(),n.attr({width:t.tickwidth+"px","shape-rendering":"crispEdges"}),n.each((function(e,n){var l=n%a.labelStride==0,s=r.select(this);s.attr({height:l?t.ticklen:t.minorticklen}).call(i.fill,t.tickcolor),o.setTranslate(s,S(t,n/(t._stepCount-1))-.5*t.tickwidth,(l?u.tickOffset:u.minorTickOffset)+a.currentValueTotalHeight)}))}function A(e,t,n){for(var r=e.select("rect."+u.gripRectClass),a=0,i=0;i<t._stepCount;i++)if(t._visibleSteps[i]._index===t.active){a=i;break}var o=S(t,a/(t._stepCount-1));if(!t._invokingCommand){var l=r;n&&t.transition.duration>0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform","translate("+(o-.5*u.gripWidth)+","+t._dims.currentValueTotalHeight+")")}}function S(e,t){var n=e._dims;return n.inputAreaStart+u.stepInset+(n.inputAreaLength-2*u.stepInset)*Math.min(1,Math.max(0,t))}function C(e,t){var n=e._dims;return Math.min(1,Math.max(0,(t-u.stepInset-n.inputAreaStart)/(n.inputAreaLength-2*u.stepInset-2*n.inputAreaStart)))}function L(e,t,n){var r=n._dims,a=l.ensureSingle(e,"rect",u.railTouchRectClass,(function(r){r.call(T,t,e,n).style("pointer-events","all")}));a.attr({width:r.inputAreaLength,height:Math.max(r.inputAreaWidth,u.tickOffset+n.ticklen+r.labelHeight)}).call(i.fill,n.bgcolor).attr("opacity",0),o.setTranslate(a,0,r.currentValueTotalHeight)}function I(e,t){var n=t._dims,r=n.inputAreaLength-2*u.railInset,a=l.ensureSingle(e,"rect",u.railRectClass);a.attr({width:r,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(a,u.railInset,.5*(n.inputAreaWidth-u.railWidth)+n.currentValueTotalHeight)}e.exports=function(e){var t=e._fullLayout,n=function(e,t){for(var n=e[u.name],r=[],a=0;a<n.length;a++){var i=n[a];i.visible&&(i._gd=t,r.push(i))}return r}(t,e),i=t._infolayer.selectAll("g."+u.containerClassName).data(n.length>0?[0]:[]);function l(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),a.autoMargin(e,g(t))}if(i.enter().append("g").classed(u.containerClassName,!0).style("cursor","ew-resize"),i.exit().each((function(){r.select(this).selectAll("g."+u.groupClassName).each(l)})).remove(),0!==n.length){var s=i.selectAll("g."+u.groupClassName).data(n,v);s.enter().append("g").classed(u.groupClassName,!0),s.exit().each(l).remove();for(var c=0;c<n.length;c++){var d=n[c];m(e,d)}s.each((function(t){var n=r.select(this);!function(e){var t=e._dims;t.labelSteps=[];for(var n=e._stepCount,r=0;r<n;r+=t.labelStride)t.labelSteps.push({fraction:r/(n-1),step:e._visibleSteps[r]})}(t),a.manageCommandObserver(e,t,t._visibleSteps,(function(t){var r=n.data()[0];r.active!==t.index&&(r._dragging||k(e,n,r,t.index,!1,!0))})),function(e,t,n){(n.steps[n.active]||{}).visible||(n.active=n._visibleSteps[0]._index);t.call(y,n).call(I,n).call(w,n).call(M,n).call(L,e,n).call(x,e,n);var r=n._dims;o.setTranslate(t,r.lx+n.pad.l,r.ly+n.pad.t),t.call(A,n,!1),t.call(y,n)}(e,r.select(this),t)}))}}},"8RjX":function(e,t,n){"use strict";var r=n("bljh"),a=n("Nx4I"),i=n("/CZE"),o=i.ensureSingle,l=i.identity,s=n("g9E0"),c=n("3oHU"),u=n("nPGn"),d=n("AL0Q"),h=n("tos6").tester;function f(e,t,n,d,f,p,g){var v;!function(e,t,n,a,o){var l=n.xaxis,s=n.yaxis,u=r.extent(i.simpleMap(l.range,l.r2c)),d=r.extent(i.simpleMap(s.range,s.r2c)),h=a[0].trace;if(!c.hasMarkers(h))return;var f=h.marker.maxdisplayed;if(0===f)return;var p=a.filter((function(e){return e.x>=u[0]&&e.x<=u[1]&&e.y>=d[0]&&e.y<=d[1]})),g=Math.ceil(p.length/f),v=0;o.forEach((function(e,n){var r=e[0].trace;c.hasMarkers(r)&&r.marker.maxdisplayed>0&&n<t&&v++}));var m=Math.round(v*g/3+Math.floor(v/3)*g/7.1);a.forEach((function(e){delete e.vis})),p.forEach((function(e,t){0===Math.round((t+m)%g)&&(e.vis=!0)}))}(0,t,n,d,f);var m=!!g&&g.duration>0;function y(e){return m?e.transition():e}var x=n.xaxis,b=n.yaxis,w=d[0].trace,_=w.line,k=r.select(p),T=o(k,"g","errorbars"),M=o(k,"g","lines"),A=o(k,"g","points"),S=o(k,"g","text");if(a.getComponentMethod("errorbars","plot")(e,T,n,g),!0===w.visible){var C,L;y(k).style("opacity",w.opacity);var I=w.fill.charAt(w.fill.length-1);"x"!==I&&"y"!==I&&(I=""),d[0][n.isRangePlot?"nodeRangePlot3":"node3"]=k;var E,O,D="",P=[],z=w._prevtrace;z&&(D=z._prevRevpath||"",L=z._nextFill,P=z._polygons);var N,j,R,F,B,H,V,G="",U="",q=[],Z=i.noop;if(C=w._ownFill,c.hasLines(w)||"none"!==w.fill){for(L&&L.datum(d),-1!==["hv","vh","hvh","vhv"].indexOf(_.shape)?(N=s.steps(_.shape),j=s.steps(_.shape.split("").reverse().join(""))):N=j="spline"===_.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),_.smoothing):s.smoothopen(e,_.smoothing)}:function(e){return"M"+e.join("L")},R=function(e){return j(e.reverse())},q=u(d,{xaxis:x,yaxis:b,connectGaps:w.connectgaps,baseTolerance:Math.max(_.width||1,3)/4,shape:_.shape,simplify:_.simplify,fill:w.fill}),V=w._polygons=new Array(q.length),v=0;v<q.length;v++)w._polygons[v]=h(q[v]);q.length&&(F=q[0][0],H=(B=q[q.length-1])[B.length-1]),Z=function(e){return function(t){if(E=N(t),O=R(t),G?I?(G+="L"+E.substr(1),U=O+"L"+U.substr(1)):(G+="Z"+E,U=O+"Z"+U):(G=E,U=O),c.hasLines(w)&&t.length>1){var n=r.select(this);if(n.datum(d),e)y(n.style("opacity",0).attr("d",E).call(s.lineGroupStyle)).style("opacity",1);else{var a=y(n);a.attr("d",E),s.singleLineStyle(d,a)}}}}}var W=M.selectAll(".js-line").data(q);y(W.exit()).style("opacity",0).remove(),W.each(Z(!1)),W.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(s.lineGroupStyle).each(Z(!0)),s.setClipUrl(W,n.layerClipId,e),q.length?(C?(C.datum(d),F&&H&&(I?("y"===I?F[1]=H[1]=b.c2p(0,!0):"x"===I&&(F[0]=H[0]=x.c2p(0,!0)),y(C).attr("d","M"+H+"L"+F+"L"+G.substr(1)).call(s.singleFillStyle)):y(C).attr("d",G+"Z").call(s.singleFillStyle))):L&&("tonext"===w.fill.substr(0,6)&&G&&D?("tonext"===w.fill?y(L).attr("d",G+"Z"+D+"Z").call(s.singleFillStyle):y(L).attr("d",G+"L"+D.substr(1)+"Z").call(s.singleFillStyle),w._polygons=w._polygons.concat(P)):(X(L),w._polygons=null)),w._prevRevpath=U,w._prevPolygons=V):(C?X(C):L&&X(L),w._polygons=w._prevRevpath=w._prevPolygons=null),A.datum(d),S.datum(d),function(t,a,i){var o,u=i[0].trace,d=c.hasMarkers(u),h=c.hasText(u),f=ee(u),p=te,g=te;if(d||h){var v=l,w=u.stackgroup,_=w&&"infer zero"===e._fullLayout._scatterStackOpts[x._id+b._id][w].stackgaps;u.marker.maxdisplayed||u._needsCull?v=_?J:$:w&&!_&&(v=K),d&&(p=v),h&&(g=v)}var k,T=(o=t.selectAll("path.point").data(p,f)).enter().append("path").classed("point",!0);m&&T.call(s.pointStyle,u,e).call(s.translatePoints,x,b).style("opacity",0).transition().style("opacity",1),o.order(),d&&(k=s.makePointStyleFns(u)),o.each((function(t){var a=r.select(this),i=y(a);s.translatePoint(t,i,x,b)?(s.singlePointStyle(t,i,u,k,e),n.layerClipId&&s.hideOutsideRangePoint(t,i,x,b,u.xcalendar,u.ycalendar),u.customdata&&a.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):i.remove()})),m?o.exit().transition().style("opacity",0).remove():o.exit().remove(),(o=a.selectAll("g").data(g,f)).enter().append("g").classed("textpoint",!0).append("text"),o.order(),o.each((function(e){var t=r.select(this),a=y(t.select("text"));s.translatePoint(e,a,x,b)?n.layerClipId&&s.hideOutsideRangePoint(e,t,x,b,u.xcalendar,u.ycalendar):t.remove()})),o.selectAll("text").call(s.textPointStyle,u,e).each((function(e){var t=x.c2p(e.x),n=b.c2p(e.y);r.select(this).selectAll("tspan.line").each((function(){y(r.select(this)).attr({x:t,y:n})}))})),o.exit().remove()}(A,S,d);var Y=!1===w.cliponaxis?null:n.layerClipId;s.setClipUrl(A,Y,e),s.setClipUrl(S,Y,e)}function X(e){y(e).attr("d","M0,0Z")}function $(e){return e.filter((function(e){return!e.gap&&e.vis}))}function J(e){return e.filter((function(e){return e.vis}))}function K(e){return e.filter((function(e){return!e.gap}))}function Q(e){return e.id}function ee(e){if(e.ids)return Q}function te(){return!1}}e.exports=function(e,t,n,a,i,c){var u,h,p=!i,g=!!i&&i.duration>0,v=d(e,t,n);((u=a.selectAll("g.trace").data(v,(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),u.order(),function(e,t,n){t.each((function(t){var a=o(r.select(this),"g","fills");s.setClipUrl(a,n.layerClipId,e);var i=t[0].trace,c=[];i._ownfill&&c.push("_ownFill"),i._nexttrace&&c.push("_nextFill");var u=a.selectAll("g").data(c,l);u.enter().append("g"),u.exit().each((function(e){i[e]=null})).remove(),u.order().each((function(e){i[e]=o(r.select(this),"path","js-fill")}))}))}(e,u,t),g)?(c&&(h=c()),r.transition().duration(i.duration).ease(i.easing).each("end",(function(){h&&h()})).each("interrupt",(function(){h&&h()})).each((function(){a.selectAll("g.trace").each((function(n,r){f(e,r,t,n,v,this,i)}))}))):u.each((function(n,r){f(e,r,t,n,v,this,i)}));p&&u.exit().remove(),a.selectAll("path:not([d])").remove()}},"8gD/":function(e,t,n){"use strict";var r=n("qHYo"),a=n("lNV6").hovertemplateAttrs,i=n("lNV6").texttemplateAttrs,o=n("9Okp"),l=n("gfA5").attributes,s=n("kZ5o"),c=n("i6kf"),u=n("kJIm").extendFlat;e.exports={labels:{valType:"data_array",editType:"calc",description:["Sets the labels of each of the sectors."].join(" ")},parents:{valType:"data_array",editType:"calc",description:["Sets the parent sectors for each of the sectors.","Empty string items '' are understood to reference","the root node in the hierarchy.",'If `ids` is filled, `parents` items are understood to be "ids" themselves.',"When `ids` is not set, plotly attempts to find matching items in `labels`,","but beware they must be unique."].join(" ")},values:{valType:"data_array",editType:"calc",description:["Sets the values associated with each of the sectors.","Use with `branchvalues` to determine how the values are summed."].join(" ")},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc",role:"info",description:["Determines how the items in `values` are summed.","When set to *total*, items in `values` are taken to be value of all its descendants.","When set to *remainder*, items in `values` corresponding to the root and the branches sectors","are taken to be the extra part not part of the sum of the values at their leaves."].join(" ")},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc",role:"info",description:["Determines default for `values` when it is not provided,","by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0."].join(" ")},level:{valType:"any",editType:"plot",anim:!0,role:"info",description:["Sets the level from which this trace hierarchy is rendered.","Set `level` to `''` to start from the root node in the hierarchy.",'Must be an "id" if `ids` is filled in, otherwise plotly attempts to find a matching',"item in `labels`."].join(" ")},maxdepth:{valType:"integer",editType:"plot",role:"info",dflt:-1,description:["Sets the number of rendered sectors from any given `level`.","Set `maxdepth` to *-1* to render all the levels in the hierarchy."].join(" ")},marker:u({colors:{valType:"data_array",editType:"calc",description:["Sets the color of each sector of this trace.","If not specified, the default trace color set is used","to pick the sector colors."].join(" ")},line:{color:u({},s.marker.line.color,{dflt:null,description:["Sets the color of the line enclosing each sector.","Defaults to the `paper_bgcolor` value."].join(" ")}),width:u({},s.marker.line.width,{dflt:1}),editType:"calc"},editType:"calc"},o("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",role:"style",min:0,max:1,description:["Sets the opacity of the leaves. With colorscale","it is defaulted to 1; otherwise it is defaulted to 0.7"].join(" ")},editType:"plot"},text:s.text,textinfo:{valType:"flaglist",role:"info",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot",description:["Determines which trace information appear on the graph."].join(" ")},texttemplate:i({editType:"plot"},{keys:c.eventDataKeys.concat(["label","value"])}),hovertext:s.hovertext,hoverinfo:u({},r.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:a({},{keys:c.eventDataKeys}),textfont:s.textfont,insidetextorientation:s.insidetextorientation,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{description:["Sets the font used for `textinfo` lying outside the sector.","This option refers to the root of the hierarchy","presented at the center of a sunburst graph.","Please note that if a hierarchy has multiple root nodes,","this option won't have any effect and `insidetextfont` would be used."].join(" ")}),domain:l({name:"sunburst",trace:!0,editType:"calc"})}},"8o4k":function(e,t,n){"use strict";var r=n("Nx4I"),a=n("efHY");e.exports=function(e,t){var n,i,o={},l=[],s=!1,c={},u=0,d=0,h=t._main;function f(e,n){if(""!==e&&a.isGrouped(t))-1===l.indexOf(e)?(l.push(e),s=!0,o[e]=[[n]]):o[e].push([n]);else{var r="~~i"+u;l.push(r),o[r]=[[n]],u++}}for(n=0;n<e.length;n++){var p=e[n],g=p[0],v=g.trace,m=v.legendgroup;if(!h||v.visible&&v.showlegend)if(r.traceIs(v,"pie-like"))for(c[m]||(c[m]={}),i=0;i<p.length;i++){var y=p[i].label;c[m][y]||(f(m,{label:y,color:p[i].color,i:p[i].i,trace:v,pts:p[i].pts}),c[m][y]=!0,d=Math.max(d,(y||"").length))}else f(m,g),d=Math.max(d,(v.name||"").length)}if(!l.length)return[];var x,b,w=l.length;if(s&&a.isGrouped(t))for(b=new Array(w),n=0;n<w;n++)x=o[l[n]],b[n]=a.isReversed(t)?x.reverse():x;else{for(b=[new Array(w)],n=0;n<w;n++)x=o[l[n]][0],b[0][a.isReversed(t)?w-n-1:n]=x;w=1}return t._lgroupsLength=w,t._maxNameLength=d,b}},"8trw":function(e,t,n){"use strict";var r=n("GbLo"),a=n("6AZA").BADNUM,i=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;e.exports=function(e){return"string"==typeof e&&(e=e.replace(i,"")),r(e)?Number(e):a}},"98FX":function(e,t,n){"use strict";var r=n("/CZE"),a=n("0RW4"),i=n("plED"),o=n("5azm"),l=n("0tl7"),s=n("sZtP");function c(e,t,n,a){var i=a.calendar;function o(n,a){return r.coerce(e,t,l.buttons,n,a)}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,n,u,d){var h=e.rangeselector||{},f=i.newContainer(t,"rangeselector");function p(e,t){return r.coerce(h,f,l,e,t)}if(p("visible",o(h,f,{name:"buttons",handleItemDefaults:c,calendar:d}).length>0)){var g=function(e,t,n){for(var r=n.filter((function(n){return t[n].anchor===e._id})),a=0,i=0;i<r.length;i++){var o=t[r[i]].domain;o&&(a=Math.max(o[1],a))}return[e.domain[0],a+s.yPad]}(t,n,u);p("x",g[0]),p("y",g[1]),r.noneOrAll(e,t,["x","y"]),p("xanchor"),p("yanchor"),r.coerceFont(p,"font",n.font);var v=p("bgcolor");p("activecolor",a.contrast(v,s.lightAmount,s.darkAmount)),p("bordercolor"),p("borderwidth")}}},"9CI2":function(e,t,n){"use strict";var r=n("JZU4").drawRaw,a=n("+Y3G"),i=["x","y","z"];e.exports=function(e){for(var t=e.fullSceneLayout,n=e.dataScale,o=t.annotations,l=0;l<o.length;l++){for(var s=o[l],c=!1,u=0;u<3;u++){var d=i[u],h=s[d],f=t[d+"axis"].r2fraction(h);if(f<0||f>1){c=!0;break}}c?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+l+'"]').remove():(s._pdata=a(e.glplot.cameraParams,[t.xaxis.r2l(s.x)*n[0],t.yaxis.r2l(s.y)*n[1],t.zaxis.r2l(s.z)*n[2]]),r(e.graphDiv,s,l,e.id,s._xa,s._ya))}}},"9Okp":function(e,t,n){"use strict";var r=n("Z8TU"),a=n("BVrX").counter,i=n("SFLx").scales,o=Object.keys(i);function l(e){return"`"+e+"`"}e.exports=function(e,t){e=e||"";var n,s,c=(t=t||{}).cLetter||"c",u="onlyIfNumerical"in t?t.onlyIfNumerical:Boolean(e),d="noScale"in t?t.noScale:"marker.line"===e,h="showScaleDflt"in t?t.showScaleDflt:"z"===c,f="string"==typeof t.colorscaleDflt?i[t.colorscaleDflt]:null,p=t.editTypeOverride||"",g=e?e+".":"";"colorAttr"in t?(n=t.colorAttr,s=t.colorAttr):s="in "+l(g+(n={z:"z",c:"color"}[c]));var v=u?" Has an effect only if "+s+"is set to a numerical array.":"",m=c+"auto",y=c+"min",x=c+"max",b=c+"mid",w=l(g+m),_=l(g+y),k=l(g+x),T=_+" and "+k,M={};M[y]=M[x]=void 0;var A={};A[m]=!1;var S={};return"color"===n&&(S.color={valType:"color",arrayOk:!0,role:"style",editType:p||"style",description:["Sets the",e,"color."," It accepts either a specific color"," or an array of numbers that are mapped to the colorscale"," relative to the max and min values of the array or relative to"," "+T+" if set."].join("")},t.anim&&(S.color.anim=!0)),S[m]={valType:"boolean",role:"info",dflt:!0,editType:"calc",impliedEdits:M,description:["Determines whether or not the color domain is computed"," with respect to the input data (here "+s+") or the bounds set in"," ",T," ",v," Defaults to `false` when ",T," are set by the user."].join("")},S[y]={valType:"number",role:"info",dflt:null,editType:p||"plot",impliedEdits:A,description:["Sets the lower bound of the color domain.",v," Value should have the same units as ",s," and if set, ",k," must be set as well."].join("")},S[x]={valType:"number",role:"info",dflt:null,editType:p||"plot",impliedEdits:A,description:["Sets the upper bound of the color domain.",v," Value should have the same units as ",s," and if set, ",_," must be set as well."].join("")},S[b]={valType:"number",role:"info",dflt:null,editType:"calc",impliedEdits:M,description:["Sets the mid-point of the color domain by scaling ",_," and/or ",k," to be equidistant to this point.",v," Value should have the same units as ",s,". ","Has no effect when ",w," is `false`."].join("")},S.colorscale={valType:"colorscale",role:"style",editType:"calc",dflt:f,impliedEdits:{autocolorscale:!1},description:["Sets the colorscale.",v," The colorscale must be an array containing"," arrays mapping a normalized value to an"," rgb, rgba, hex, hsl, hsv, or named color string."," At minimum, a mapping for the lowest (0) and highest (1)"," values are required. For example,"," `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`."," To control the bounds of the colorscale in color space,"," use",T,"."," Alternatively, `colorscale` may be a palette name string"," of the following list: "+o+"."].join("")},S.autocolorscale={valType:"boolean",role:"style",dflt:!1!==t.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0},description:["Determines whether the colorscale is a default palette (`autocolorscale: true`)"," or the palette determined by ",l(g+"colorscale"),".",v," In case `colorscale` is unspecified or `autocolorscale` is true, the default "," palette will be chosen according to whether numbers in the `color` array are"," all positive, all negative or mixed."].join("")},S.reversescale={valType:"boolean",role:"style",dflt:!1,editType:"plot",description:["Reverses the color mapping if true.",v," If true, ",_," will correspond to the last color"," in the array and ",k," will correspond to the first color."].join("")},d||(S.showscale={valType:"boolean",role:"info",dflt:h,editType:"calc",description:["Determines whether or not a colorbar is displayed for this trace.",v].join("")},S.colorbar=r),t.noColorAxis||(S.coloraxis={valType:"subplotid",role:"info",regex:a("coloraxis"),dflt:null,editType:"calc",description:["Sets a reference to a shared color axis.","References to these shared color axes are *coloraxis*, *coloraxis2*, *coloraxis3*, etc.","Settings for these shared color axes are set in the layout, under","`layout.coloraxis`, `layout.coloraxis2`, etc.","Note that multiple color scales can be linked to the same color axis."].join(" ")}),S}},"9VKb":function(e,t,n){"use strict";var r=n("/CZE"),a=n("QYPY"),i=n("i9ir");e.exports=function(e,t,n,o){function l(n,a){return r.coerce(e,t,i,n,a)}var s=l("locations"),c=l("z");if(s&&s.length&&r.isArrayOrTypedArray(c)&&c.length){t._length=Math.min(s.length,c.length);var u,d=l("geojson");("string"==typeof d&&""!==d||r.isPlainObject(d))&&(u="geojson-id"),"geojson-id"===l("locationmode",u)&&l("featureidkey"),l("text"),l("hovertext"),l("hovertemplate"),l("marker.line.width")&&l("marker.line.color"),l("marker.opacity"),a(e,t,o,l,{prefix:"",cLetter:"z"}),r.coerceSelectionMarkerOpacity(t,l)}else t.visible=!1}},"9ldu":function(e,t,n){"use strict";e.exports={moduleType:"trace",name:"sunburst",basePlotModule:n("s1NN"),categories:[],animatable:!0,attributes:n("8gD/"),layoutAttributes:n("e6NF"),supplyDefaults:n("jb4q"),supplyLayoutDefaults:n("LdfS"),calc:n("E6B2").calc,crossTraceCalc:n("E6B2").crossTraceCalc,plot:n("4X2v").plot,style:n("dZSj").style,colorbar:n("88/Y"),meta:{description:["Visualize hierarchal data spanning outward radially from root to leaves.","The sunburst sectors are determined by the entries in *labels* or *ids*","and in *parents*."].join(" ")}}},"9rBw":function(e,t,n){"use strict";var r=n("GbLo");e.exports=function(e,t){if(e>0)return Math.log(e)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return r(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}},"9yVo":function(e,t,n){"use strict";e.exports=n("/w3t")},A3kh:function(e,t,n){"use strict";var r=n("bljh"),a=n("/CZE"),i=n("c8nr"),o=n("Y9zF").LINE_SPACING;function l(e,t){return e.node().getBoundingClientRect()[t]}var s=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;t.convertToTspans=function(e,n,M){var A=e.text(),C=!e.attr("data-notex")&&"undefined"!=typeof MathJax&&A.match(s),L=r.select(e.node().parentNode);if(!L.empty()){var I=e.attr("class")?e.attr("class").split(" ")[0]:"text";return I+="-math",L.selectAll("svg."+I).remove(),L.selectAll("g."+I+"-group").remove(),e.style("display",null).attr({"data-unformatted":A,"data-math":"N"}),C?(n&&n._promises||[]).push(new Promise((function(t){e.style("display","none");var n=parseInt(e.node().style.fontSize,10),i={fontSize:n};!function(e,t,n){var i,o,l,s;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 s=r.select("body").append("div").attr({id:n}).style({visibility:"hidden",position:"absolute"}).style({"font-size":t.fontSize+"px"}).text(e.replace(c,"\\lt ").replace(u,"\\gt ")),MathJax.Hub.Typeset(s.node())}),(function(){var t=r.select("body").select("#MathJax_SVG_glyphs");if(s.select(".MathJax_SVG").empty()||!s.select("svg").node())a.log("There was an error in the tex syntax.",e),n();else{var o=s.select("svg").node().getBoundingClientRect();n(s.select(".MathJax_SVG"),t,o)}if(s.remove(),"SVG"!==i)return MathJax.Hub.setRenderer(i)}),(function(){return void 0!==l&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(o)}))}(C[2],i,(function(r,a,i){L.selectAll("svg."+I).remove(),L.selectAll("g."+I+"-group").remove();var o=r&&r.select("svg");if(!o||!o.node())return E(),void t();var s=L.append("g").classed(I+"-group",!0).attr({"pointer-events":"none","data-unformatted":A,"data-math":"Y"});s.node().appendChild(o.node()),a&&a.node()&&o.node().insertBefore(a.node().cloneNode(!0),o.node().firstChild),o.attr({class:I,height:i.height,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var c=e.node().style.fill||"black",u=o.select("g");u.attr({fill:c,stroke:c});var d=l(u,"width"),h=l(u,"height"),f=+e.attr("x")-d*{start:0,middle:.5,end:1}[e.attr("text-anchor")||"start"],p=-(n||l(e,"height"))/4;"y"===I[0]?(s.attr({transform:"rotate("+[-90,+e.attr("x"),+e.attr("y")]+") translate("+[-d/2,p-h/2]+")"}),o.attr({x:+e.attr("x"),y:+e.attr("y")})):"l"===I[0]?o.attr({x:e.attr("x"),y:p-h/2}):"a"===I[0]&&0!==I.indexOf("atitle")?o.attr({x:0,y:p}):o.attr({x:f,y:+e.attr("y")+p-h/2}),M&&M.call(e,s),t(s)}))}))):E(),e}function E(){L.empty()||(I=e.attr("class")+"-math",L.select("svg."+I).remove()),e.text("").style("white-space","pre"),function(e,t){t=t.replace(g," ");var n,l=!1,s=[],c=-1;function u(){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<a.length;l++)M(a[l])}function M(e){var t,a=e.type,o={};if("a"===a){t="a";var l=e.target,c=e.href,u=e.popup;c&&(o={"xlink:xlink:show":"_blank"===l||"_"!==l.charAt(0)?"new":"replace",target:l,"xlink:xlink:href":c},u&&(o.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+u+'");return false;'))}else t="tspan";e.style&&(o.style=e.style);var d=document.createElementNS(i.svg,t);if("sup"===a||"sub"===a){A(n,"โ"),n.appendChild(d);var p=document.createElementNS(i.svg,"tspan");A(p,"โ"),r.select(p).attr("dy",f[a]),o.dy=h[a],n.appendChild(d),n.appendChild(p)}else n.appendChild(d);r.select(d).attr(o),n=e.node=d,s.push(e)}function A(e,t){e.appendChild(document.createTextNode(t))}function C(e){if(1!==s.length){var r=s.pop();e!==r.type&&a.log("Start tag <"+r.type+"> doesnt match end tag <"+e+">. Pretending it did match.",t),n=s[s.length-1].node}else a.log("Ignoring unexpected end tag </"+e+">.",t)}y.test(t)?u():(n=e,s=[{node:e}]);for(var L=t.split(v),I=0;I<L.length;I++){var E=L[I],O=E.match(m),D=O&&O[2].toLowerCase(),P=d[D];if("br"===D)u();else if(void 0===P)A(n,S(E));else if(O[1])C(D);else{var z=O[4],N={type:D},j=k(z,x);if(j?(j=j.replace(T,"$1 fill:"),P&&(j+=";"+P)):P&&(j=P),j&&(N.style=j),"a"===D){l=!0;var R=k(z,b);if(R){var F=document.createElement("a");F.href=R,-1!==p.indexOf(F.protocol)&&(N.href=encodeURI(decodeURI(R)),N.target=k(z,w)||"_blank",N.popup=k(z,_))}}M(N)}}return l}(e.node(),A)&&e.style("pointer-events","all"),t.positionText(e),M&&M.call(e)}};var c=/(<|<|<)/g,u=/(>|>|>)/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"},h={sub:"0.3em",sup:"-0.6em"},f={sub:"-0.21em",sup:"0.42em"},p=["http:","https:","mailto:","",void 0,":"],g=t.NEWLINES=/(\r\n?|\n)/g,v=/(<[^<>]*>)/,m=/<(\/?)([^ >]*)(\s+(.*))?>/i,y=/<br(\s+.*)?>/i;t.BR_TAG_ALL=/<br(\s+.*)?>/gi;var x=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,b=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,w=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,_=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function k(e,t){if(!e)return null;var n=e.match(t),r=n&&(n[3]||n[4]);return r&&S(r)}var T=/(^|;)\s*color:/;t.plainText=function(e,t){for(var n=void 0!==(t=t||{}).len&&-1!==t.len?t.len:1/0,r=void 0!==t.allowedTags?t.allowedTags:["br"],a="...".length,i=e.split(v),o=[],l="",s=0,c=0;c<i.length;c++){var u=i[c],d=u.match(m),h=d&&d[2].toLowerCase();if(h)-1!==r.indexOf(h)&&(o.push(u),l=h);else{var f=u.length;if(s+f<n)o.push(u),s+=f;else if(s<n){var p=n-s;l&&("br"!==l||p<=a||f<=a)&&o.pop(),n>a?o.push(u.substr(0,p-a)+"..."):o.push(u.substr(0,p));break}l=""}}return o.join("")};var M={mu:"ฮผ",amp:"&",lt:"<",gt:">",nbsp:"ย ",times:"ร",plusmn:"ยฑ",deg:"ยฐ"},A=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function S(e){return e.replace(A,(function(e,t){return("#"===t.charAt(0)?function(e){if(e>1114111)return;var t=String.fromCodePoint;if(t)return t(e);var n=String.fromCharCode;return e<=65535?n(e):n(55232+(e>>10),e%1024+56320)}("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):M[t])||e}))}function C(e,t,n){var r,a,i,o=n.horizontalAlign,l=n.verticalAlign||"top",s=e.node().getBoundingClientRect(),c=t.node().getBoundingClientRect();return a="bottom"===l?function(){return s.bottom-r.height}:"middle"===l?function(){return s.top+(s.height-r.height)/2}:function(){return s.top},i="right"===o?function(){return s.right-r.width}:"center"===o?function(){return s.left+(s.width-r.width)/2}:function(){return s.left},function(){return r=this.node().getBoundingClientRect(),this.style({top:a()-c.top+"px",left:i()-c.left+"px","z-index":1e3}),this}}t.convertEntities=S,t.sanitizeHTML=function(e){e=e.replace(g," ");for(var t=document.createElement("p"),n=t,a=[],i=e.split(v),o=0;o<i.length;o++){var l=i[o],s=l.match(m),c=s&&s[2].toLowerCase();if(c in d)if(s[1])a.length&&(n=a.pop());else{var u=s[4],h=k(u,x),f=h?{style:h}:{};if("a"===c){var y=k(u,b);if(y){var _=document.createElement("a");if(_.href=y,-1!==p.indexOf(_.protocol)){f.href=encodeURI(decodeURI(y));var T=k(u,w);T&&(f.target=T)}}}var M=document.createElement(c);n.appendChild(M),r.select(M).attr(f),n=M,a.push(M)}else n.appendChild(document.createTextNode(S(l)))}return t.innerHTML},t.lineCount=function(e){return e.selectAll("tspan.line").size()||1},t.positionText=function(e,t,n){return e.each((function(){var e=r.select(this);function a(t,n){return void 0===n?null===(n=e.attr(t))&&(e.attr(t,0),n=0):e.attr(t,n),n}var i=a("x",t),o=a("y",n);"text"===this.nodeName&&e.selectAll("tspan.line").attr({x:i,y:o})}))},t.makeEditable=function(e,t){var n=t.gd,a=t.delegate,i=r.dispatch("edit","input","cancel"),o=a||e;if(e.style({"pointer-events":a?"none":"all"}),1!==e.size())throw new Error("boo");function l(){!function(){var a=r.select(n).select(".svg-container"),o=a.append("div"),l=e.node().style,c=parseFloat(l.fontSize||12),u=t.text;void 0===u&&(u=e.attr("data-unformatted"));o.classed("plugin-editable editable",!0).style({position:"absolute","font-family":l.fontFamily||"Arial","font-size":c,color:t.fill||l.fill||"black",opacity:1,"background-color":t.background||"transparent",outline:"#ffffff33 1px solid",margin:[-c/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(u).call(C(e,a,t)).on("blur",(function(){n._editing=!1,e.text(this.textContent).style({opacity:1});var t,a=r.select(this).attr("class");(t=a?"."+a.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(t).style({opacity:0});var o=this.textContent;r.select(this).transition().duration(0).remove(),r.select(document).on("mouseup",null),i.edit.call(e,o)})).on("focus",(function(){var e=this;n._editing=!0,r.select(document).on("mouseup",(function(){if(r.event.target===e)return!1;document.activeElement===o.node()&&o.node().blur()}))})).on("keyup",(function(){27===r.event.which?(n._editing=!1,e.style({opacity:1}),r.select(this).style({opacity:0}).on("blur",(function(){return!1})).transition().remove(),i.cancel.call(e,this.textContent)):(i.input.call(e,this.textContent),r.select(this).call(C(e,a,t)))})).on("keydown",(function(){13===r.event.which&&this.blur()})).call(s)}(),e.style({opacity:0});var a,l=o.attr("class");(a=l?"."+l.split(" ")[0]+"-math-group":"[class*=-math-group]")&&r.select(e.node().parentNode).select(a).style({opacity:0})}function s(e){var t=e.node(),n=document.createRange();n.selectNodeContents(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n),t.focus()}return t.immediate?l():o.on("click",l),r.rebind(e,i,"on")}},A40U:function(e,t,n){"use strict";var r=n("BkK/"),a=n("i9ir"),i=n("/CZE").fillText;e.exports=function(e,t,n){var o,l,s,c,u=e.cd,d=u[0].trace,h=e.subplot;for(l=0;l<u.length;l++)if(c=!1,(o=u[l])._polygons){for(s=0;s<o._polygons.length;s++)o._polygons[s].contains([t,n])&&(c=!c),o._polygons[s].contains([t+360,n])&&(c=!c);if(c)break}if(c&&o)return e.x0=e.x1=e.xa.c2p(o.ct),e.y0=e.y1=e.ya.c2p(o.ct),e.index=o.index,e.location=o.loc,e.z=o.z,e.zLabel=r.tickText(h.mockAxis,h.mockAxis.c2l(o.z),"hover").text,e.hovertemplate=o.hovertemplate,function(e,t,n){if(t.hovertemplate)return;var r=n.hi||t.hoverinfo,o=String(n.loc),l="all"===r?a.hoverinfo.flags:r.split("+"),s=-1!==l.indexOf("name"),c=-1!==l.indexOf("location"),u=-1!==l.indexOf("z"),d=-1!==l.indexOf("text"),h=[];!s&&c?e.nameOverride=o:(s&&(e.nameOverride=t.name),c&&h.push(o));u&&h.push(e.zLabel);d&&i(n,t,h);e.extraText=h.join("<br>")}(e,d,o,h.mockAxis),[e]}},"A9f/":function(e,t,n){"use strict";var r=n("bljh"),a=n("g9E0"),i=n("0RW4"),o=n("cqRZ").DESELECTDIM,l=n("LfN2"),s=n("k6aH").resizeText,c=l.styleTextPoints;e.exports={style:function(e,t,n){var l=n||r.select(e).selectAll("g.waterfalllayer").selectAll("g.trace");s(e,l,"waterfall"),l.style("opacity",(function(e){return e[0].trace.opacity})),l.each((function(t){var n=r.select(this),l=t[0].trace;n.selectAll(".point > path").each((function(e){if(!e.isBlank){var t=l[e.dir].marker;r.select(this).call(i.fill,t.color).call(i.stroke,t.line.color).call(a.dashLine,t.line.dash,t.line.width).style("opacity",l.selectedpoints&&!e.selected?o:1)}})),c(n,l,e),n.selectAll(".lines").each((function(){var e=l.connector.line;a.lineGroupStyle(r.select(this).selectAll("path"),e.width,e.color,e.dash)}))}))}}},AII8:function(e,t,n){"use strict";var r=n("bljh"),a=n("GbLo"),i=[];e.exports=function(e,t){if(-1===i.indexOf(e)){i.push(e);var n=1e3;a(t)?n=t:"long"===t&&(n=3e3);var o=r.select("body").selectAll(".plotly-notifier").data([0]);o.enter().append("div").classed("plotly-notifier",!0),o.selectAll(".notifier-note").data(i).enter().append("div").classed("notifier-note",!0).style("opacity",0).each((function(e){var a=r.select(this);a.append("button").classed("notifier-close",!0).html("×").on("click",(function(){a.transition().call(l)}));for(var i=a.append("p"),o=e.split(/<br\s*\/?>/g),s=0;s<o.length;s++)s&&i.append("br"),i.append("span").text(o[s]);"stick"===t?a.transition().duration(350).style("opacity",1):a.transition().duration(700).style("opacity",1).transition().delay(n).call(l)}))}function l(e){e.duration(700).style("opacity",0).each("end",(function(e){var t=i.indexOf(e);-1!==t&&i.splice(t,1),r.select(this).remove()}))}}},AL0Q:function(e,t,n){"use strict";var r={tonextx:1,tonexty:1,tonext:1};e.exports=function(e,t,n){var a,i,o,l,s,c={},u=!1,d=-1,h=0,f=-1;for(i=0;i<n.length;i++)(o=(a=n[i][0].trace).stackgroup||"")?o in c?s=c[o]:(s=c[o]=h,h++):a.fill in r&&f>=0?s=f:(s=f=h,h++),s<d&&(u=!0),a._groupIndex=d=s;var p=n.slice();u&&p.sort((function(e,t){var n=e[0].trace,r=t[0].trace;return n._groupIndex-r._groupIndex||n.index-r.index}));var g={};for(i=0;i<p.length;i++)o=(a=p[i][0].trace).stackgroup||"",!0===a.visible?(a._nexttrace=null,a.fill in r&&(l=g[o],a._prevtrace=l||null,l&&(l._nexttrace=a)),a._ownfill=a.fill&&("tozero"===a.fill.substr(0,6)||"toself"===a.fill||"to"===a.fill.substr(0,2)&&!a._prevtrace),g[o]=a):a._prevtrace=a._nexttrace=a._ownfill=null;return p}},AP2z:function(e,t,n){var r=n("nmnc"),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var a=o.call(e);return r&&(t?e[l]=n:delete e[l]),a}},AySM:function(e,t,n){"use strict";e.exports=function(e){for(var t=0;t<e.length;t++){var n=e[t];if("scatter"===n.type){var r=n.fill;if("none"!==r&&"toself"!==r&&(n.opacity=void 0,"tonexty"===r||"tonextx"===r))for(var a=t-1;a>=0;a--){var i=e[a];if("scatter"===i.type&&i.xaxis===n.xaxis&&i.yaxis===n.yaxis){i.opacity=void 0;break}}}}}},B28u:function(e,t,n){"use strict";var r=n("/CZE"),a=n("Nx4I");e.exports=function(e,t,n,i){var o,l=i("x"),s=i("y");if(a.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],n),l){var c=r.minRowLength(l);s?o=Math.min(c,r.minRowLength(s)):(o=c,i("y0"),i("dy"))}else{if(!s)return 0;o=r.minRowLength(s),i("x0"),i("dx")}return t._length=o,o}},BDWl:function(e,t,n){"use strict";var r=n("EHyX"),a=n("qHYo"),i=n("lNV6").hovertemplateAttrs,o=n("9Okp"),l=n("eN+q").FORMAT_LINK,s=n("kJIm").extendFlat;e.exports=s({z:{valType:"data_array",editType:"calc",description:"Sets the z data."},x:s({},r.x,{impliedEdits:{xtype:"array"}}),x0:s({},r.x0,{impliedEdits:{xtype:"scaled"}}),dx:s({},r.dx,{impliedEdits:{xtype:"scaled"}}),y:s({},r.y,{impliedEdits:{ytype:"array"}}),y0:s({},r.y0,{impliedEdits:{ytype:"scaled"}}),dy:s({},r.dy,{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,role:"info",editType:"calc",description:"Transposes the z data."},xtype:{valType:"enumerated",values:["array","scaled"],role:"info",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"],role:"info",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,role:"style",editType:"calc",description:["Picks a smoothing algorithm use to smooth `z` data."].join(" ")},hoverongaps:{valType:"boolean",dflt:!0,role:"style",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",role:"info",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,role:"style",editType:"plot",description:"Sets the horizontal gap (in pixels) between bricks."},ygap:{valType:"number",dflt:0,min:0,role:"style",editType:"plot",description:"Sets the vertical gap (in pixels) between bricks."},zhoverformat:{valType:"string",dflt:"",role:"style",editType:"none",description:["Sets the hover text formatting rule using d3 formatting mini-languages","which are very similar to those in Python. See:",l].join(" ")},hovertemplate:i(),showlegend:s({},a.showlegend,{dflt:!1})},{transforms:void 0},o("",{cLetter:"z",autoColorDflt:!1}))},BEZi:function(e,t,n){"use strict";var r=n("bljh"),a=n("Nx4I"),i=n("/CZE"),o=n("g9E0"),l=n("BkK/");e.exports=function(e,t,n,s){var c=e._fullLayout;if(0!==t.length){var u,d,h,f;s&&(u=s());var p=r.ease(n.easing);return e._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(f),f=null,function(){for(var n={},r=0;r<t.length;r++){var i=t[r],o=i.plotinfo.xaxis,l=i.plotinfo.yaxis;i.xr0&&(n[o._name+".range"]=i.xr0.slice()),i.yr0&&(n[l._name+".range"]=i.yr0.slice())}return a.call("relayout",e,n).then((function(){for(var e=0;e<t.length;e++)g(t[e].plotinfo)}))}()})),d=Date.now(),f=window.requestAnimationFrame((function r(){h=Date.now();for(var i=Math.min(1,(h-d)/n.duration),o=p(i),l=0;l<t.length;l++)v(t[l],o);h-d>n.duration?(!function(){for(var n={},r=0;r<t.length;r++){var i=t[r],o=i.plotinfo.xaxis,l=i.plotinfo.yaxis;i.xr1&&(n[o._name+".range"]=i.xr1.slice()),i.yr1&&(n[l._name+".range"]=i.yr1.slice())}u&&u(),a.call("relayout",e,n).then((function(){for(var e=0;e<t.length;e++)g(t[e].plotinfo)}))}(),f=window.cancelAnimationFrame(r)):f=window.requestAnimationFrame(r)})),Promise.resolve()}function g(e){var t=e.xaxis,n=e.yaxis;c._defs.select("#"+e.clipId+"> rect").call(o.setTranslate,0,0).call(o.setScale,1,1),e.plot.call(o.setTranslate,t._offset,n._offset).call(o.setScale,1,1);var r=e.plot.selectAll(".scatterlayer .trace");r.selectAll(".point").call(o.setPointGroupScale,1,1),r.selectAll(".textpoint").call(o.setTextPointsScale,1,1),r.call(o.hideOutsideRangePoints,e)}function v(t,n){var r=t.plotinfo,a=r.xaxis,s=r.yaxis,c=a._length,u=s._length,d=!!t.xr1,h=!!t.yr1,f=[];if(d){var p=i.simpleMap(t.xr0,a.r2l),g=i.simpleMap(t.xr1,a.r2l),v=p[1]-p[0],m=g[1]-g[0];f[0]=(p[0]*(1-n)+n*g[0]-p[0])/(p[1]-p[0])*c,f[2]=c*(1-n+n*m/v),a.range[0]=a.l2r(p[0]*(1-n)+n*g[0]),a.range[1]=a.l2r(p[1]*(1-n)+n*g[1])}else f[0]=0,f[2]=c;if(h){var y=i.simpleMap(t.yr0,s.r2l),x=i.simpleMap(t.yr1,s.r2l),b=y[1]-y[0],w=x[1]-x[0];f[1]=(y[1]*(1-n)+n*x[1]-y[1])/(y[0]-y[1])*u,f[3]=u*(1-n+n*w/b),s.range[0]=a.l2r(y[0]*(1-n)+n*x[0]),s.range[1]=s.l2r(y[1]*(1-n)+n*x[1])}else f[1]=0,f[3]=u;l.drawOne(e,a,{skipTitle:!0}),l.drawOne(e,s,{skipTitle:!0}),l.redrawComponents(e,[a._id,s._id]);var _=d?c/f[2]:1,k=h?u/f[3]:1,T=d?f[0]:0,M=h?f[1]:0,A=d?f[0]/f[2]*c:0,S=h?f[1]/f[3]*u:0,C=a._offset-A,L=s._offset-S;r.clipRect.call(o.setTranslate,T,M).call(o.setScale,1/_,1/k),r.plot.call(o.setTranslate,C,L).call(o.setScale,_,k),o.setPointGroupScale(r.zoomScalePts,1/_,1/k),o.setTextPointsScale(r.zoomScaleTxt,1/_,1/k)}l.redrawComponents(e)}},BGtl:function(e,t,n){"use strict";var r=n("/CZE"),a={"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 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.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:white;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:white;","X .select-outline-2":"stroke:black;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,0.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:0.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 a){var o=i.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");r.addStyleRule(o,a[i])}},BK0j:function(e,t,n){"use strict";e.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:n("0tl7")}}},layoutAttributes:n("0tl7"),handleDefaults:n("98FX"),draw:n("iHwY")}},BVrX:function(e,t,n){"use strict";t.counter=function(e,t,n,r){var a=(t||"")+(n?"":"$"),i=!1===r?"":"^";return"xy"===e?new RegExp(i+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(i+e+"([2-9]|[1-9][0-9]+)?"+a)}},BiVG:function(e,t,n){"use strict";var r=n("Nx4I"),a=n("/CZE"),i=n("BkK/"),o=n("f56O"),l=n("OqjQ"),s=n("0GSP"),c=n("G2oM"),u=n("LQ6N"),d=n("DDrG"),h=n("1wZf"),f=n("6AZA").BADNUM;function p(e){for(var t=[],n=e.length,r=0;r<n;r++){var a=e[r];a!==f&&t.push(a)}return t}e.exports=function(e,t){var n,g,v,m,y,x,b,w,_,k=i.getFromId(e,t.xaxis||"x"),T=i.getFromId(e,t.yaxis||"y"),M=r.traceIs(t,"contour"),A=r.traceIs(t,"histogram"),S=r.traceIs(t,"gl2d"),C=M?"best":t.zsmooth;if(k._minDtick=0,T._minDtick=0,A)n=(_=o(e,t)).x,g=_.x0,v=_.dx,m=_.y,y=_.y0,x=_.dy,b=_.z;else{var L=t.z;a.isArray1D(L)?(s(t,k,T,"x","y",["z"]),n=t._x,m=t._y,L=t._z):(n=t._x=t.x?k.makeCalcdata(t,"x"):[],m=t._y=t.y?T.makeCalcdata(t,"y"):[]),g=t.x0,v=t.dx,y=t.y0,x=t.dy,b=c(L,t,k,T)}function I(e){C=t._input.zsmooth=t.zsmooth=!1,a.warn('cannot use zsmooth: "fast": '+e)}if((k.rangebreaks||T.rangebreaks)&&(b=function(e,t,n){for(var r=[],a=-1,i=0;i<n.length;i++)if(t[i]!==f){a++,r[a]=[];for(var o=0;o<n[i].length;o++)e[o]!==f&&r[a].push(n[i][o])}return r}(n,m,b),A||(n=p(n),m=p(m),t._x=n,t._y=m)),A||!M&&!t.connectgaps||(t._emptypoints=d(b),u(b,t._emptypoints)),"fast"===C)if("log"===k.type||"log"===T.type)I("log axis found");else if(!A){if(n.length){var E=(n[n.length-1]-n[0])/(n.length-1),O=Math.abs(E/100);for(w=0;w<n.length-1;w++)if(Math.abs(n[w+1]-n[w]-E)>O){I("x scale is not linear");break}}if(m.length&&"fast"===C){var D=(m[m.length-1]-m[0])/(m.length-1),P=Math.abs(D/100);for(w=0;w<m.length-1;w++)if(Math.abs(m[w+1]-m[w]-D)>P){I("y scale is not linear");break}}}var z=a.maxRowLength(b),N="scaled"===t.xtype?"":n,j=h(t,N,g,v,z,k),R="scaled"===t.ytype?"":m,F=h(t,R,y,x,b.length,T);S||(t._extremes[k._id]=i.findExtremes(k,j),t._extremes[T._id]=i.findExtremes(T,F));var B={x:j,y:F,z:b,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(N&&N.length===j.length-1&&(B.xCenter=N),R&&R.length===F.length-1&&(B.yCenter=R),A&&(B.xRanges=_.xRanges,B.yRanges=_.yRanges,B.pts=_.pts),M||l(e,t,{vals:b,cLetter:"z"}),M&&t.contours&&"heatmap"===t.contours.coloring){var H={type:"contour"===t.type?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};B.xfill=h(H,N,g,v,z,k),B.yfill=h(H,R,y,x,b.length,T)}return[B]}},"BkK/":function(e,t,n){"use strict";var r=n("bljh"),a=n("GbLo"),i=n("u3HJ"),o=n("Nx4I"),l=n("/CZE"),s=n("A3kh"),c=n("GZnn"),u=n("0RW4"),d=n("g9E0"),h=n("15jM"),f=n("2mon"),p=n("6AZA"),g=p.ONEAVGYEAR,v=p.ONEAVGMONTH,m=p.ONEDAY,y=p.ONEHOUR,x=p.ONEMIN,b=p.ONESEC,w=p.MINUS_SIGN,_=p.BADNUM,k=n("Y9zF"),T=k.MID_SHIFT,M=k.CAP_SHIFT,A=k.LINE_SPACING,S=k.OPPOSITE_SIDE,C=e.exports={};C.setConvert=n("GkA6");var L=n("C3fs"),I=n("PBw4");C.id2name=I.id2name,C.name2id=I.name2id,C.cleanId=I.cleanId,C.list=I.list,C.listIds=I.listIds,C.getFromId=I.getFromId,C.getFromTrace=I.getFromTrace;var E=n("zlYT");C.getAutoRange=E.getAutoRange,C.findExtremes=E.findExtremes;function O(e){var t=1e-4*(e[1]-e[0]);return[e[0]-t,e[1]+t]}C.coerceRef=function(e,t,n,r,a,i){var o=r.charAt(r.length-1),s=n._fullLayout._subplots[o+"axis"],c=r+"ref",u={};return a||(a=s[0]||i),i||(i=a),u[c]={valType:"enumerated",values:s.concat(i?[i]:[]),dflt:a},l.coerce(e,t,u,c)},C.coercePosition=function(e,t,n,r,a,i){var o,s;if("paper"===r||"pixel"===r)o=l.ensureNumber,s=n(a,i);else{var c=C.getFromId(t,r);s=n(a,i=c.fraction2r(i)),o=c.cleanPos}e[a]=o(s)},C.cleanPosition=function(e,t,n){return("paper"===n||"pixel"===n?l.ensureNumber:C.getFromId(t,n).cleanPos)(e)},C.redrawComponents=function(e,t){t=t||C.listIds(e);var n=e._fullLayout;function r(r,a,i,l){for(var s=o.getComponentMethod(r,a),c={},u=0;u<t.length;u++)for(var d=n[C.id2name(t[u])][i],h=0;h<d.length;h++){var f=d[h];if(!c[f]&&(s(e,f),c[f]=1,l))return}}r("annotations","drawOne","_annIndices"),r("shapes","drawOne","_shapeIndices"),r("images","draw","_imgIndices",!0)};var D=C.getDataConversions=function(e,t,n,r){var a,i="x"===n||"y"===n||"z"===n?n:r;if(Array.isArray(i)){if(a={type:L(r),_categories:[]},C.setConvert(a),"category"===a.type)for(var o=0;o<r.length;o++)a.d2c(r[o])}else a=C.getFromTrace(e,t,i);return a?{d2c:a.d2c,c2d:a.c2d}:"ids"===i?{d2c:z,c2d:z}:{d2c:P,c2d:P}};function P(e){return+e}function z(e){return String(e)}C.getDataToCoordFunc=function(e,t,n,r){return D(e,t,n,r).d2c},C.counterLetter=function(e){var t=e.charAt(0);return"x"===t?"y":"y"===t?"x":void 0},C.minDtick=function(e,t,n,r){-1===["log","category","multicategory"].indexOf(e.type)&&r?void 0===e._minDtick?(e._minDtick=t,e._forceTick0=n):e._minDtick&&((e._minDtick/t+1e-6)%1<2e-6&&((n-e._forceTick0)/t%1+1.000001)%1<2e-6?(e._minDtick=t,e._forceTick0=n):((t/e._minDtick+1e-6)%1>2e-6||((n-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},C.saveRangeInitial=function(e,t){for(var n=C.list(e,"",!0),r=!1,a=0;a<n.length;a++){var i=n[a],o=void 0===i._rangeInitial,l=o||!(i.range[0]===i._rangeInitial[0]&&i.range[1]===i._rangeInitial[1]);(o&&!1===i.autorange||t&&l)&&(i._rangeInitial=i.range.slice(),r=!0)}return r},C.saveShowSpikeInitial=function(e,t){for(var n=C.list(e,"",!0),r=!1,a="on",i=0;i<n.length;i++){var o=n[i],l=void 0===o._showSpikeInitial,s=l||!(o.showspikes===o._showspikes);(l||t&&s)&&(o._showSpikeInitial=o.showspikes,r=!0),"on"!==a||o.showspikes||(a="off")}return e._fullLayout._cartesianSpikesEnabled=a,r},C.autoBin=function(e,t,n,r,i,o){var s,c=l.aggNums(Math.min,null,e),u=l.aggNums(Math.max,null,e);if("category"===t.type||"multicategory"===t.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:u-c};if(i||(i=t.calendar),s="log"===t.type?{type:"linear",range:[c,u]}:{type:t.type,range:l.simpleMap([c,u],t.c2r,0,i),calendar:i},C.setConvert(s),o=o&&f.dtick(o,s.type))s.dtick=o,s.tick0=f.tick0(void 0,s.type,i);else{var d;if(n)d=(u-c)/n;else{var h=l.distinctVals(e),p=Math.pow(10,Math.floor(Math.log(h.minDiff)/Math.LN10)),g=p*l.roundUp(h.minDiff/p,[.9,1.9,4.9,9.9],!0);d=Math.max(g,2*l.stdev(e)/Math.pow(e.length,r?.25:.4)),a(d)||(d=1)}C.autoTicks(s,d)}var v,y=s.dtick,x=C.tickIncrement(C.tickFirst(s),y,"reverse",i);if("number"==typeof y)v=(x=function(e,t,n,r,i){var o=0,l=0,s=0,c=0;function u(t){return(1+100*(t-e)/n.dtick)%100<2}for(var d=0;d<t.length;d++)t[d]%1==0?s++:a(t[d])||c++,u(t[d])&&o++,u(t[d]+n.dtick/2)&&l++;var h=t.length-c;if(s===h&&"date"!==n.type)n.dtick<1?e=r-.5*n.dtick:(e-=.5)+n.dtick<r&&(e+=n.dtick);else if(l<.1*h&&(o>.3*h||u(r)||u(i))){var f=n.dtick/2;e+=e+f<r?f:-f}return e}(x,e,s,c,u))+(1+Math.floor((u-x)/y))*y;else for("M"===s.dtick.charAt(0)&&(x=function(e,t,n,r,a){var i=l.findExactDates(t,a);if(i.exactDays>.8){var o=Number(n.substr(1));i.exactYears>.8&&o%12==0?e=C.tickIncrement(e,"M6","reverse")+1.5*m:i.exactMonths>.8?e=C.tickIncrement(e,"M1","reverse")+15.5*m:e-=m/2;var s=C.tickIncrement(e,n);if(s<=r)return s}return e}(x,e,y,c,i)),v=x,0;v<=u;)v=C.tickIncrement(v,y,!1,i);return{start:t.c2r(x,0,i),end:t.c2r(v,0,i),size:y,_dataSpan:u-c}},C.prepTicks=function(e,t){var n=l.simpleMap(e.range,e.r2l,void 0,void 0,t);if("auto"===e.tickmode||!e.dtick){var r,a=e.nticks;a||("category"===e.type||"multicategory"===e.type?(r=e.tickfont?1.2*(e.tickfont.size||12):15,a=e._length/r):(r="y"===e._id.charAt(0)?40:80,a=l.constrain(e._length/r,4,9)+1),"radialaxis"===e._name&&(a*=2)),"array"===e.tickmode&&(a*=100),e._roughDTick=(Math.abs(n[1]-n[0])-(e._lBreaks||0))/a,C.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}e.tick0||(e.tick0="date"===e.type?"2000-01-01":0),"date"===e.type&&e.dtick<.1&&(e.dtick=.1),U(e)},C.calcTicks=function(e,t){C.prepTicks(e,t);var n=l.simpleMap(e.range,e.r2l,void 0,void 0,t);if("array"===e.tickmode)return function(e){var t=e.tickvals,n=e.ticktext,r=new Array(t.length),a=O(l.simpleMap(e.range,e.r2l)),i=Math.min(a[0],a[1]),o=Math.max(a[0],a[1]),s=0;Array.isArray(n)||(n=[]);var c="category"===e.type?e.d2l_noadd:e.d2l;"log"===e.type&&"L"!==String(e.dtick).charAt(0)&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var u=0;u<t.length;u++){var d=c(t[u]);d>i&&d<o&&(void 0===n[u]?r[s]=C.tickText(e,d):r[s]=q(e,d,String(n[u])),s++)}s<t.length&&r.splice(s,t.length-s);e.rangebreaks&&(r=r.filter((function(t){return e.maskBreaks(t.x)!==_})));return r}(e);e._tmin=C.tickFirst(e,t);var r=O(n),i=r[0],o=r[1],s=n[1]<n[0];if(e._tmin<i!==s)return[];"category"!==e.type&&"multicategory"!==e.type||(o=s?Math.max(-.5,o):Math.min(e._categories.length-.5,o));var c,u="log"===e.type&&!(a(e.dtick)||"L"===e.dtick.charAt(0));if(function(){var t=null,n=Math.max(1e3,e._length||0);c=[];for(var r=e._tmin;(s?r>=o:r<=o)&&!(c.length>n||r===t);r=C.tickIncrement(r,e.dtick,s,e.calendar)){t=r;var a=!1;u&&r!==(0|r)&&(a=!0),c.push({minor:a,value:r})}}(),e.rangebreaks){var d=c.length;if(d){var h=0;"auto"===e.tickmode&&(h=("y"===e._id.charAt(0)?2:6)*(e.tickfont?e.tickfont.size:12));for(var f,p=[],g=s?1:-1,v=s?d-1:0,m=s?0:d-1;g*m<=g*v;m+=g){var y=c[m];if(e.maskBreaks(y.value)!==_||(y.value=se(y.value,e),!e._rl||e._rl[0]!==y.value&&e._rl[1]!==y.value)){var x=e.c2p(y.value);x===f?p[p.length-1].value<y.value&&(p[p.length-1]=y):(void 0===f||Math.abs(x-f)>h)&&(f=x,p.push(y))}}c=p.reverse()}}le(e)&&360===Math.abs(n[1]-n[0])&&c.pop(),e._tmax=(c[c.length-1]||{}).value,e._prevDateHead="",e._inCalcTicks=!0;for(var b=new Array(c.length),w=0;w<c.length;w++){var k=c[w].minor,T=c[w].value;b[w]=C.tickText(e,T,!1,k)}return e._inCalcTicks=!1,b};var N=[2,5,10],j=[1,2,3,6,12],R=[1,2,5,10,15,30],F=[1,2,3,7,14],B=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],H=[-.301,0,.301,.699,1],V=[15,30,45,90,180];function G(e,t,n){return t*l.roundUp(e/t,n)}function U(e){var t=e.dtick;if(e._tickexponent=0,a(t)||"string"==typeof t||(t=1),"category"!==e.type&&"multicategory"!==e.type||(e._tickround=null),"date"===e.type){var n=e.r2l(e.tick0),r=e.l2r(n).replace(/(^-|i)/g,""),i=r.length;if("M"===String(t).charAt(0))i>10||"01-01"!==r.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>=x&&i<=16||t>=y)e._tickround="M";else if(t>=b&&i<=19||t>=x)e._tickround="S";else{var o=e.l2r(n+t).replace(/^-/,"").length;e._tickround=Math.max(i,o)-20,e._tickround<0&&(e._tickround=4)}}else if(a(t)||"L"===t.charAt(0)){var l=e.range.map(e.r2d||Number);a(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);Math.abs(c)>3&&(W(e.exponentformat)&&!Y(c)?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function q(e,t,n){var r=e.tickfont||{};return{x:t,dx:0,dy:0,text:n||"",fontSize:r.size,font:r.family,fontColor:r.color}}C.autoTicks=function(e,t){var n;function r(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=l.dateTick0(e.calendar);var i=2*t;i>g?(t/=g,n=r(10),e.dtick="M"+12*G(t,n,N)):i>v?(t/=v,e.dtick="M"+G(t,1,j)):i>m?(e.dtick=G(t,m,e._hasDayOfWeekBreaks?[1,2,7,14]:F),e.tick0=l.dateTick0(e.calendar,!0)):i>y?e.dtick=G(t,y,j):i>x?e.dtick=G(t,x,R):i>b?e.dtick=G(t,b,R):(n=r(10),e.dtick=G(t,n,N))}else if("log"===e.type){e.tick0=0;var o=l.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(o[1]-o[0])<1){var s=1.5*Math.abs((o[1]-o[0])/t);t=Math.abs(Math.pow(10,o[1])-Math.pow(10,o[0]))/s,n=r(10),e.dtick="L"+G(t,n,N)}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))):le(e)?(e.tick0=0,n=1,e.dtick=G(t,n,V)):(e.tick0=0,n=r(10),e.dtick=G(t,n,N));if(0===e.dtick&&(e.dtick=1),!a(e.dtick)&&"string"!=typeof e.dtick){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}},C.tickIncrement=function(e,t,n,i){var o=n?-1:1;if(a(t))return 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 u="D2"===t?H:B,d=e+.01*o,h=l.roundUp(l.mod(d,1),u,n);return Math.floor(d)+Math.log(r.round(Math.pow(10,h),1))/Math.LN10}throw"unrecognized dtick "+String(t)},C.tickFirst=function(e,t){var n=e.r2l||Number,i=l.simpleMap(e.range,n,void 0,void 0,t),o=i[1]<i[0],s=o?Math.floor:Math.ceil,c=O(i)[0],u=e.dtick,d=n(e.tick0);if(a(u)){var h=s((c-d)/u)*u+d;return"category"!==e.type&&"multicategory"!==e.type||(h=l.constrain(h,0,e._categories.length-1)),h}var f=u.charAt(0),p=Number(u.substr(1));if("M"===f){for(var g,v,m,y=0,x=d;y<10;){if(((g=C.tickIncrement(x,u,o,e.calendar))-c)*(x-c)<=0)return o?Math.min(x,g):Math.max(x,g);v=(c-(x+g)/2)/(g-x),m=f+(Math.abs(Math.round(v))||1)*p,x=C.tickIncrement(x,m,v<0?!o:o,e.calendar),y++}return l.error("tickFirst did not converge",e),x}if("L"===f)return Math.log(s((Math.pow(10,c)-d)/p)*p+d)/Math.LN10;if("D"===f){var b="D2"===u?H:B,w=l.roundUp(l.mod(c,1),b,o);return Math.floor(c)+Math.log(r.round(Math.pow(10,w),1))/Math.LN10}throw"unrecognized dtick "+String(u)},C.tickText=function(e,t,n,r){var i,o=q(e,t),s="array"===e.tickmode,c=n||s,u=e.type,d="category"===u?e.d2l_noadd:e.d2l;if(s&&Array.isArray(e.ticktext)){var h=l.simpleMap(e.range,e.r2l),f=(Math.abs(h[1]-h[0])-(e._lBreaks||0))/1e4;for(i=0;i<e.ticktext.length&&!(Math.abs(t-d(e.tickvals[i]))<f);i++);if(i<e.ticktext.length)return o.text=String(e.ticktext[i]),o}function p(r){if(void 0===r)return!0;if(n)return"none"===r;var a={first:e._tmin,last:e._tmax}[r];return"all"!==r&&t!==a}var g=n?"never":"none"!==e.exponentformat&&p(e.showexponent)?"hide":"";if("date"===u?function(e,t,n,r){var i=e._tickround,o=n&&e.hoverformat||C.getTickFormat(e);r&&(i=a(i)?4:{y:"m",m:"d",d:"M",M:"S",S:4}[i]);var s,c=l.formatDate(t.x,o,i,e._dateFormat,e.calendar,e._extraFormat),u=c.indexOf("\n");-1!==u&&(s=c.substr(u+1),c=c.substr(0,u));r&&("00:00:00"===c||"00:00"===c?(c=s,s=""):8===c.length&&(c=c.replace(/:00$/,"")));s&&(n?"d"===i?c+=", "+s:c=s+(c?", "+c:""):e._inCalcTicks&&s===e._prevDateHead||(c+="<br>"+s,e._prevDateHead=s));t.text=c}(e,o,n,c):"log"===u?function(e,t,n,r,i){var o=e.dtick,s=t.x,c=e.tickformat,u="string"==typeof o&&o.charAt(0);"never"===i&&(i="");r&&"L"!==u&&(o="L3",u="L");if(c||"L"===u)t.text=X(Math.pow(10,s),e,i,r);else if(a(o)||"D"===u&&l.mod(s+.01,1)<.1){var d=Math.round(s),h=Math.abs(d),f=e.exponentformat;"power"===f||W(f)&&Y(d)?(t.text=0===d?1:1===d?"10":"10<sup>"+(d>1?"":w)+h+"</sup>",t.fontSize*=1.25):("e"===f||"E"===f)&&h>2?t.text="1"+f+(d>0?"+":w)+h:(t.text=X(Math.pow(10,s),e,"","fakehover"),"D1"===o&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==u)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,g):"category"===u?function(e,t){var n=e._categories[Math.round(t.x)];void 0===n&&(n="");t.text=String(n)}(e,o):"multicategory"===u?function(e,t,n){var r=Math.round(t.x),a=e._categories[r]||[],i=void 0===a[1]?"":String(a[1]),o=void 0===a[0]?"":String(a[0]);n?t.text=o+" - "+i:(t.text=i,t.text2=o)}(e,o,n):le(e)?function(e,t,n,r,a){if("radians"!==e.thetaunit||n)t.text=X(t.x,e,a,r);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}var n=function(e){for(var n=1;!t(Math.round(e*n)/n,e);)n*=10;return n}(e),r=e*n,a=Math.abs(function e(n,r){return t(r,0)?n:e(r,n%r)}(r,n));return[Math.round(r/a),Math.round(n/a)]}(i);if(o[1]>=100)t.text=X(l.deg2rad(t.x),e,a,r);else{var s=t.x<0;1===o[1]?1===o[0]?t.text="ฯ":t.text=o[0]+"ฯ":t.text=["<sup>",o[0],"</sup>","โ","<sub>",o[1],"</sub>","ฯ"].join(""),s&&(t.text=w+t.text)}}}}(e,o,n,c,g):function(e,t,n,r,a){"never"===a?a="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide");t.text=X(t.x,e,a,r)}(e,o,0,c,g),r||(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 v=function(t){var n=e.l2p(t);return n>=0&&n<=e._length?t:null};o.xbnd=[v(o.x-.5),v(o.x+e.dtick-.5)]}return o},C.hoverLabelText=function(e,t,n){if(n!==_&&n!==t)return C.hoverLabelText(e,t)+" - "+C.hoverLabelText(e,n);var r="log"===e.type&&t<=0,a=C.tickText(e,e.c2l(r?-t:t),"hover").text;return r?0===t?"0":w+a:a};var Z=["f","p","n","ฮผ","m","","k","M","G","T"];function W(e){return"SI"===e||"B"===e}function Y(e){return e>14||e<-15}function X(e,t,n,r){var i=e<0,o=t._tickround,s=n||t.exponentformat||"B",c=t._tickexponent,u=C.getTickFormat(t),d=t.separatethousands;if(r){var h={exponentformat:s,dtick:"none"===t.showexponent?t.dtick:a(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};U(h),o=(Number(h._tickround)||0)+4,c=h._tickexponent,t.hoverformat&&(u=t.hoverformat)}if(u)return t._numFormat(u)(e).replace(/-/g,w);var f,p=Math.pow(10,-o)/2;if("none"===s&&(c=0),(e=Math.abs(e))<p)e="0",i=!1;else{if(e+=p,c&&(e*=Math.pow(10,-c),o+=c),0===o)e=String(Math.floor(e));else if(o<0){e=(e=String(Math.round(e))).substr(0,e.length+o);for(var g=o;g<0;g++)e+="0"}else{var v=(e=String(e)).indexOf(".")+1;v&&(e=e.substr(0,v+o).replace(/\.?0+$/,""))}e=l.numSeparate(e,t._separators,d)}c&&"hide"!==s&&(W(s)&&Y(c)&&(s="power"),f=c<0?w+-c:"power"!==s?"+"+c:String(c),"e"===s||"E"===s?e+=s+f:"power"===s?e+="ร10<sup>"+f+"</sup>":"B"===s&&9===c?e+="B":W(s)&&(e+=Z[c/3+5]));return i?w+e:e}function $(e,t){for(var n=[],r={},a=0;a<t.length;a++){var i=t[a];r[i.text2]?r[i.text2].push(i.x):r[i.text2]=[i.x]}for(var o in r)n.push(q(e,l.interp(r[o],.5),o));return n}function J(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}function K(e){var t=e.title.font.size,n=(e.title.text.match(s.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?n?t*(M+n*A):t*M:n?t*(n+1)*A:t}function Q(e,t){var n=e.l2p(t);return n>1&&n<e._length-1}function ee(e){var t=r.select(e),n=t.select(".text-math-group");return n.empty()?t.select("text"):n}function te(e){return e._id+".automargin"}function ne(e){return te(e)+".mirror"}function re(e){return e._id+".rangeslider"}function ae(e,t){for(var n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n])}function ie(e,t,n){var r,a,i=[],o=[],s=e.layout;for(r=0;r<t.length;r++)i.push(C.getFromId(e,t[r]));for(r=0;r<n.length;r++)o.push(C.getFromId(e,n[r]));var c=Object.keys(h),u=["anchor","domain","overlaying","position","side","tickangle","editType"],d=["linear","log"];for(r=0;r<c.length;r++){var f=c[r],p=i[0][f],g=o[0][f],v=!0,m=!1,y=!1;if("_"!==f.charAt(0)&&"function"!=typeof p&&-1===u.indexOf(f)){for(a=1;a<i.length&&v;a++){var x=i[a][f];"type"===f&&-1!==d.indexOf(p)&&-1!==d.indexOf(x)&&p!==x?m=!0:x!==p&&(v=!1)}for(a=1;a<o.length&&v;a++){var b=o[a][f];"type"===f&&-1!==d.indexOf(g)&&-1!==d.indexOf(b)&&g!==b?y=!0:o[a][f]!==g&&(v=!1)}v&&(m&&(s[i[0]._name].type="linear"),y&&(s[o[0]._name].type="linear"),oe(s,f,i,o,e._fullLayout._dfltTitle))}}for(r=0;r<e._fullLayout.annotations.length;r++){var w=e._fullLayout.annotations[r];-1!==t.indexOf(w.xref)&&-1!==n.indexOf(w.yref)&&l.swapAttrs(s.annotations[r],["?"])}}function oe(e,t,n,r,a){var i,o=l.nestedProperty,s=o(e[n[0]._name],t).get(),c=o(e[r[0]._name],t).get();for("title"===t&&(s&&s.text===a.x&&(s.text=a.y),c&&c.text===a.y&&(c.text=a.x)),i=0;i<n.length;i++)o(e,n[i]._name+"."+t).set(c);for(i=0;i<r.length;i++)o(e,r[i]._name+"."+t).set(s)}function le(e){return"angularaxis"===e._id}function se(e,t){for(var n=t._rangebreaks.length,r=0;r<n;r++){var a=t._rangebreaks[r];if(e>=a.min&&e<a.max)return a.max}return e}C.getTickFormat=function(e){var t,n,r,a,i,o,l,s;function c(e){return"string"!=typeof e?e:Number(e.replace("M",""))*v}function u(e,t){var n=["L","D"];if(typeof e==typeof t){if("number"==typeof e)return e-t;var r=n.indexOf(e.charAt(0)),a=n.indexOf(t.charAt(0));return r===a?Number(e.replace(/(L|D)/g,""))-Number(t.replace(/(L|D)/g,"")):r-a}return"number"==typeof e?1:-1}function d(e,t){var n=null===t[0],r=null===t[1],a=u(e,t[0])>=0,i=u(e,t[1])<=0;return(n||a)&&(r||i)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t<e.tickformatstops.length;t++)if((r=e.tickformatstops[t]).enabled&&(a=e.dtick,i=r.dtickrange,o=void 0,l=void 0,s=void 0,o=c||function(e){return e},l=i[0],s=i[1],(!l&&"number"!=typeof l||o(l)<=o(a))&&(!s&&"number"!=typeof s||o(s)>=o(a)))){n=r;break}break;case"log":for(t=0;t<e.tickformatstops.length;t++)if((r=e.tickformatstops[t]).enabled&&d(e.dtick,r.dtickrange)){n=r;break}}return n?n.value:e.tickformat},C.getSubplots=function(e,t){var n=e._fullLayout._subplots,r=n.cartesian.concat(n.gl2d||[]),a=t?C.findSubplotsWithAxis(r,t):r;return a.sort((function(e,t){var n=e.substr(1).split("y"),r=t.substr(1).split("y");return n[0]===r[0]?+n[1]-+r[1]:+n[0]-+r[0]})),a},C.findSubplotsWithAxis=function(e,t){for(var n=new RegExp("x"===t._id.charAt(0)?"^"+t._id+"y":t._id+"$"),r=[],a=0;a<e.length;a++){var i=e[a];n.test(i)&&r.push(i)}return r},C.makeClipPaths=function(e){var t=e._fullLayout;if(!t._hasOnlyLargeSploms){var n,a,i={_offset:0,_length:t.width,_id:""},o={_offset:0,_length:t.height,_id:""},l=C.list(e,"x",!0),s=C.list(e,"y",!0),c=[];for(n=0;n<l.length;n++)for(c.push({x:l[n],y:o}),a=0;a<s.length;a++)0===n&&c.push({x:i,y:s[a]}),c.push({x:l[n],y:s[a]});var u=t._clips.selectAll(".axesclip").data(c,(function(e){return e.x._id+e.y._id}));u.enter().append("clipPath").classed("axesclip",!0).attr("id",(function(e){return"clip"+t._uid+e.x._id+e.y._id})).append("rect"),u.exit().remove(),u.each((function(e){r.select(this).select("rect").attr({x:e.x._offset||0,y:e.y._offset||0,width:e.x._length||1,height:e.y._length||1})}))}},C.draw=function(e,t,n){var r=e._fullLayout;"redraw"===t&&r._paper.selectAll("g.subplot").each((function(e){var t=e[0],n=r._plots[t],a=n.xaxis,i=n.yaxis;n.xaxislayer.selectAll("."+a._id+"tick").remove(),n.yaxislayer.selectAll("."+i._id+"tick").remove(),n.xaxislayer.selectAll("."+a._id+"tick2").remove(),n.yaxislayer.selectAll("."+i._id+"tick2").remove(),n.xaxislayer.selectAll("."+a._id+"divider").remove(),n.yaxislayer.selectAll("."+i._id+"divider").remove(),n.gridlayer&&n.gridlayer.selectAll("path").remove(),n.zerolinelayer&&n.zerolinelayer.selectAll("path").remove(),r._infolayer.select(".g-"+a._id+"title").remove(),r._infolayer.select(".g-"+i._id+"title").remove()}));var a=t&&"redraw"!==t?t:C.listIds(e);return l.syncOrAsync(a.map((function(t){return function(){if(t){var r=C.getFromId(e,t),a=C.drawOne(e,r,n);return r._r=r.range.slice(),r._rl=l.simpleMap(r._r,r.r2l),a}}})))},C.drawOne=function(e,t,n){var r,a,s;n=n||{},t.setScale();var h=e._fullLayout,f=t._id,p=f.charAt(0),g=C.counterLetter(f),v=h._plots[t._mainSubplot];if(v){var m=v[p+"axislayer"],y=t._mainLinePosition,x=t._mainMirrorPosition,b=t._vals=C.calcTicks(t),w=[t.mirror,y,x].join("_");for(r=0;r<b.length;r++)b[r].axInfo=w;t._selections={},t._tickAngles&&(t._prevTickAngles=t._tickAngles),t._tickAngles={},t._depth=null;var _={};if(t.visible){var k,T,M=C.makeTransFn(t);if("boundaries"===t.tickson){var L=function(e,t){var n,r=[],a=function(e,t){var n=e.xbnd[t];null!==n&&r.push(l.extendFlat({},e,{x:n}))};if(t.length){for(n=0;n<t.length;n++)a(t[n],0);a(t[n-1],1)}return r}(0,b);T=C.clipEnds(t,L),k="inside"===t.ticks?T:L}else T=C.clipEnds(t,b),k="inside"===t.ticks?T:b;var I=t._gridVals=T,E=function(e,t){var n,r,a=[],i=t.length&&t[t.length-1].x<t[0].x,o=function(e,t){var n=e.xbnd[t];null!==n&&a.push(l.extendFlat({},e,{x:n}))};if(e.showdividers&&t.length){for(n=0;n<t.length;n++){var s=t[n];s.text2!==r&&o(s,i?1:0),r=s.text2}o(t[n-1],i?0:1)}return a}(t,b);if(!h._hasOnlyLargeSploms){var O=t._subplotsWith,D={};for(r=0;r<O.length;r++){a=O[r];var P=(s=h._plots[a])[g+"axis"],z=P._mainAxis._id;if(!D[z]){D[z]=1;var N="x"===p?"M0,"+P._offset+"v"+P._length:"M"+P._offset+",0h"+P._length;C.drawGrid(e,t,{vals:I,counterAxis:P,layer:s.gridlayer.select("."+f),path:N,transFn:M}),C.drawZeroLine(e,t,{counterAxis:P,layer:s.zerolinelayer,path:N,transFn:M})}}}var j=C.getTickSigns(t),R=[];if(t.ticks){var F,B,H,V=C.makeTickPath(t,y,j[2]);if(t._anchorAxis&&t.mirror&&!0!==t.mirror?(F=C.makeTickPath(t,x,j[3]),B=V+F):(F="",B=V),t.showdividers&&"outside"===t.ticks&&"boundaries"===t.tickson){var G={};for(r=0;r<E.length;r++)G[E[r].x]=1;H=function(e){return G[e.x]?F:B}}else H=B;C.drawTicks(e,t,{vals:k,layer:m,path:H,transFn:M}),"allticks"===t.mirror&&(R=Object.keys(t._linepositions||{}))}for(r=0;r<R.length;r++){a=R[r],s=h._plots[a];var U=t._linepositions[a]||[],q=C.makeTickPath(t,U[0],j[0])+C.makeTickPath(t,U[1],j[1]);C.drawTicks(e,t,{vals:k,layer:s[p+"axislayer"],path:q,transFn:M})}var Z=[];if(Z.push((function(){return C.drawLabels(e,t,{vals:b,layer:m,transFn:M,labelFns:C.makeLabelFns(t,y)})})),"multicategory"===t.type){var W={x:2,y:10}[p];Z.push((function(){var n={x:"height",y:"width"}[p],r=X()[n]+W+(t._tickAngles[f+"tick"]?t.tickfont.size*A:0);return C.drawLabels(e,t,{vals:$(t,b),layer:m,cls:f+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:M,labelFns:C.makeLabelFns(t,y+r*j[4])})})),Z.push((function(){return t._depth=j[4]*(X("tick2")[t.side]-y),function(e,t,n){var r=t._id+"divider",a=n.vals,i=n.layer.selectAll("path."+r).data(a,J);i.exit().remove(),i.enter().insert("path",":first-child").classed(r,1).classed("crisp",1).call(u.stroke,t.dividercolor).style("stroke-width",d.crispRound(e,t.dividerwidth,1)+"px"),i.attr("transform",n.transFn).attr("d",n.path)}(e,t,{vals:E,layer:m,path:C.makeTickPath(t,y,j[4],t._depth),transFn:M})}))}else t.title.hasOwnProperty("standoff")&&Z.push((function(){t._depth=j[4]*(X()[t.side]-y)}));var Y=o.getComponentMethod("rangeslider","isVisible")(t);return Z.push((function(){var n,r,a,l,s=t.side.charAt(0),c=S[t.side].charAt(0),u=C.getPxPosition(e,t),d="outside"===t.ticks?t.ticklen:0;if((t.automargin||Y)&&("multicategory"===t.type?n=X("tick2"):(n=X(),"x"===p&&"b"===s&&(t._depth=Math.max(n.width>0?n.bottom-u:0,d)))),t.automargin){r={x:0,y:0,r:0,l:0,t:0,b:0};var f=[0,1];if("x"===p){if("b"===s?r[s]=t._depth:(r[s]=t._depth=Math.max(n.width>0?u-n.top:0,d),f.reverse()),n.width>0){var v=n.right-(t._offset+t._length);v>0&&(r.xr=1,r.r=v);var m=t._offset-n.left;m>0&&(r.xl=0,r.l=m)}}else if("l"===s?r[s]=t._depth=Math.max(n.height>0?u-n.left:0,d):(r[s]=t._depth=Math.max(n.height>0?n.right-u:0,d),f.reverse()),n.height>0){var y=n.bottom-(t._offset+t._length);y>0&&(r.yb=0,r.b=y);var x=t._offset-n.top;x>0&&(r.yt=1,r.t=x)}r[g]="free"===t.anchor?t.position:t._anchorAxis.domain[f[0]],t.title.text!==h._dfltTitle[p]&&(r[s]+=K(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&((a={x:0,y:0,r:0,l:0,t:0,b:0})[c]=t.linewidth,t.mirror&&!0!==t.mirror&&(a[c]+=d),!0===t.mirror||"ticks"===t.mirror?a[g]=t._anchorAxis.domain[f[1]]:"all"!==t.mirror&&"allticks"!==t.mirror||(a[g]=[t._counterDomainMin,t._counterDomainMax][f[1]]))}Y&&(l=o.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),i.autoMargin(e,te(t),r),i.autoMargin(e,ne(t),a),i.autoMargin(e,re(t),l)})),n.skipTitle||Y&&"bottom"===t.side||Z.push((function(){return function(e,t){var n,r=e._fullLayout,a=t._id,i=a.charAt(0),o=t.title.font.size;if(t.title.hasOwnProperty("standoff"))n=t._depth+t.title.standoff+K(t);else{if("multicategory"===t.type)n=t._depth;else{n=10+1.5*o+(t.linewidth?t.linewidth-1:0)}n+="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 l,s,u,h,f=C.getPxPosition(e,t);"x"===i?(s=t._offset+t._length/2,u="top"===t.side?f-n:f+n):(u=t._offset+t._length/2,s="right"===t.side?f+n:f-n,l={rotate:"-90",offset:0});if("multicategory"!==t.type){var p=t._selections[t._id+"tick"];if(h={selection:p,side:t.side},p&&p.node()&&p.node().parentNode){var g=d.getTranslate(p.node().parentNode);h.offsetLeft=g.x,h.offsetTop=g.y}t.title.hasOwnProperty("standoff")&&(h.pad=0)}return c.draw(e,a+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:h,transform:l,attributes:{x:s,y:u,"text-anchor":"middle"}})}(e,t)})),l.syncOrAsync(Z)}}function X(e){var n=f+(e||"tick");return _[n]||(_[n]=function(e,t){var n,r,a,i;e._selections[t].size()?(n=1/0,r=-1/0,a=1/0,i=-1/0,e._selections[t].each((function(){var e=ee(this),t=d.bBox(e.node().parentNode);n=Math.min(n,t.top),r=Math.max(r,t.bottom),a=Math.min(a,t.left),i=Math.max(i,t.right)}))):(n=0,r=0,a=0,i=0);return{top:n,bottom:r,left:a,right:i,height:r-n,width:i-a}}(t,n)),_[n]}},C.getTickSigns=function(e){var t=e._id.charAt(0),n={x:"top",y:"right"}[t],r=e.side===n?1:-1,a=[-1,1,r,-r];return"inside"!==e.ticks==("x"===t)&&(a=a.map((function(e){return-e}))),e.side&&a.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),a},C.makeTransFn=function(e){var t=e._id.charAt(0),n=e._offset;return"x"===t?function(t){return"translate("+(n+e.l2p(t.x))+",0)"}:function(t){return"translate(0,"+(n+e.l2p(t.x))+")"}},C.makeTickPath=function(e,t,n,r){r=void 0!==r?r:e.ticklen;var a=e._id.charAt(0),i=(e.linewidth||1)/2;return"x"===a?"M0,"+(t+i*n)+"v"+r*n:"M"+(t+i*n)+",0h"+r*n},C.makeLabelFns=function(e,t,n){var r=e._id.charAt(0),i="boundaries"!==e.tickson&&"outside"===e.ticks,o=0,s=0;if(i&&(o+=e.ticklen),n&&"outside"===e.ticks){var c=l.deg2rad(n);o=e.ticklen*Math.cos(c)+1,s=e.ticklen*Math.sin(c)}e.showticklabels&&(i||e.showline)&&(o+=.2*e.tickfont.size);var u,d,h,f,p={labelStandoff:o+=(e.linewidth||1)/2,labelShift:s};return"x"===r?(f="bottom"===e.side?1:-1,u=s*f,d=t+o*f,h="bottom"===e.side?1:-.2,p.xFn=function(e){return e.dx+u},p.yFn=function(e){return e.dy+d+e.fontSize*h},p.anchorFn=function(e,t){return a(t)&&0!==t&&180!==t?t*f<0?"end":"start":"middle"},p.heightFn=function(t,n,r){return n<-60||n>60?-.5*r:"top"===e.side?-r:0}):"y"===r&&(f="right"===e.side?1:-1,u=o,d=-s*f,h=90===Math.abs(e.tickangle)?.5:0,p.xFn=function(e){return e.dx+t+(u+e.fontSize*h)*f},p.yFn=function(e){return e.dy+d+e.fontSize*T},p.anchorFn=function(t,n){return a(n)&&90===Math.abs(n)?"middle":"right"===e.side?"start":"end"},p.heightFn=function(t,n,r){return(n*="left"===e.side?1:-1)<-30?-r:n<30?-.5*r:0}),p},C.drawTicks=function(e,t,n){n=n||{};var r=t._id+"tick",a=n.layer.selectAll("path."+r).data(t.ticks?n.vals:[],J);a.exit().remove(),a.enter().append("path").classed(r,1).classed("ticks",1).classed("crisp",!1!==n.crisp).call(u.stroke,t.tickcolor).style("stroke-width",d.crispRound(e,t.tickwidth,1)+"px").attr("d",n.path),a.attr("transform",n.transFn)},C.drawGrid=function(e,t,n){n=n||{};var r=t._id+"grid",a=n.vals,i=n.counterAxis;if(!1===t.showgrid)a=[];else if(i&&C.shouldShowZeroLine(e,t,i))for(var o="array"===t.tickmode,l=0;l<a.length;l++){var s=a[l].x;if(o?!s:Math.abs(s)<t.dtick/100){if(a=a.slice(0,l).concat(a.slice(l+1)),!o)break;l--}}var c=n.layer.selectAll("path."+r).data(a,J);c.exit().remove(),c.enter().append("path").classed(r,1).classed("crisp",!1!==n.crisp),t._gw=d.crispRound(e,t.gridwidth,1),c.attr("transform",n.transFn).attr("d",n.path).call(u.stroke,t.gridcolor||"#ddd").style("stroke-width",t._gw+"px"),"function"==typeof n.path&&c.attr("d",n.path)},C.drawZeroLine=function(e,t,n){n=n||n;var r=t._id+"zl",a=C.shouldShowZeroLine(e,t,n.counterAxis),i=n.layer.selectAll("path."+r).data(a?[{x:0,id:t._id}]:[]);i.exit().remove(),i.enter().append("path").classed(r,1).classed("zl",1).classed("crisp",!1!==n.crisp).each((function(){n.layer.selectAll("path").sort((function(e,t){return I.idSort(e.id,t.id)}))})),i.attr("transform",n.transFn).attr("d",n.path).call(u.stroke,t.zerolinecolor||u.defaultLine).style("stroke-width",d.crispRound(e,t.zerolinewidth,t._gw||1)+"px")},C.drawLabels=function(e,t,n){n=n||{};var i=e._fullLayout,o=t._id,c=o.charAt(0),u=n.cls||o+"tick",h=n.vals,f=n.labelFns,p=n.secondary?0:t.tickangle,g=(t._prevTickAngles||{})[u],v=n.layer.selectAll("g."+u).data(t.showticklabels?h:[],J),m=[];function y(e,t){e.each((function(e){var i=r.select(this),o=i.select(".text-math-group"),l=f.anchorFn(e,t),c=n.transFn.call(i.node(),e)+(a(t)&&0!=+t?" rotate("+t+","+f.xFn(e)+","+(f.yFn(e)-e.fontSize/2)+")":""),u=s.lineCount(i),h=A*e.fontSize,p=f.heightFn(e,a(t)?+t:0,(u-1)*h);if(p&&(c+=" translate(0, "+p+")"),o.empty())i.select("text").attr({transform:c,"text-anchor":l});else{var g=d.bBox(o.node()).width*{end:-.5,start:.5}[l];o.attr("transform",c+(g?"translate("+g+",0)":""))}}))}v.enter().append("g").classed(u,1).append("text").attr("text-anchor","middle").each((function(t){var n=r.select(this),a=e._promises.length;n.call(s.positionText,f.xFn(t),f.yFn(t)).call(d.font,t.font,t.fontSize,t.fontColor).text(t.text).call(s.convertToTspans,e),e._promises[a]?m.push(e._promises.pop().then((function(){y(n,p)}))):y(n,p)})),v.exit().remove(),n.repositionOnUpdate&&v.each((function(e){r.select(this).select("text").call(s.positionText,f.xFn(e),f.yFn(e))})),y(v,g+1?g:p);var x=null;t._selections&&(t._selections[u]=v);var b=[function(){return m.length&&Promise.all(m)}];t.automargin&&i._redrawFromAutoMarginCount&&90===g?(x=90,b.push((function(){y(v,g)}))):b.push((function(){if(y(v,p),h.length&&"x"===c&&!a(p)&&("log"!==t.type||"D"!==String(t.dtick).charAt(0))){x=0;var e,r=0,i=[];if(v.each((function(e){r=Math.max(r,e.fontSize);var n=t.l2p(e.x),a=ee(this),o=d.bBox(a.node());i.push({top:0,bottom:10,height:10,left:n-o.width/2,right:n+o.width/2+2,width:o.width+2})})),"boundaries"!==t.tickson&&!t.showdividers||n.secondary){var o=h.length,s=Math.abs((h[o-1].x-h[0].x)*t._m)/(o-1)<2.5*r||"multicategory"===t.type;for(e=0;e<i.length-1;e++)if(l.bBoxIntersect(i[e],i[e+1])){x=s?90:30;break}}else{var u=2;for(t.ticks&&(u+=t.tickwidth/2),e=0;e<i.length;e++){var f=h[e].xbnd,g=i[e];if(null!==f[0]&&g.left-t.l2p(f[0])<u||null!==f[1]&&t.l2p(f[1])-g.right<u){x=90;break}}}x&&y(v,x)}})),t._tickAngles&&b.push((function(){t._tickAngles[u]=null===x?a(p)?p:0:x}));var w=l.syncOrAsync(b);return w&&w.then&&e._promises.push(w),w},C.getPxPosition=function(e,t){var n,r=e._fullLayout._size,a=t._id.charAt(0),i=t.side;return"free"!==t.anchor?n=t._anchorAxis:"x"===a?n={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:"y"===a&&(n={_offset:r.l+(t.position||0)*r.w,_length:0}),"top"===i||"left"===i?n._offset:"bottom"===i||"right"===i?n._offset+n._length:void 0},C.shouldShowZeroLine=function(e,t,n){var r=l.simpleMap(t.range,t.r2l);return r[0]*r[1]<=0&&t.zeroline&&("linear"===t.type||"-"===t.type)&&!(t.rangebreaks&&t.maskBreaks(0)===_)&&(Q(t,0)||!function(e,t,n,r){var a=n._mainAxis;if(!a)return;var i=e._fullLayout,o=t._id.charAt(0),l=C.counterLetter(t._id),s=t._offset+(Math.abs(r[0])<Math.abs(r[1])==("x"===o)?0:t._length);function c(e){if(!e.showline||!e.linewidth)return!1;var n=Math.max((e.linewidth+t.zerolinewidth)/2,1);function r(e){return"number"==typeof e&&Math.abs(e-s)<n}if(r(e._mainLinePosition)||r(e._mainMirrorPosition))return!0;var a=e._linepositions||{};for(var i in a)if(r(a[i][0])||r(a[i][1]))return!0}var u=i._plots[n._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(n);for(var d=C.list(e,l),h=0;h<d.length;h++){var f=d[h];if(f._mainAxis===a&&c(f))return!0}}(e,t,n,r)||function(e,t){for(var n=e._fullData,r=t._mainSubplot,a=t._id.charAt(0),i=0;i<n.length;i++){var l=n[i];if(!0===l.visible&&l.xaxis+l.yaxis===r){if(o.traceIs(l,"bar-like")&&l.orientation==={x:"h",y:"v"}[a])return!0;if(l.fill&&l.fill.charAt(l.fill.length-1)===a)return!0}}return!1}(e,t))},C.clipEnds=function(e,t){return t.filter((function(t){return Q(e,t.x)}))},C.allowAutoMargin=function(e){for(var t=C.list(e,"",!0),n=0;n<t.length;n++){var r=t[n];r.automargin&&(i.allowAutoMargin(e,te(r)),r.mirror&&i.allowAutoMargin(e,ne(r))),o.getComponentMethod("rangeslider","isVisible")(r)&&i.allowAutoMargin(e,re(r))}},C.swap=function(e,t){for(var n=function(e,t){var n,r,a=[];for(n=0;n<t.length;n++){var i=[],o=e._fullData[t[n]].xaxis,l=e._fullData[t[n]].yaxis;if(o&&l){for(r=0;r<a.length;r++)-1===a[r].x.indexOf(o)&&-1===a[r].y.indexOf(l)||i.push(r);if(i.length){var s,c=a[i[0]];if(i.length>1)for(r=1;r<i.length;r++)s=a[i[r]],ae(c.x,s.x),ae(c.y,s.y);ae(c.x,[o]),ae(c.y,[l])}else a.push({x:[o],y:[l]})}}return a}(e,t),r=0;r<n.length;r++)ie(e,n[r].x,n[r].y)}},Bnag:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},C3fs:function(e,t,n){"use strict";var r=n("GbLo"),a=n("/CZE"),i=n("6AZA").BADNUM;e.exports=function(e,t,n){return!(n=n||{}).noMultiCategory&&(o=e,a.isArrayOrTypedArray(o[0])&&a.isArrayOrTypedArray(o[1]))?"multicategory":function(e,t){for(var n=Math.max(1,(e.length-1)/1e3),i=0,o=0,l={},s=0;s<e.length;s+=n){var c=e[Math.round(s)],u=String(c);l[u]||(l[u]=1,a.isDateTime(c,t)&&(i+=1),r(c)&&(o+=1))}return i>2*o}(e,t)?"date":function(e){for(var t=Math.max(1,(e.length-1)/1e3),n=0,r=0,o={},l=0;l<e.length;l+=t){var s=e[Math.round(l)],c=String(s);o[c]||(o[c]=1,"boolean"==typeof s?r++:a.cleanNumber(s)!==i?n++:"string"==typeof s&&r++)}return r>2*n}(e)?"category":function(e){if(!e)return!1;for(var t=0;t<e.length;t++)if(r(e[t]))return!0;return!1}(e)?"linear":"-";var o}},CASU:function(e,t,n){"use strict";t.projNames={equirectangular:"equirectangular",mercator:"mercator",orthographic:"orthographic","natural earth":"naturalEarth",kavrayskiy7:"kavrayskiy7",miller:"miller",robinson:"robinson",eckert4:"eckert4","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant","conic equal area":"conicEqualArea","conic conformal":"conicConformal","conic equidistant":"conicEquidistant",gnomonic:"gnomonic",stereographic:"stereographic",mollweide:"mollweide",hammer:"hammer","transverse mercator":"transverseMercator","albers usa":"albersUsa","winkel tripel":"winkel3",aitoff:"aitoff",sinusoidal:"sinusoidal"},t.axesNames=["lonaxis","lataxis"],t.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},t.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180},t.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]}},t.clipPad=.001,t.precision=.1,t.landColor="#F0DC82",t.waterColor="#3399FF",t.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},t.sphereSVG={type:"Sphere"},t.fillLayers={ocean:1,land:1,lakes:1},t.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},t.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],t.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"],t.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}},CRlY:function(e,t,n){"use strict";var r=n("bljh"),a=n("zsdP"),i=n("O3R+"),o=n("jd7o"),l=n("QJ+7"),s=n("MGx7"),c=n("rhNM"),u=n("E4V0"),d=n("dNZO"),h=n("tos6"),f=Object.keys(a),p={"ISO-3":s,"USA-states":s,"country names":function(e){for(var t=0;t<f.length;t++){var n=f[t];if(new RegExp(a[n]).test(e.trim().toLowerCase()))return n}return c.log("Unrecognized country name: "+e+"."),!1}};function g(e){var t=e.geojson,n=window.PlotlyGeoAssets||{},r="string"==typeof t?n[t]:t;return u(r)?r:(c.error("Oops ... something went wrong when fetching "+t),!1)}e.exports={locationToFeature:function(e,t,n){if(!t||"string"!=typeof t)return!1;var r,a,i,o=p[e](t);if(o){if("USA-states"===e)for(r=[],i=0;i<n.length;i++)(a=n[i]).properties&&a.properties.gu&&"USA"===a.properties.gu&&r.push(a);else r=n;for(i=0;i<r.length;i++)if((a=r[i]).id===o)return a;c.log(["Location with id",o,"does not have a matching topojson feature at this resolution."].join(" "))}return!1},feature2polygons:function(e){var t,n,r,a,i=e.geometry,o=i.coordinates,l=e.id,s=[];function c(e){for(var t=0;t<e.length-1;t++)if(e[t][0]>0&&e[t+1][0]<0)return t;return null}switch(t="RUS"===l||"FJI"===l?function(e){var t;if(null===c(e))t=e;else for(t=new Array(e.length),a=0;a<e.length;a++)t[a]=[e[a][0]<0?e[a][0]+360:e[a][0],e[a][1]];s.push(h.tester(t))}:"ATA"===l?function(e){var t=c(e);if(null===t)return s.push(h.tester(e));var n=new Array(e.length+1),r=0;for(a=0;a<e.length;a++)a>t?n[r++]=[e[a][0]+360,e[a][1]]:a===t?(n[r++]=e[a],n[r++]=[e[a][0],-90]):n[r++]=e[a];var i=h.tester(n);i.pts.pop(),s.push(i)}:function(e){s.push(h.tester(e))},i.type){case"MultiPolygon":for(n=0;n<o.length;n++)for(r=0;r<o[n].length;r++)t(o[n][r]);break;case"Polygon":for(n=0;n<o.length;n++)t(o[n])}return s},getTraceGeojson:g,extractTraceFeature:function(e){var t=e[0].trace,n=g(t);if(!n)return!1;var r,a={},l=[];for(r=0;r<t._length;r++){var s=e[r];(s.loc||0===s.loc)&&(a[s.loc]=s)}function u(e){var n=d(e,t.featureidkey||"id").get(),r=a[n];if(r){var s=e.geometry;if("Polygon"===s.type||"MultiPolygon"===s.type){var u={type:"Feature",id:n,geometry:s,properties:{}};u.properties.ct=function(e){var t,n=e.geometry;if("MultiPolygon"===n.type)for(var r=n.coordinates,a=0,l=0;l<r.length;l++){var s={type:"Polygon",coordinates:r[l]},c=i.default(s);c>a&&(a=c,t=s)}else t=n;return o.default(t).geometry.coordinates}(u),r.fIn=e,r.fOut=u,l.push(u)}else c.log(["Location",r.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete a[n]}switch(n.type){case"FeatureCollection":var h=n.features;for(r=0;r<h.length;r++)u(h[r]);break;case"Feature":u(n);break;default:return c.warn(["Invalid GeoJSON type",(n.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var f in a)c.log(["Location *"+f+"*","does not have a matching feature with id-key","*"+t.featureidkey+"*."].join(" "));return l},fetchTraceGeoData:function(e){var t=window.PlotlyGeoAssets||{},n=[];function a(e){return new Promise((function(n,a){r.json(e,(function(r,i){if(r){delete t[e];var o=404===r.status?'GeoJSON at URL "'+e+'" does not exist.':"Unexpected error while fetching from "+e;return a(new Error(o))}return t[e]=i,n(i)}))}))}function i(e){return new Promise((function(n,r){var a=0,i=setInterval((function(){return t[e]&&"pending"!==t[e]?(clearInterval(i),n(t[e])):a>100?(clearInterval(i),r("Unexpected error while fetching from "+e)):void a++}),50)}))}for(var o=0;o<e.length;o++){var l=e[o][0].trace.geojson;"string"==typeof l&&(t[l]?"pending"===t[l]&&n.push(i(l)):(t[l]="pending",n.push(a(l))))}return n},computeBbox:function(e){return l.default(e)}}},Cb1W:function(e,t,n){"use strict";var r=n("IVx0").hasColorscale,a=n("OqjQ"),i=n("3oHU");e.exports=function(e,t){i.hasLines(t)&&r(t,"line")&&a(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),i.hasMarkers(t)&&(r(t,"marker")&&a(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),r(t,"marker.line")&&a(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}},Cluh:function(e,t,n){"use strict";var r=n("0RW4");e.exports=function(e,t,n){if(n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity"),n("newshape.line.width")){var a=(e||{}).plot_bgcolor||"#FFF";n("newshape.line.color",r.contrast(a)),n("newshape.line.dash")}n("activeshape.fillcolor"),n("activeshape.opacity")}},DDk4:function(e,t,n){"use strict";var r=n("GbLo"),a=n("/CZE"),i=n("Nx4I"),o=n("BkK/"),l=n("QkuE"),s=n("bcxm"),c=n("wAWO"),u=n("lUdJ"),d=n("WRPy");function h(e,t,n,l,s){var c,u,d,f,p,g,v,m=l+"bins",y=e._fullLayout,x=t["_"+l+"bingroup"],b=y._histogramBinOpts[x],w="overlay"===y.barmode,_=function(e){return n.r2c(e,0,f)},k=function(e){return n.c2r(e,0,f)},T="date"===n.type?function(e){return e||0===e?a.cleanDate(e,null,f):null}:function(e){return r(e)?Number(e):null};function M(e,t,n){t[e+"Found"]?(t[e]=T(t[e]),null===t[e]&&(t[e]=n[e])):(g[e]=t[e]=n[e],a.nestedProperty(u[0],m+"."+e).set(n[e]))}if(t["_"+l+"autoBinFinished"])delete t["_"+l+"autoBinFinished"];else{u=b.traces;var A=[],S=!0,C=!1,L=!1;for(c=0;c<u.length;c++)if((d=u[c]).visible){var I=b.dirs[c];p=d["_"+I+"pos0"]=n.makeCalcdata(d,I),A=a.concat(A,p),delete d["_"+l+"autoBinFinished"],!0===t.visible&&(S?S=!1:(delete d._autoBin,d["_"+l+"autoBinFinished"]=1),i.traceIs(d,"2dMap")&&(C=!0),"histogram2dcontour"===d.type&&(L=!0))}f=u[0][l+"calendar"];var E=o.autoBin(A,n,b.nbins,C,f,b.sizeFound&&b.size),O=u[0]._autoBin={};if(g=O[b.dirs[0]]={},L&&(b.size||(E.start=k(o.tickIncrement(_(E.start),E.size,!0,f))),void 0===b.end&&(E.end=k(o.tickIncrement(_(E.end),E.size,!1,f)))),w&&!i.traceIs(t,"2dMap")&&0===E._dataSpan&&"category"!==n.type&&"multicategory"!==n.type){if(s)return[E,p,!0];E=function(e,t,n,r,i){var o,l,s,c=e._fullLayout,u=function(e,t){for(var n=t.xaxis,r=t.yaxis,a=t.orientation,i=[],o=e._fullData,l=0;l<o.length;l++){var s=o[l];"histogram"===s.type&&!0===s.visible&&s.orientation===a&&s.xaxis===n&&s.yaxis===r&&i.push(s)}return i}(e,t),d=!1,f=1/0,p=[t];for(o=0;o<u.length;o++)if((l=u[o])===t)d=!0;else if(d){var g=h(e,l,n,r,!0),v=g[0],m=g[2];l["_"+r+"autoBinFinished"]=1,l["_"+r+"pos0"]=g[1],m?p.push(l):f=Math.min(f,v.size)}else s=c._histogramBinOpts[l["_"+r+"bingroup"]],f=Math.min(f,s.size||l[i].size);var y=new Array(p.length);for(o=0;o<p.length;o++)for(var x=p[o]["_"+r+"pos0"],b=0;b<x.length;b++)if(void 0!==x[b]){y[o]=x[b];break}isFinite(f)||(f=a.distinctVals(y).minDiff);for(o=0;o<p.length;o++){var w=(l=p[o])[r+"calendar"],_={start:n.c2r(y[o]-f/2,0,w),end:n.c2r(y[o]+f/2,0,w),size:f};l._input[i]=l[i]=_,(s=c._histogramBinOpts[l["_"+r+"bingroup"]])&&a.extendFlat(s,_)}return t[i]}(e,t,n,l,m)}(v=d.cumulative||{}).enabled&&"include"!==v.currentbin&&("decreasing"===v.direction?E.start=k(o.tickIncrement(_(E.start),E.size,!0,f)):E.end=k(o.tickIncrement(_(E.end),E.size,!1,f))),b.size=E.size,b.sizeFound||(g.size=E.size,a.nestedProperty(u[0],m+".size").set(E.size)),M("start",b,E),M("end",b,E)}p=t["_"+l+"pos0"],delete t["_"+l+"pos0"];var D=t._input[m]||{},P=a.extendFlat({},b),z=b.start,N=n.r2l(D.start),j=void 0!==N;if((b.startFound||j)&&N!==n.r2l(z)){var R=j?N:a.aggNums(Math.min,null,p),F={type:"category"===n.type||"multicategory"===n.type?"linear":n.type,r2l:n.r2l,dtick:b.size,tick0:z,calendar:f,range:[R,o.tickIncrement(R,b.size,!1,f)].map(n.l2r)},B=o.tickFirst(F);B>n.r2l(R)&&(B=o.tickIncrement(B,b.size,!0,f)),P.start=n.l2r(B),j||a.nestedProperty(t,m+".start").set(P.start)}var H=b.end,V=n.r2l(D.end),G=void 0!==V;if((b.endFound||G)&&V!==n.r2l(H)){var U=G?V:a.aggNums(Math.max,null,p);P.end=n.l2r(U),G||a.nestedProperty(t,m+".start").set(P.end)}var q="autobin"+l;return!1===t._input[q]&&(t._input[m]=a.extendFlat({},t[m]||{}),delete t._input[q],delete t[q]),[P,p]}e.exports={calc:function(e,t){var n,i,f,p,g=[],v=[],m=o.getFromId(e,"h"===t.orientation?t.yaxis:t.xaxis),y="h"===t.orientation?"y":"x",x={x:"y",y:"x"}[y],b=t[y+"calendar"],w=t.cumulative,_=h(e,t,m,y),k=_[0],T=_[1],M="string"==typeof k.size,A=[],S=M?A:k,C=[],L=[],I=[],E=0,O=t.histnorm,D=t.histfunc,P=-1!==O.indexOf("density");w.enabled&&P&&(O=O.replace(/ ?density$/,""),P=!1);var z,N="max"===D||"min"===D?null:0,j=s.count,R=c[O],F=!1,B=function(e){return m.r2c(e,0,b)};for(a.isArrayOrTypedArray(t[x])&&"count"!==D&&(z=t[x],F="avg"===D,j=s[D]),n=B(k.start),f=B(k.end)+(n-o.tickIncrement(n,k.size,!1,b))/1e6;n<f&&g.length<1e6&&(i=o.tickIncrement(n,k.size,!1,b),g.push((n+i)/2),v.push(N),I.push([]),A.push(n),P&&C.push(1/(i-n)),F&&L.push(0),!(i<=n));)n=i;A.push(n),M||"date"!==m.type||(S={start:B(S.start),end:B(S.end),size:S.size}),e._fullLayout._roundFnOpts||(e._fullLayout._roundFnOpts={});var H=t["_"+y+"bingroup"],V={leftGap:1/0,rightGap:1/0};H&&(e._fullLayout._roundFnOpts[H]||(e._fullLayout._roundFnOpts[H]=V),V=e._fullLayout._roundFnOpts[H]);var G,U=v.length,q=!0,Z=V.leftGap,W=V.rightGap,Y={};for(n=0;n<T.length;n++){var X=T[n];(p=a.findBin(X,S))>=0&&p<U&&(E+=j(p,n,v,z,L),q&&I[p].length&&X!==T[I[p][0]]&&(q=!1),I[p].push(n),Y[n]=p,Z=Math.min(Z,X-A[p]),W=Math.min(W,A[p+1]-X))}V.leftGap=Z,V.rightGap=W,q||(G=function(t,n){return function(){var r=e._fullLayout._roundFnOpts[H];return d(r.leftGap,r.rightGap,A,m,b)(t,n)}}),F&&(E=u(v,L)),R&&R(v,E,C),w.enabled&&function(e,t,n){var r,a,i;function o(t){i=e[t],e[t]/=2}function l(t){a=e[t],e[t]=i+a/2,i+=a}if("half"===n)if("increasing"===t)for(o(0),r=1;r<e.length;r++)l(r);else for(o(e.length-1),r=e.length-2;r>=0;r--)l(r);else if("increasing"===t){for(r=1;r<e.length;r++)e[r]+=e[r-1];"exclude"===n&&(e.unshift(0),e.pop())}else{for(r=e.length-2;r>=0;r--)e[r]+=e[r+1];"exclude"===n&&(e.push(0),e.shift())}}(v,w.direction,w.currentbin);var $=Math.min(g.length,v.length),J=[],K=0,Q=$-1;for(n=0;n<$;n++)if(v[n]){K=n;break}for(n=$-1;n>=K;n--)if(v[n]){Q=n;break}for(n=K;n<=Q;n++)if(r(g[n])&&r(v[n])){var ee={p:g[n],s:v[n],b:0};w.enabled||(ee.pts=I[n],q?ee.ph0=ee.ph1=I[n].length?T[I[n][0]]:g[n]:(t._computePh=!0,ee.ph0=G(A[n]),ee.ph1=G(A[n+1],!0))),J.push(ee)}return 1===J.length&&(J[0].width1=o.tickIncrement(J[0].p,k.size,!1,b)-J[0].p),l(J,t),a.isArrayOrTypedArray(t.selectedpoints)&&a.tagSelected(J,t,Y),J},calcAllAutoBins:h}},DDrG:function(e,t,n){"use strict";var r=n("/CZE").maxRowLength;e.exports=function(e){var t,n,a,i,o,l,s,c,u=[],d={},h=[],f=e[0],p=[],g=[0,0,0],v=r(e);for(n=0;n<e.length;n++)for(t=p,p=f,f=e[n+1]||[],a=0;a<v;a++)void 0===p[a]&&((l=(void 0!==p[a-1]?1:0)+(void 0!==p[a+1]?1:0)+(void 0!==t[a]?1:0)+(void 0!==f[a]?1:0))?(0===n&&l++,0===a&&l++,n===e.length-1&&l++,a===p.length-1&&l++,l<4&&(d[[n,a]]=[n,a,l]),u.push([n,a,l])):h.push([n,a]));for(;h.length;){for(s={},c=!1,o=h.length-1;o>=0;o--)(l=((d[[(n=(i=h[o])[0])-1,a=i[1]]]||g)[2]+(d[[n+1,a]]||g)[2]+(d[[n,a-1]]||g)[2]+(d[[n,a+1]]||g)[2])/20)&&(s[i]=[n,a,l],h.splice(o,1),c=!0);if(!c)throw"findEmpties iterated with no new neighbors";for(i in s)d[i]=s[i],u.push(s[i])}return u.sort((function(e,t){return t[2]-e[2]}))}},DOzC:function(e,t,n){"use strict";var r=n("GbLo"),a=n("/CZE").isArrayOrTypedArray,i=n("6AZA").BADNUM,o=n("Nx4I"),l=n("BkK/"),s=n("PBw4").getAxisGroup,c=n("iyXT");function u(e,t,n,o,u){if(o.length){var b,w,_,k;switch(function(e,t){var n,i;for(n=0;n<t.length;n++){var o,l=t[n],s=l[0].trace,c="funnel"===s.type?s._base:s.base,u="h"===s.orientation?s.xcalendar:s.ycalendar,d="category"===e.type||"multicategory"===e.type?function(){return null}:e.d2c;if(a(c)){for(i=0;i<Math.min(c.length,l.length);i++)o=d(c[i],0,u),r(o)?(l[i].b=+o,l[i].hasB=1):l[i].b=0;for(;i<l.length;i++)l[i].b=0}else{o=d(c,0,u);var h=r(o);for(o=h?o:0,i=0;i<l.length;i++)l[i].b=o,h&&(l[i].hasB=1)}}}(n,o),u.mode){case"overlay":d(t,n,o,u);break;case"group":for(b=[],w=[],_=0;_<o.length;_++)void 0===(k=o[_])[0].trace.offset?w.push(k):b.push(k);w.length&&function(e,t,n,r,a){var o=new c(r,{sepNegVal:!1,overlapNoMerge:!a.norm});(function(e,t,n,r){for(var a=e._fullLayout,i=n.positions,o=n.distinctPositions,l=n.minDiff,c=n.traces,u=c.length,d=i.length!==o.length,h=l*(1-r.gap),v=s(a,t._id)+c[0][0].trace.orientation,m=a._alignmentOpts[v]||{},y=0;y<u;y++){var x,b,w=c[y],_=w[0].trace,k=m[_.alignmentgroup]||{},T=Object.keys(k.offsetGroups||{}).length,M=(x=T?h/T:d?h/u:h)*(1-(r.groupgap||0));b=T?((2*_._offsetIndex+1-T)*x-M)/2:d?((2*y+1-u)*x-M)/2:-M/2;var A=w[0].t;A.barwidth=M,A.poffset=b,A.bargroupwidth=h,A.bardelta=l}n.binWidth=c[0][0].t.barwidth/100,f(n),p(t,n),g(t,n,d)})(e,t,o,a),function(e){for(var t=e.traces,n=0;n<t.length;n++){var r=t[n];if(void 0===r[0].trace.base)for(var a=new c([r],{sepNegVal:!0,overlapNoMerge:!0}),o=0;o<r.length;o++){var l=r[o];if(l.p!==i){var s=a.put(l.p,l.b+l.s);s&&(l.b=s)}}}}(o),a.norm?(m(o),y(n,o,a)):v(n,o)}(e,t,n,w,u),b.length&&d(t,n,b,u);break;case"stack":case"relative":for(b=[],w=[],_=0;_<o.length;_++)void 0===(k=o[_])[0].trace.base?w.push(k):b.push(k);w.length&&function(e,t,n,r,a){var o=new c(r,{sepNegVal:"relative"===a.mode,overlapNoMerge:!(a.norm||"stack"===a.mode||"relative"===a.mode)});h(t,o,a),function(e,t,n){var r,a,o,s,c,u,d=x(e),h=t.traces;for(s=0;s<h.length;s++)if(r=h[s],"funnel"===(a=r[0].trace).type)for(c=0;c<r.length;c++)(u=r[c]).s!==i&&t.put(u.p,-.5*u.s);for(s=0;s<h.length;s++){r=h[s],a=r[0].trace,o="funnel"===a.type;var f=[];for(c=0;c<r.length;c++)if((u=r[c]).s!==i){var p;p=o?u.s:u.s+u.b;var g=t.put(u.p,p),v=g+p;u.b=g,u[d]=v,n.norm||(f.push(v),u.hasB&&f.push(g))}n.norm||(a._extremes[e._id]=l.findExtremes(e,f,{tozero:!0,padded:!0}))}}(n,o,a);for(var s=0;s<r.length;s++)for(var u=r[s],d=0;d<u.length;d++){var f=u[d];if(f.s!==i)f.b+f.s===o.get(f.p,f.s)&&(f._outmost=!0)}a.norm&&y(n,o,a)}(0,t,n,w,u),b.length&&d(t,n,b,u)}!function(e,t){var n,a,i,o=x(t),l={},s=1/0,c=-1/0;for(n=0;n<e.length;n++)for(i=e[n],a=0;a<i.length;a++){var u=i[a].p;r(u)&&(s=Math.min(s,u),c=Math.max(c,u))}var d=1e4/(c-s),h=l.round=function(e){return String(Math.round(d*(e-s)))};for(n=0;n<e.length;n++){(i=e[n])[0].t.extents=l;var f=i[0].t.poffset,p=Array.isArray(f);for(a=0;a<i.length;a++){var g=i[a],v=g[o]-g.w/2;if(r(v)){var m=g[o]+g.w/2,y=h(g.p);l[y]?l[y]=[Math.min(v,l[y][0]),Math.max(m,l[y][1])]:l[y]=[v,m]}g.p0=g.p+(p?f[a]:f),g.p1=g.p0+g.w,g.s0=g.b,g.s1=g.s0+g.s}}}(o,t)}}function d(e,t,n,r){for(var a=0;a<n.length;a++){var i=n[a],o=new c([i],{sepNegVal:!1,overlapNoMerge:!r.norm});h(e,o,r),r.norm?(m(o),y(t,o,r)):v(t,o)}}function h(e,t,n){for(var r=t.minDiff,a=t.traces,i=r*(1-n.gap),o=i*(1-(n.groupgap||0)),l=-o/2,s=0;s<a.length;s++){var c=a[s][0].t;c.barwidth=o,c.poffset=l,c.bargroupwidth=i,c.bardelta=r}t.binWidth=a[0][0].t.barwidth/100,f(t),p(e,t),g(e,t)}function f(e){var t,n,i=e.traces;for(t=0;t<i.length;t++){var o,l=i[t],s=l[0],c=s.trace,u=s.t,d=c._offset||c.offset,h=u.poffset;if(a(d)){for(o=Array.prototype.slice.call(d,0,l.length),n=0;n<o.length;n++)r(o[n])||(o[n]=h);for(n=o.length;n<l.length;n++)o.push(h);u.poffset=o}else void 0!==d&&(u.poffset=d);var f=c._width||c.width,p=u.barwidth;if(a(f)){var g=Array.prototype.slice.call(f,0,l.length);for(n=0;n<g.length;n++)r(g[n])||(g[n]=p);for(n=g.length;n<l.length;n++)g.push(p);if(u.barwidth=g,void 0===d){for(o=[],n=0;n<l.length;n++)o.push(h+(p-g[n])/2);u.poffset=o}}else void 0!==f&&(u.barwidth=f,void 0===d&&(u.poffset=h+(p-f)/2))}}function p(e,t){for(var n=t.traces,r=x(e),a=0;a<n.length;a++)for(var i=n[a],o=i[0].t,l=o.poffset,s=Array.isArray(l),c=o.barwidth,u=Array.isArray(c),d=0;d<i.length;d++){var h=i[d],f=h.w=u?c[d]:c;h[r]=h.p+(s?l[d]:l)+f/2}}function g(e,t,n){var r=t.traces,a=t.minDiff/2;l.minDtick(e,t.minDiff,t.distinctPositions[0],n);for(var i=0;i<r.length;i++){var o,s,c,u,d=r[i],h=d[0],f=h.trace,p=[];for(u=0;u<d.length;u++)s=(o=d[u]).p-a,c=o.p+a,p.push(s,c);if(f.width||f.offset){var g=h.t,v=g.poffset,m=g.barwidth,y=Array.isArray(v),x=Array.isArray(m);for(u=0;u<d.length;u++){o=d[u];var b=y?v[u]:v,w=x?m[u]:m;c=(s=o.p+b)+w,p.push(s,c)}}f._extremes[e._id]=l.findExtremes(e,p,{padded:!1})}}function v(e,t){for(var n=t.traces,r=x(e),a=0;a<n.length;a++){for(var i=n[a],o=i[0].trace,s=[],c=!1,u=0;u<i.length;u++){var d=i[u],h=d.b,f=h+d.s;d[r]=f,s.push(f),d.hasB&&s.push(h),d.hasB&&d.b||(c=!0)}o._extremes[e._id]=l.findExtremes(e,s,{tozero:c,padded:!0})}}function m(e){for(var t=e.traces,n=0;n<t.length;n++)for(var r=t[n],a=0;a<r.length;a++){var o=r[a];o.s!==i&&e.put(o.p,o.b+o.s)}}function y(e,t,n){var a=t.traces,o=x(e),s="fraction"===n.norm?1:100,c=s/1e9,u=e.l2c(e.c2l(0)),d="stack"===n.mode?s:u;function h(t){return r(e.c2l(t))&&(t<u-c||t>d+c||!r(u))}for(var f=0;f<a.length;f++){for(var p=a[f],g=p[0].trace,v=[],m=!1,y=!1,b=0;b<p.length;b++){var w=p[b];if(w.s!==i){var _=Math.abs(s/t.get(w.p,w.s));w.b*=_,w.s*=_;var k=w.b,T=k+w.s;w[o]=T,v.push(T),y=y||h(T),w.hasB&&(v.push(k),y=y||h(k)),w.hasB&&w.b||(m=!0)}}g._extremes[e._id]=l.findExtremes(e,v,{tozero:m,padded:y})}}function x(e){return e._id.charAt(0)}e.exports={crossTraceCalc:function(e,t){for(var n=t.xaxis,r=t.yaxis,a=e._fullLayout,i=e._fullData,l=e.calcdata,s=[],c=[],d=0;d<i.length;d++){var h=i[d];if(!0===h.visible&&o.traceIs(h,"bar")&&h.xaxis===n._id&&h.yaxis===r._id&&("h"===h.orientation?s.push(l[d]):c.push(l[d]),h._computePh))for(var f=e.calcdata[d],p=0;p<f.length;p++)"function"==typeof f[p].ph0&&(f[p].ph0=f[p].ph0()),"function"==typeof f[p].ph1&&(f[p].ph1=f[p].ph1())}var g={mode:a.barmode,norm:a.barnorm,gap:a.bargap,groupgap:a.bargroupgap};u(e,n,r,c,g),u(e,r,n,s,g)},setGroupPositions:u}},DdeV:function(e,t,n){"use strict";var r=n("kJIm").extendFlat,a=n("9Okp"),i=n("SFLx").scales,o="Note that `autocolorscale` must be true for this attribute to work.";e.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:i.Reds,role:"style",editType:"calc",description:["Sets the default sequential colorscale for positive values.",o].join(" ")},sequentialminus:{valType:"colorscale",dflt:i.Blues,role:"style",editType:"calc",description:["Sets the default sequential colorscale for negative values.",o].join(" ")},diverging:{valType:"colorscale",dflt:i.RdBu,role:"style",editType:"calc",description:["Sets the default diverging colorscale.",o].join(" ")}},coloraxis:r({_isSubplotObj:!0,editType:"calc",description:[""].join(" ")},a("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},Df4R:function(e,t,n){"use strict";var r=n("+1rr"),a=n("EHyX").line,i=n("qHYo"),o=n("lNV6").hovertemplateAttrs,l=n("lNV6").texttemplateAttrs,s=n("VeuS"),c=n("kJIm").extendFlat,u=n("0RW4");function d(e){return{marker:{color:c({},r.marker.color,{arrayOk:!1,editType:"style",description:"Sets the marker color of all "+e+" values."}),line:{color:c({},r.marker.line.color,{arrayOk:!1,editType:"style",description:"Sets the line color of all "+e+" values."}),width:c({},r.marker.line.width,{arrayOk:!1,editType:"style",description:"Sets the line width of all "+e+" values."}),editType:"style"},editType:"style"},editType:"style"}}e.exports={measure:{valType:"data_array",dflt:[],role:"info",editType:"calc",description:["An array containing types of values.","By default the values are considered as 'relative'.","However; it is possible to use 'total' to compute the sums.","Also 'absolute' could be applied to reset the computed total","or to declare an initial value where needed."].join(" ")},base:{valType:"number",dflt:null,arrayOk:!1,role:"info",editType:"calc",description:["Sets where the bar base is drawn (in position axis units)."].join(" ")},x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,hovertext:r.hovertext,hovertemplate:o({},{keys:s.eventDataKeys}),hoverinfo:c({},i.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],role:"info",editType:"plot",arrayOk:!1,description:["Determines which trace information appear on the graph.","In the case of having multiple waterfalls, totals","are computed separately (per trace)."].join(" ")},texttemplate:l({editType:"plot"},{keys:s.eventDataKeys.concat(["label"])}),text:r.text,textposition:r.textposition,insidetextanchor:r.insidetextanchor,textangle:r.textangle,textfont:r.textfont,insidetextfont:r.insidetextfont,outsidetextfont:r.outsidetextfont,constraintext:r.constraintext,cliponaxis:r.cliponaxis,orientation:r.orientation,offset:r.offset,width:r.width,increasing:d("increasing"),decreasing:d("decreasing"),totals:d("intermediate sums and total"),connector:{line:{color:c({},a.color,{dflt:u.defaultLine}),width:c({},a.width,{editType:"plot"}),dash:a.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",role:"info",editType:"plot",description:["Sets the shape of connector lines."].join(" ")},visible:{valType:"boolean",dflt:!0,role:"info",editType:"plot",description:["Determines if connector lines are drawn. "].join(" ")},editType:"plot"},offsetgroup:r.offsetgroup,alignmentgroup:r.alignmentgroup}},DrdO:function(e,t,n){"use strict";var r=n("/CZE"),a=n("Nx4I"),i=n("EHyX"),o=n("3mkv"),l=n("3oHU"),s=n("B28u"),c=n("a3ij"),u=n("UEdZ"),d=n("Wb4T"),h=n("6weB"),f=n("6feh"),p=n("OAL3");e.exports=function(e,t,n,g){function v(n,a){return r.coerce(e,t,i,n,a)}var m=s(e,t,g,v);if(m||(t.visible=!1),t.visible){var y=c(e,t,g,v),x=!y&&m<o.PTS_LINESONLY?"lines+markers":"lines";v("text"),v("hovertext"),v("mode",x),l.hasLines(t)&&(d(e,t,n,g,v),h(e,t,v),v("connectgaps"),v("line.simplify")),l.hasMarkers(t)&&u(e,t,n,g,v,{gradient:!0}),l.hasText(t)&&(v("texttemplate"),f(e,t,g,v));var b=[];(l.hasMarkers(t)||l.hasText(t))&&(v("cliponaxis"),v("marker.maxdisplayed"),b.push("points")),v("fill",y?y.fillDflt:"none"),"none"!==t.fill&&(p(e,t,n,v),l.hasLines(t)||h(e,t,v));var w=(t.line||{}).color,_=(t.marker||{}).color;"tonext"!==t.fill&&"toself"!==t.fill||b.push("fills"),v("hoveron",b.join("+")||"points"),"fills"!==t.hoveron&&v("hovertemplate");var k=a.getComponentMethod("errorbars","supplyDefaults");k(e,t,w||_||n,{axis:"y"}),k(e,t,w||_||n,{axis:"x",inherit:"y"}),r.coerceSelectionMarkerOpacity(t,v)}}},DzeQ:function(e,t,n){"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)}},E2g8:function(e,t,n){(function(t,n){ /*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.8+1e68dce6 */var r;r=function(){"use strict";function e(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},a=0,i=void 0,o=void 0,l=function(e,t){p[a]=e,p[a+1]=t,2===(a+=2)&&(o?o(g):b())},s="undefined"!=typeof window?window:void 0,c=s||{},u=c.MutationObserver||c.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var e=setTimeout;return function(){return e(g,1)}}var p=new Array(1e3);function g(){for(var e=0;e<a;e+=2)(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0;a=0}var v,m,y,x,b=void 0;function w(e,t){var n=this,r=new this.constructor(T);void 0===r[k]&&P(r);var a=n._state;if(a){var i=arguments[a-1];l((function(){return O(a,r,i,n._result)}))}else I(n,r,e,t);return r}function _(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(T);return A(t,e),t}d?b=function(){return t.nextTick(g)}:u?(m=0,y=new u(g),x=document.createTextNode(""),y.observe(x,{characterData:!0}),b=function(){x.data=m=++m%2}):h?((v=new MessageChannel).port1.onmessage=g,b=function(){return v.port2.postMessage(0)}):b=void 0===s?function(){try{var e=Function("return this")().require("vertx");return void 0!==(i=e.runOnLoop||e.runOnContext)?function(){i(g)}:f()}catch(e){return f()}}():f();var k=Math.random().toString(36).substring(2);function T(){}function M(t,n,r){n.constructor===t.constructor&&r===w&&n.constructor.resolve===_?function(e,t){1===t._state?C(e,t._result):2===t._state?L(e,t._result):I(t,void 0,(function(t){return A(e,t)}),(function(t){return L(e,t)}))}(t,n):void 0===r?C(t,n):e(r)?function(e,t,n){l((function(e){var r=!1,a=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,(function(n){r||(r=!0,t!==n?A(e,n):C(e,n))}),(function(t){r||(r=!0,L(e,t))}),e._label);!r&&a&&(r=!0,L(e,a))}),e)}(t,n,r):C(t,n)}function A(e,t){if(e===t)L(e,new TypeError("You cannot resolve a promise with itself"));else if(a=typeof(r=t),null===r||"object"!==a&&"function"!==a)C(e,t);else{var n=void 0;try{n=t.then}catch(t){return void L(e,t)}M(e,t,n)}var r,a}function S(e){e._onerror&&e._onerror(e._result),E(e)}function C(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&l(E,e))}function L(e,t){void 0===e._state&&(e._state=2,e._result=t,l(S,e))}function I(e,t,n,r){var a=e._subscribers,i=a.length;e._onerror=null,a[i]=t,a[i+1]=n,a[i+2]=r,0===i&&e._state&&l(E,e)}function E(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,a=void 0,i=e._result,o=0;o<t.length;o+=3)r=t[o],a=t[o+n],r?O(n,r,a,i):a(i);e._subscribers.length=0}}function O(t,n,r,a){var i=e(r),o=void 0,l=void 0,s=!0;if(i){try{o=r(a)}catch(e){s=!1,l=e}if(n===o)return void L(n,new TypeError("A promises callback cannot return that same promise."))}else o=a;void 0!==n._state||(i&&s?A(n,o):!1===s?L(n,l):1===t?C(n,o):2===t&&L(n,o))}var D=0;function P(e){e[k]=D++,e._state=void 0,e._result=void 0,e._subscribers=[]}var z=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(T),this.promise[k]||P(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&C(this.promise,this._result))):L(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===_){var a=void 0,i=void 0,o=!1;try{a=e.then}catch(e){o=!0,i=e}if(a===w&&void 0!==e._state)this._settledAt(e._state,t,e._result);else if("function"!=typeof a)this._remaining--,this._result[t]=e;else if(n===N){var l=new n(T);o?L(l,i):M(l,e,a),this._willSettleAt(l,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;void 0===r._state&&(this._remaining--,2===e?L(r,n):this._result[t]=n),0===this._remaining&&C(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;I(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}(),N=function(){function t(e){this[k]=D++,this._result=this._state=void 0,this._subscribers=[],T!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){A(e,t)}),(function(t){L(e,t)}))}catch(t){L(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this.constructor;return e(t)?this.then((function(e){return n.resolve(t()).then((function(){return e}))}),(function(e){return n.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return N.prototype.then=w,N.all=function(e){return new z(this,e).promise},N.race=function(e){var t=this;return r(e)?new t((function(n,r){for(var a=e.length,i=0;i<a;i++)t.resolve(e[i]).then(n,r)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))},N.resolve=_,N.reject=function(e){var t=new this(T);return L(t,e),t},N._setScheduler=function(e){o=e},N._setAsap=function(e){l=e},N._asap=l,N.polyfill=function(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=N},N.Promise=N,N},e.exports=r()}).call(this,n("8oxB"),n("yLpj"))},E4V0:function(e,t,n){"use strict";e.exports=function(e){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(e):"[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.prototype}},E6B2:function(e,t,n){"use strict";var r=n("yUfG"),a=n("GbLo"),i=n("/CZE"),o=n("wlgE").makeColorScaleFuncFromTrace,l=n("hriN").makePullColorFn,s=n("hriN").generateExtendedColors,c=n("wlgE").calc,u=n("6AZA").ALMOST_EQUAL,d={},h={};t.calc=function(e,t){var n,s,d,h,f,p,g=e._fullLayout,v=t.ids,m=i.isArrayOrTypedArray(v),y=t.labels,x=t.parents,b=t.values,w=i.isArrayOrTypedArray(b),_=[],k={},T={},M=function(e){return e||"number"==typeof e},A=function(e){return!w||a(b[e])&&b[e]>=0};m?(n=Math.min(v.length,x.length),s=function(e){return M(v[e])&&A(e)},d=function(e){return String(v[e])}):(n=Math.min(y.length,x.length),s=function(e){return M(y[e])&&A(e)},d=function(e){return String(y[e])}),w&&(n=Math.min(n,b.length));for(var S=0;S<n;S++)if(s(S)){var C=d(S),L=M(x[S])?String(x[S]):"",I={i:S,id:C,pid:L,label:M(y[S])?String(y[S]):""};w&&(I.v=+b[S]),_.push(I),f=C,k[h=L]?k[h].push(f):k[h]=[f],T[f]=1}if(k[""]){if(k[""].length>1){for(var E=i.randstr(),O=0;O<_.length;O++)""===_[O].pid&&(_[O].pid=E);_.unshift({hasMultipleRoots:!0,id:E,pid:"",label:""})}}else{var D,P=[];for(D in k)T[D]||P.push(D);if(1!==P.length)return i.warn("Multiple implied roots, cannot build "+t.type+" hierarchy.");D=P[0],_.unshift({hasImpliedRoot:!0,id:D,pid:"",label:D})}try{p=r.stratify().id((function(e){return e.id})).parentId((function(e){return e.pid}))(_)}catch(e){return i.warn("Failed to build "+t.type+" hierarchy. Error: "+e.message)}var z=r.hierarchy(p),N=!1;if(w)switch(t.branchvalues){case"remainder":z.sum((function(e){return e.data.v}));break;case"total":z.each((function(e){var t=e.data.data,n=t.v;if(e.children){var r=e.children.reduce((function(e,t){return e+t.data.data.v}),0);if((t.hasImpliedRoot||t.hasMultipleRoots)&&(n=r),n<r*u)return N=!0,i.warn(["Total value for node",e.data.data.id,"is smaller than the sum of its children.","\nparent value =",n,"\nchildren sum =",r].join(" "))}e.value=n}))}else!function e(t,n,r){var a=0,i=t.children;if(i){for(var o=i.length,l=0;l<o;l++)a+=e(i[l],n,r);r.branches&&a++}else r.leaves&&a++;t.value=t.data.data.value=a,n._values||(n._values=[]);return n._values[t.data.data.i]=a,a}(z,t,{branches:-1!==t.count.indexOf("branches"),leaves:-1!==t.count.indexOf("leaves")});if(!N){var j,R;z.sort((function(e,t){return t.value-e.value}));var F=t.marker.colors||[],B=!!F.length;return t._hasColorscale?(B||(F=w?t.values:t._values),c(e,t,{vals:F,containerStr:"marker",cLetter:"c"}),R=o(t.marker)):j=l(g["_"+t.type+"colormap"]),z.each((function(e){var n=e.data.data;n.color=t._hasColorscale?R(F[n.i]):j(F[n.i],n.id)})),_[0].hierarchy=z,_}},t._runCrossTraceCalc=function(e,t){var n=t._fullLayout,r=t.calcdata,a=n[e+"colorway"],i=n["_"+e+"colormap"];n["extend"+e+"colors"]&&(a=s(a,"treemap"===e?h:d));var o=0;function l(e){var t=e.data.data,n=t.id;!1===t.color&&(i[n]?t.color=i[n]:e.parent?e.parent.parent?t.color=e.parent.data.data.color:(i[n]=t.color=a[o%a.length],o++):t.color="rgba(0,0,0,0)")}for(var c=0;c<r.length;c++){var u=r[c][0];u.trace.type===e&&u.hierarchy&&u.hierarchy.each(l)}},t.crossTraceCalc=function(e){return t._runCrossTraceCalc("sunburst",e)}},E6Qf:function(e,t,n){"use strict";var r=n("/CZE"),a=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];e.exports=function(e,t,n,i){return e="left"===n?0:"center"===n?1:"right"===n?2:r.constrain(Math.floor(3*e),0,2),t="bottom"===i?0:"middle"===i?1:"top"===i?2:r.constrain(Math.floor(3*t),0,2),a[t][e]}},E8TZ:function(e,t,n){"use strict";var r=n("Nx4I"),a=n("u3HJ"),i=n("PBw4"),o=n("dVlp"),l=n("I23g").eraseActiveShape,s=n("/CZE"),c=s._,u=e.exports={};function d(e,t){var n,a,o=t.currentTarget,l=o.getAttribute("data-attr"),s=o.getAttribute("data-val")||!0,c=e._fullLayout,u={},d=i.list(e,null,!0),h=c._cartesianSpikesEnabled;if("zoom"===l){var f,p="in"===s?.5:2,g=(1+p)/2,v=(1-p)/2;for(a=0;a<d.length;a++)if(!(n=d[a]).fixedrange)if(f=n._name,"auto"===s)u[f+".autorange"]=!0;else if("reset"===s){if(void 0===n._rangeInitial)u[f+".autorange"]=!0;else{var m=n._rangeInitial.slice();u[f+".range[0]"]=m[0],u[f+".range[1]"]=m[1]}void 0!==n._showSpikeInitial&&(u[f+".showspikes"]=n._showSpikeInitial,"on"!==h||n._showSpikeInitial||(h="off"))}else{var y=[n.r2l(n.range[0]),n.r2l(n.range[1])],x=[g*y[0]+v*y[1],g*y[1]+v*y[0]];u[f+".range[0]"]=n.l2r(x[0]),u[f+".range[1]"]=n.l2r(x[1])}}else"hovermode"!==l||"x"!==s&&"y"!==s||(s=c._isHoriz?"y":"x",o.setAttribute("data-val",s)),u[l]=s;c._cartesianSpikesEnabled=h,r.call("_guiRelayout",e,u)}function h(e,t){for(var n=t.currentTarget,a=n.getAttribute("data-attr"),i=n.getAttribute("data-val")||!0,o=e._fullLayout._subplots.gl3d||[],l={},s=a.split("."),c=0;c<o.length;c++)l[o[c]+"."+s[1]]=i;var u="pan"===i?i:"zoom";l.dragmode=u,r.call("_guiRelayout",e,l)}function f(e,t){for(var n=t.currentTarget.getAttribute("data-attr"),a=e._fullLayout,i=a._subplots.gl3d||[],o={},l=0;l<i.length;l++){var s,c=i[l],u=c+".camera",d=c+".aspectratio",h=c+".aspectmode",f=a[c]._scene;"resetLastSave"===n?(o[u+".up"]=f.viewInitial.up,o[u+".eye"]=f.viewInitial.eye,o[u+".center"]=f.viewInitial.center,s=!0):"resetDefault"===n&&(o[u+".up"]=null,o[u+".eye"]=null,o[u+".center"]=null,s=!0),s&&(o[d+".x"]=f.viewInitial.aspectratio.x,o[d+".y"]=f.viewInitial.aspectratio.y,o[d+".z"]=f.viewInitial.aspectratio.z,o[h]=f.viewInitial.aspectmode)}r.call("_guiRelayout",e,o)}function p(e,t){var n=t.currentTarget,r=n._previousVal,a=e._fullLayout,i=a._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],l={},s={};if(r)s=r,n._previousVal=null;else{for(var c=0;c<i.length;c++){var u=i[c],d=a[u],h=u+".hovermode";l[h]=d.hovermode,s[h]=!1;for(var f=0;f<3;f++){var p=o[f],g=u+"."+p+".showspikes";s[g]=!1,l[g]=d[p].showspikes}}n._previousVal=l}return s}function g(e,t){for(var n=t.currentTarget,a=n.getAttribute("data-attr"),i=n.getAttribute("data-val")||!0,o=e._fullLayout,l=o._subplots.geo||[],s=0;s<l.length;s++){var c=l[s],u=o[c];if("zoom"===a){var d=u.projection.scale,h="in"===i?2*d:.5*d;r.call("_guiRelayout",e,c+".projection.scale",h)}}"reset"===a&&x(e,"geo")}function v(e){var t=e._fullLayout;return!t.hovermode&&(t._has("cartesian")?t._isHoriz?"y":"x":"closest")}function m(e){var t=v(e);r.call("_guiRelayout",e,"hovermode",t)}function y(e,t){for(var n=t.currentTarget.getAttribute("data-val"),a=e._fullLayout,i=a._subplots.mapbox||[],o={},l=0;l<i.length;l++){var s=i[l],c=a[s].zoom,u="in"===n?1.05*c:c/1.05;o[s+".zoom"]=u}r.call("_guiRelayout",e,o)}function x(e,t){for(var n=e._fullLayout,a=n._subplots[t]||[],i={},o=0;o<a.length;o++)for(var l=a[o],s=n[l]._subplot.viewInitial,c=Object.keys(s),u=0;u<c.length;u++){var d=c[u];i[l+"."+d]=s[d]}r.call("_guiRelayout",e,i)}u.toImage={name:"toImage",title:function(e){var t=(e._context.toImageButtonOptions||{}).format||"png";return c(e,"png"===t?"Download plot as a png":"Download plot")},icon:o.camera,click:function(e){var t=e._context.toImageButtonOptions,n={format:t.format||"png"};s.notifier(c(e,"Taking snapshot - this may take a few seconds"),"long"),"svg"!==n.format&&s.isIE()&&(s.notifier(c(e,"IE only supports svg. Changing format to svg."),"long"),n.format="svg"),["filename","width","height","scale"].forEach((function(e){e in t&&(n[e]=t[e])})),r.call("downloadImage",e,n).then((function(t){s.notifier(c(e,"Snapshot succeeded")+" - "+t,"long")})).catch((function(){s.notifier(c(e,"Sorry, there was a problem downloading your snapshot!"),"long")}))}},u.sendDataToCloud={name:"sendDataToCloud",title:function(e){return c(e,"Edit in Chart Studio")},icon:o.disk,click:function(e){a.sendDataToCloud(e)}},u.editInChartStudio={name:"editInChartStudio",title:function(e){return c(e,"Edit in Chart Studio")},icon:o.pencil,click:function(e){a.sendDataToCloud(e)}},u.zoom2d={name:"zoom2d",title:function(e){return c(e,"Zoom")},attr:"dragmode",val:"zoom",icon:o.zoombox,click:d},u.pan2d={name:"pan2d",title:function(e){return c(e,"Pan")},attr:"dragmode",val:"pan",icon:o.pan,click:d},u.select2d={name:"select2d",title:function(e){return c(e,"Box Select")},attr:"dragmode",val:"select",icon:o.selectbox,click:d},u.lasso2d={name:"lasso2d",title:function(e){return c(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:o.lasso,click:d},u.drawclosedpath={name:"drawclosedpath",title:function(e){return c(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:o.drawclosedpath,click:d},u.drawopenpath={name:"drawopenpath",title:function(e){return c(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:o.drawopenpath,click:d},u.drawline={name:"drawline",title:function(e){return c(e,"Draw line")},attr:"dragmode",val:"drawline",icon:o.drawline,click:d},u.drawrect={name:"drawrect",title:function(e){return c(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:o.drawrect,click:d},u.drawcircle={name:"drawcircle",title:function(e){return c(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:o.drawcircle,click:d},u.eraseshape={name:"eraseshape",title:function(e){return c(e,"Erase active shape")},icon:o.eraseshape,click:l},u.zoomIn2d={name:"zoomIn2d",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:d},u.zoomOut2d={name:"zoomOut2d",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:d},u.autoScale2d={name:"autoScale2d",title:function(e){return c(e,"Autoscale")},attr:"zoom",val:"auto",icon:o.autoscale,click:d},u.resetScale2d={name:"resetScale2d",title:function(e){return c(e,"Reset axes")},attr:"zoom",val:"reset",icon:o.home,click:d},u.hoverClosestCartesian={name:"hoverClosestCartesian",title:function(e){return c(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:d},u.hoverCompareCartesian={name:"hoverCompareCartesian",title:function(e){return c(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:o.tooltip_compare,gravity:"ne",click:d},u.zoom3d={name:"zoom3d",title:function(e){return c(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:o.zoombox,click:h},u.pan3d={name:"pan3d",title:function(e){return c(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:o.pan,click:h},u.orbitRotation={name:"orbitRotation",title:function(e){return c(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:o["3d_rotate"],click:h},u.tableRotation={name:"tableRotation",title:function(e){return c(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:o["z-axis"],click:h},u.resetCameraDefault3d={name:"resetCameraDefault3d",title:function(e){return c(e,"Reset camera to default")},attr:"resetDefault",icon:o.home,click:f},u.resetCameraLastSave3d={name:"resetCameraLastSave3d",title:function(e){return c(e,"Reset camera to last save")},attr:"resetLastSave",icon:o.movie,click:f},u.hoverClosest3d={name:"hoverClosest3d",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:function(e,t){var n=p(e,t);r.call("_guiRelayout",e,n)}},u.zoomInGeo={name:"zoomInGeo",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:g},u.zoomOutGeo={name:"zoomOutGeo",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:g},u.resetGeo={name:"resetGeo",title:function(e){return c(e,"Reset")},attr:"reset",val:null,icon:o.autoscale,click:g},u.hoverClosestGeo={name:"hoverClosestGeo",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:m},u.hoverClosestGl2d={name:"hoverClosestGl2d",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:m},u.hoverClosestPie={name:"hoverClosestPie",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:o.tooltip_basic,gravity:"ne",click:m},u.resetViewSankey={name:"resetSankeyGroup",title:function(e){return c(e,"Reset view")},icon:o.home,click:function(e){for(var t={"node.groups":[],"node.x":[],"node.y":[]},n=0;n<e._fullData.length;n++){var a=e._fullData[n]._viewInitial;t["node.groups"].push(a.node.groups.slice()),t["node.x"].push(a.node.x.slice()),t["node.y"].push(a.node.y.slice())}r.call("restyle",e,t)}},u.toggleHover={name:"toggleHover",title:function(e){return c(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:o.tooltip_basic,gravity:"ne",click:function(e,t){var n=p(e,t);n.hovermode=v(e),r.call("_guiRelayout",e,n)}},u.resetViews={name:"resetViews",title:function(e){return c(e,"Reset views")},icon:o.home,click:function(e,t){var n=t.currentTarget;n.setAttribute("data-attr","zoom"),n.setAttribute("data-val","reset"),d(e,t),n.setAttribute("data-attr","resetLastSave"),f(e,t),x(e,"geo"),x(e,"mapbox")}},u.toggleSpikelines={name:"toggleSpikelines",title:function(e){return c(e,"Toggle Spike Lines")},icon:o.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var t=e._fullLayout,n=t._cartesianSpikesEnabled;t._cartesianSpikesEnabled="on"===n?"off":"on",r.call("_guiRelayout",e,function(e){for(var t="on"===e._fullLayout._cartesianSpikesEnabled,n=i.list(e,null,!0),r={},a=0;a<n.length;a++){var o=n[a];r[o._name+".showspikes"]=!!t||o._showSpikeInitial}return r}(e))}},u.resetViewMapbox={name:"resetViewMapbox",title:function(e){return c(e,"Reset view")},attr:"reset",icon:o.home,click:function(e){x(e,"mapbox")}},u.zoomInMapbox={name:"zoomInMapbox",title:function(e){return c(e,"Zoom in")},attr:"zoom",val:"in",icon:o.zoom_plus,click:y},u.zoomOutMapbox={name:"zoomOutMapbox",title:function(e){return c(e,"Zoom out")},attr:"zoom",val:"out",icon:o.zoom_minus,click:y}},EGun:function(e,t,n){"use strict";var r=n("/CZE");e.exports=function(e,t){for(var n=0;n<e.length;n++)e[n].i=n;r.mergeArray(t.text,e,"tx"),r.mergeArray(t.texttemplate,e,"txt"),r.mergeArray(t.hovertext,e,"htx"),r.mergeArray(t.customdata,e,"data"),r.mergeArray(t.textposition,e,"tp"),t.textfont&&(r.mergeArrayCastPositive(t.textfont.size,e,"ts"),r.mergeArray(t.textfont.color,e,"tc"),r.mergeArray(t.textfont.family,e,"tf"));var a=t.marker;if(a){r.mergeArrayCastPositive(a.size,e,"ms"),r.mergeArrayCastPositive(a.opacity,e,"mo"),r.mergeArray(a.symbol,e,"mx"),r.mergeArray(a.color,e,"mc");var i=a.line;a.line&&(r.mergeArray(i.color,e,"mlc"),r.mergeArrayCastPositive(i.width,e,"mlw"));var o=a.gradient;o&&"none"!==o.type&&(r.mergeArray(o.type,e,"mgt"),r.mergeArray(o.color,e,"mgc"))}}},EHyX:function(e,t,n){"use strict";var r=n("lNV6").texttemplateAttrs,a=n("lNV6").hovertemplateAttrs,i=n("9Okp"),o=n("mEVB"),l=n("21T9").dash,s=n("g9E0"),c=n("3mkv"),u=n("kJIm").extendFlat;e.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0,description:"Sets the x coordinates."},x0:{valType:"any",dflt:0,role:"info",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,role:"info",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,role:"info",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,role:"info",editType:"calc",anim:!0,description:["Sets the y coordinate step.","See `y0` for more info."].join(" ")},stackgroup:{valType:"string",role:"info",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",role:"info",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:"",role:"info",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",role:"info",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",role:"info",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:r({},{}),hovertext:{valType:"string",role:"info",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"],role:"info",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 "+c.PTS_LINESONLY+" points","and the trace is not stacked","then the default is *lines+markers*. Otherwise, *lines*."].join(" ")},hoveron:{valType:"flaglist",flags:["points","fills"],role:"info",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:a({},{keys:c.eventDataKeys}),line:{color:{valType:"color",role:"style",editType:"style",anim:!0,description:"Sets the line color."},width:{valType:"number",min:0,dflt:2,role:"style",editType:"style",anim:!0,description:"Sets the line width (in px)."},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",role:"style",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,role:"style",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({},l,{editType:"style"}),simplify:{valType:"boolean",dflt:!0,role:"info",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,role:"info",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,role:"info",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"],role:"style",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",role:"style",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:s.symbolList,dflt:"circle",arrayOk:!0,role:"style",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,role:"style",editType:"style",anim:!0,description:"Sets the marker opacity."},size:{valType:"number",min:0,dflt:6,arrayOk:!0,role:"style",editType:"calc",anim:!0,description:"Sets the marker size (in px)."},maxdisplayed:{valType:"number",min:0,dflt:0,role:"style",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,role:"style",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,role:"style",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",role:"info",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,role:"style",editType:"style",anim:!0,description:"Sets the width (in px) of the lines bounding the marker points."},editType:"calc"},i("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",role:"style",editType:"calc",description:["Sets the type of gradient used to fill the markers"].join(" ")},color:{valType:"color",arrayOk:!0,role:"style",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"},i("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,role:"style",editType:"style",description:"Sets the marker opacity of selected points."},color:{valType:"color",role:"style",editType:"style",description:"Sets the marker color of selected points."},size:{valType:"number",min:0,role:"style",editType:"style",description:"Sets the marker size of selected points."},editType:"style"},textfont:{color:{valType:"color",role:"style",editType:"style",description:"Sets the text font color of selected points."},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,role:"style",editType:"style",description:"Sets the marker opacity of unselected points, applied only when a selection exists."},color:{valType:"color",role:"style",editType:"style",description:"Sets the marker color of unselected points, applied only when a selection exists."},size:{valType:"number",min:0,role:"style",editType:"style",description:"Sets the marker size of unselected points, applied only when a selection exists."},editType:"style"},textfont:{color:{valType:"color",role:"style",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,role:"style",editType:"calc",description:["Sets the positions of the `text` elements","with respects to the (x,y) coordinates."].join(" ")},textfont:o({editType:"calc",colorEditType:"style",arrayOk:!0,description:"Sets the text font."}),r:{valType:"data_array",editType:"calc",description:["r coordinates in scatter traces are deprecated!","Please switch to the *scatterpolar* trace type.","Sets the radial coordinates","for legacy polar chart only."].join("")},t:{valType:"data_array",editType:"calc",description:["t coordinates in scatter traces are deprecated!","Please switch to the *scatterpolar* trace type.","Sets the angular coordinates","for legacy polar chart only."].join("")}}},EZ4C:function(e,t,n){"use strict";var r=n("/CZE"),a=n("plED"),i=n("gfA5").defaults;e.exports=function(e,t,n,o){var l,s,c=o.type,u=o.attributes,d=o.handleDefaults,h=o.partition||"x",f=t._subplots[c],p=f.length,g=p&&f[0].replace(/\d+$/,"");function v(e,t){return r.coerce(l,s,u,e,t)}for(var m=0;m<p;m++){var y=f[m];l=e[y]?e[y]:e[y]={},s=a.newContainer(t,y,g),v("uirevision",t.uirevision);var x={};x[h]=[m/p,(m+1)/p],i(s,t,v,x),o.id=y,d(l,s,v,o)}}},EbDI:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},EcrW:function(e,t,n){"use strict";var r=n("FO31");n.n(r).a},EsF5:function(e,t,n){"use strict";e.exports=function(){var e,t=[],n=-1,r=!1;function a(e,t){return e?(r=!0,e[t](),r=!1,this):this}return{add:function(e){return r||(t.splice(n+1,t.length-n),t.push(e),n=t.length-1),this},setCallback:function(t){e=t},undo:function(){var r=t[n];return r?(a(r,"undo"),n-=1,e&&e(r.undo),this):this},redo:function(){var r=t[n+1];return r?(a(r,"redo"),n+=1,e&&e(r.redo),this):this},clear:function(){t=[],n=-1},hasUndo:function(){return-1!==n},hasRedo:function(){return n<t.length-1},getCommands:function(){return t},getPreviousCommand:function(){return t[n-1]},getIndex:function(){return n}}}},ExA7:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},FHfC:function(e,t,n){"use strict";var r=n("3PNt");e.exports=r&&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}()},FLbl:function(e,t,n){"use strict";var r=n("u0qo"),a=n("yzSc").overrideAll,i=n("plED").templatedArray;e.exports=a(i("annotation",{visible:r.visible,x:{valType:"any",role:"info",description:["Sets the annotation's x position."].join(" ")},y:{valType:"any",role:"info",description:["Sets the annotation's y position."].join(" ")},z:{valType:"any",role:"info",description:["Sets the annotation's z position."].join(" ")},ax:{valType:"number",role:"info",description:["Sets the x component of the arrow tail about the arrow head (in pixels)."].join(" ")},ay:{valType:"number",role:"info",description:["Sets the y component of the arrow tail about the arrow head (in pixels)."].join(" ")},xanchor:r.xanchor,xshift:r.xshift,yanchor:r.yanchor,yshift:r.yshift,text:r.text,textangle:r.textangle,font:r.font,width:r.width,height:r.height,opacity:r.opacity,align:r.align,valign:r.valign,bgcolor:r.bgcolor,bordercolor:r.bordercolor,borderpad:r.borderpad,borderwidth:r.borderwidth,showarrow:r.showarrow,arrowcolor:r.arrowcolor,arrowhead:r.arrowhead,startarrowhead:r.startarrowhead,arrowside:r.arrowside,arrowsize:r.arrowsize,startarrowsize:r.startarrowsize,arrowwidth:r.arrowwidth,standoff:r.standoff,startstandoff:r.startstandoff,hovertext:r.hovertext,hoverlabel:r.hoverlabel,captureevents:r.captureevents}),"calc","from-root")},FO31:function(e,t,n){},Fyky:function(e,t,n){"use strict";var r=n("/CZE"),a=n("0RW4");e.exports=function(e,t,n,i){i("opacity");var o=i("bgcolor"),l=i("bordercolor"),s=a.opacity(l);i("borderpad");var c=i("borderwidth"),u=i("showarrow");if(i("text",u?" ":n._dfltTitle.annotation),i("textangle"),r.coerceFont(i,"font",n.font),i("width"),i("align"),i("height")&&i("valign"),u){var d,h,f=i("arrowside");-1!==f.indexOf("end")&&(d=i("arrowhead"),h=i("arrowsize")),-1!==f.indexOf("start")&&(i("startarrowhead",d),i("startarrowsize",h)),i("arrowcolor",s?t.bordercolor:a.defaultLine),i("arrowwidth",2*(s&&c||1)),i("standoff"),i("startstandoff")}var p=i("hovertext"),g=n.hoverlabel||{};if(p){var v=i("hoverlabel.bgcolor",g.bgcolor||(a.opacity(o)?a.rgb(o):a.defaultLine)),m=i("hoverlabel.bordercolor",g.bordercolor||a.contrast(v));r.coerceFont(i,"hoverlabel.font",{family:g.font.family,size:g.font.size,color:g.font.color||m})}i("captureevents",!!p)}},G2oM:function(e,t,n){"use strict";var r=n("GbLo"),a=n("/CZE"),i=n("6AZA").BADNUM;e.exports=function(e,t,n,o){var l,s,c,u,d,h;function f(e){if(r(e))return+e}if(t&&t.transpose){for(l=0,d=0;d<e.length;d++)l=Math.max(l,e[d].length);if(0===l)return!1;c=function(e){return e.length},u=function(e,t,n){return(e[n]||[])[t]}}else l=e.length,c=function(e,t){return e[t].length},u=function(e,t,n){return(e[t]||[])[n]};var p=function(e,t,n){return t===i||n===i?i:u(e,t,n)};function g(e){if(t&&"carpet"!==t.type&&"contourcarpet"!==t.type&&e&&"category"===e.type&&t["_"+e._id.charAt(0)].length){var n=e._id.charAt(0),r={},o=t["_"+n+"CategoryMap"]||t[n];for(d=0;d<o.length;d++)r[o[d]]=d;return function(t){var n=r[e._categories[t]];return n+1?n:i}}return a.identity}var v=g(n),m=g(o);o&&"category"===o.type&&(l=o._categories.length);var y=new Array(l);for(d=0;d<l;d++)for(s=n&&"category"===n.type?n._categories.length:c(e,d),y[d]=new Array(s),h=0;h<s;h++)y[d][h]=f(p(e,m(d),v(h)));return y}},G4gu:function(e,t,n){"use strict";var r=n("bljh"),a=n("rhNM");function i(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function o(e,t,n){var r="plotly.js-style-"+e,i=document.getElementById(r);i||((i=document.createElement("style")).setAttribute("id",r),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var o=i.sheet;o.insertRule?o.insertRule(t+"{"+n+"}",0):o.addRule?o.addRule(t,n,0):a.warn("addStyleRule failed")}e.exports={getGraphDiv:function(e){var t;if("string"==typeof e){if(null===(t=document.getElementById(e)))throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}if(null==e)throw new Error("DOM element provided is null or undefined");return e},isPlotDiv:function(e){var t=r.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")},removeElement:i,addStyleRule:function(e,t){o("global",e,t)},addRelatedStyleRule:o,deleteRelatedStyleRule:function(e){var t="plotly.js-style-"+e,n=document.getElementById(t);n&&i(n)}}},G767:function(e,t,n){"use strict";var r=n("bljh"),a=n("GbLo"),i=n("/CZE"),o=n("dVlp"),l=new DOMParser;function s(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var c=s.prototype;c.update=function(e,t){this.graphInfo=e;var n=this.graphInfo._context,r=this.graphInfo._fullLayout,a="modebar-"+r._uid;this.element.setAttribute("id",a),this._uid=a,this.element.className="modebar","hover"===n.displayModeBar&&(this.element.className+=" modebar--hover ease-bg"),"v"===r.modebar.orientation&&(this.element.className+=" vertical",t=t.reverse());var o=r.modebar,l="hover"===n.displayModeBar?".js-plotly-plot .plotly:hover ":"";i.deleteRelatedStyleRule(a),i.addRelatedStyleRule(a,l+"#"+a+" .modebar-group","background-color: "+o.bgcolor),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn .icon path","fill: "+o.color),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn:hover .icon path","fill: "+o.activecolor),i.addRelatedStyleRule(a,"#"+a+" .modebar-btn.active .icon path","fill: "+o.activecolor);var s=!this.hasButtons(t),c=this.hasLogo!==n.displaylogo,u=this.locale!==n.locale;if(this.locale=n.locale,(s||c||u)&&(this.removeAllButtons(),this.updateButtons(t),n.watermark||n.displaylogo)){var d=this.getLogo();n.watermark&&(d.className=d.className+" watermark"),"v"===r.modebar.orientation?this.element.insertBefore(d,this.element.childNodes[0]):this.element.appendChild(d),this.hasLogo=!0}this.updateActiveButton()},c.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(e){var n=t.createGroup();e.forEach((function(e){var r=e.name;if(!r)throw new Error("must provide button 'name' in button config");if(-1!==t.buttonsNames.indexOf(r))throw new Error("button name '"+r+"' is taken");t.buttonsNames.push(r);var a=t.createButton(e);t.buttonElements.push(a),n.appendChild(a)})),t.element.appendChild(n)}))},c.createGroup=function(){var e=document.createElement("div");return e.className="modebar-group",e},c.createButton=function(e){var t=this,n=document.createElement("a");n.setAttribute("rel","tooltip"),n.className="modebar-btn";var a=e.title;void 0===a?a=e.name:"function"==typeof a&&(a=a(this.graphInfo)),(a||0===a)&&n.setAttribute("data-title",a),void 0!==e.attr&&n.setAttribute("data-attr",e.attr);var i=e.val;if(void 0!==i&&("function"==typeof i&&(i=i(this.graphInfo)),n.setAttribute("data-val",i)),"function"!=typeof e.click)throw new Error("must provide button 'click' function in button config");n.addEventListener("click",(function(n){e.click(t.graphInfo,n),t.updateActiveButton(n.currentTarget)})),n.setAttribute("data-toggle",e.toggle||!1),e.toggle&&r.select(n).classed("active",!0);var l=e.icon;return"function"==typeof l?n.appendChild(l()):n.appendChild(this.createIcon(l||o.question)),n.setAttribute("data-gravity",e.gravity||"n"),n},c.createIcon=function(e){var t,n=a(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg";if(e.path){(t=document.createElementNS(r,"svg")).setAttribute("viewBox",[0,0,e.width,n].join(" ")),t.setAttribute("class","icon");var i=document.createElementNS(r,"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=l.parseFromString(e.svg,"application/xml").childNodes[0]);return t.setAttribute("height","1em"),t.setAttribute("width","1em"),t},c.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,n=void 0!==e?e.getAttribute("data-attr"):null;this.buttonElements.forEach((function(e){var a=e.getAttribute("data-val")||!0,o=e.getAttribute("data-attr"),l="true"===e.getAttribute("data-toggle"),s=r.select(e);if(l)o===n&&s.classed("active",!s.classed("active"));else{var c=null===o?o:i.nestedProperty(t,o).get();s.classed("active",c===a)}}))},c.hasButtons=function(e){var t=this.buttons;if(!t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n){if(e[n].length!==t[n].length)return!1;for(var r=0;r<e[n].length;r++)if(e[n][r].name!==t[n][r].name)return!1}return!0},c.getLogo=function(){var e=this.createGroup(),t=document.createElement("a");return t.href="https://plotly.com/",t.target="_blank",t.setAttribute("data-title",i._(this.graphInfo,"Produced with Plotly")),t.className="modebar-btn plotlyjsicon modebar-btn--logo",t.appendChild(this.createIcon(o.newplotlylogo)),e.appendChild(t),e},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){i.removeElement(this.container.querySelector(".modebar")),i.deleteRelatedStyleRule(this._uid)},e.exports=function(e,t){var n=e._fullLayout,a=new s({graphInfo:e,container:n._modebardiv.node(),buttons:t});return n._privateplot&&r.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}},GHb7:function(e,t,n){"use strict";var r=n("JEGg"),a=n("Nx4I"),i=n("g9E0").dashStyle,o=n("0RW4"),l=n("pcRN"),s=n("xMdC").makeEventData,c=n("4htA"),u=c.freeMode,d=c.rectMode,h=c.drawMode,f=c.openMode,p=c.selectMode,g=n("ymS1"),v=n("s02k").handleEllipse,m=n("OyTQ"),y=n("/CZE"),x=n("tos6"),b=n("ffJW"),w=n("PBw4").getFromId,_=n("ghsG"),k=n("o5LV").redrawReglTraces,T=n("0wH6"),M=T.MINSELECT,A=x.filter,S=x.tester,C=n("6Ue+").clearSelect,L=n("rDM+"),I=L.p2r,E=L.axValue,O=L.getTransform;function D(e,t,n,r,a,i,o){var l,s,c,u,d,h,p,v,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)){j(e,t,i);var w=function(e,t){var n,r,a=e[0],i=-1,o=[];for(r=0;r<t.length;r++)if(n=t[r],a.fullData._expandedIndex===n.cd[0].trace._expandedIndex){if(!0===a.hoverOnBox)break;void 0!==a.pointNumber?i=a.pointNumber:void 0!==a.binNumber&&(i=a.binNumber,o=a.pointNumbers);break}return{pointNumber:i,pointNumbers:o,searchInfo:n}}(y,l=F(t,n,r,a));if(w.pointNumbers.length>0?function(e,t){var n,r,a,i=[];for(a=0;a<e.length;a++)(n=e[a]).cd[0].trace.selectedpoints&&n.cd[0].trace.selectedpoints.length>0&&i.push(n);if(1===i.length&&i[0]===t.searchInfo&&(r=t.searchInfo.cd[0].trace).selectedpoints.length===t.pointNumbers.length){for(a=0;a<t.pointNumbers.length;a++)if(r.selectedpoints.indexOf(t.pointNumbers[a])<0)return!1;return!0}return!1}(l,w):function(e){var t,n,r,a=0;for(r=0;r<e.length;r++)if(t=e[r],(n=t.cd[0].trace).selectedpoints){if(n.selectedpoints.length>1)return!1;if((a+=n.selectedpoints.length)>1)return!1}return 1===a}(l)&&(h=B(w))){for(o&&o.remove(),m=0;m<l.length;m++)(s=l[m])._module.selectPoints(s,!1);H(t,l),R(i),x&&t.emit("plotly_deselect",null)}else{for(p=e.shiftKey&&(void 0!==h?h:B(w)),c=function(e,t,n){return{pointNumber:e,searchInfo:t,subtract:n}}(w.pointNumber,w.searchInfo,p),u=N(i.selectionDefs.concat([c])),m=0;m<l.length;m++)if(d=V(l[m]._module.selectPoints(l[m],u),l[m]),b.length)for(var _=0;_<d.length;_++)b.push(d[_]);else b=d;if(H(t,l,v={points:b}),c&&i&&i.selectionDefs.push(c),o){var k=i.mergedPolygons,T=f(i.dragmode);g(G(k,T),o,i)}x&&t.emit("plotly_selected",v)}}}function P(e){return"pointNumber"in e&&"searchInfo"in e}function z(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(t,n,r,a){var i=e.searchInfo.cd[0].trace._expandedIndex;return a.cd[0].trace._expandedIndex===i&&r===e.pointNumber},isRect:!1,degenerate:!1,subtract:e.subtract}}function N(e){for(var t=[],n=P(e[0])?0:e[0][0][0],r=n,a=P(e[0])?0:e[0][0][1],i=a,o=0;o<e.length;o++)if(P(e[o]))t.push(z(e[o]));else{var l=x.tester(e[o]);l.subtract=e[o].subtract,t.push(l),n=Math.min(n,l.xmin),r=Math.max(r,l.xmax),a=Math.min(a,l.ymin),i=Math.max(i,l.ymax)}return{xmin:n,xmax:r,ymin:a,ymax:i,pts:[],contains:function(e,n,r,a){for(var i=!1,o=0;o<t.length;o++)t[o].contains(e,n,r,a)&&(i=!1===t[o].subtract);return i},isRect:!1,degenerate:!1}}function j(e,t,n){t._fullLayout._drawing=!1;var r=t._fullLayout,a=n.plotinfo,i=n.dragmode,o=r._lastSelectedSubplot&&r._lastSelectedSubplot===a.id,l=(e.shiftKey||e.altKey)&&!(h(i)&&f(i));o&&l&&a.selection&&a.selection.selectionDefs&&!n.selectionDefs?(n.selectionDefs=a.selection.selectionDefs,n.mergedPolygons=a.selection.mergedPolygons):l&&a.selection||R(n),o||(C(t),r._lastSelectedSubplot=a.id)}function R(e){var t=e.dragmode,n=e.plotinfo,r=e.gd;if(r._fullLayout._activeShapeIndex>=0&&r._fullLayout._deactivateShape(r),h(t)){var i=r._fullLayout._zoomlayer.selectAll(".select-outline-"+n.id);if(i&&r._fullLayout._drawing){var o=m(i,e);o&&a.call("_guiRelayout",r,{shapes:o}),r._fullLayout._drawing=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function F(e,t,n,r){var a,i,o,l=[],s=t.map((function(e){return e._id})),c=n.map((function(e){return e._id}));for(o=0;o<e.calcdata.length;o++)if(!0===(i=(a=e.calcdata[o])[0].trace).visible&&i._module&&i._module.selectPoints)if(!r||i.subplot!==r&&i.geo!==r)if("splom"===i.type&&i._xaxes[s[0]]&&i._yaxes[c[0]]){var u=h(i._module,a,t[0],n[0]);u.scene=e._fullLayout._splomScenes[i.uid],l.push(u)}else if("sankey"===i.type){var d=h(i._module,a,t[0],n[0]);l.push(d)}else{if(-1===s.indexOf(i.xaxis))continue;if(-1===c.indexOf(i.yaxis))continue;l.push(h(i._module,a,w(e,i.xaxis),w(e,i.yaxis)))}else l.push(h(i._module,a,t[0],n[0]));return l;function h(e,t,n,r){return{_module:e,cd:t,xaxis:n,yaxis:r}}}function B(e){var t=e.searchInfo.cd[0].trace,n=e.pointNumber,r=e.pointNumbers,a=r.length>0?r[0]:n;return!!t.selectedpoints&&t.selectedpoints.indexOf(a)>-1}function H(e,t,n){var r,i,o,l;for(r=0;r<t.length;r++){var s=t[r].cd[0].trace._fullInput,c=e._fullLayout._tracePreGUI[s.uid]||{};void 0===c.selectedpoints&&(c.selectedpoints=s._input.selectedpoints||null)}if(n){var u=n.points||[];for(r=0;r<t.length;r++)(l=t[r].cd[0].trace)._input.selectedpoints=l._fullInput.selectedpoints=[],l._fullInput!==l&&(l.selectedpoints=[]);for(r=0;r<u.length;r++){var d=u[r],h=d.data,f=d.fullData;d.pointIndices?([].push.apply(h.selectedpoints,d.pointIndices),l._fullInput!==l&&[].push.apply(f.selectedpoints,d.pointIndices)):(h.selectedpoints.push(d.pointIndex),l._fullInput!==l&&f.selectedpoints.push(d.pointIndex))}}else for(r=0;r<t.length;r++)delete(l=t[r].cd[0].trace).selectedpoints,delete l._input.selectedpoints,l._fullInput!==l&&delete l._fullInput.selectedpoints;var p=!1;for(r=0;r<t.length;r++){l=(o=(i=t[r]).cd)[0].trace,a.traceIs(l,"regl")&&(p=!0);var g=i._module,v=g.styleOnSelect||g.style;v&&(v(e,o,o[0].node3),o[0].nodeRangePlot3&&v(e,o,o[0].nodeRangePlot3))}p&&(_(e),k(e))}function V(e,t){if(Array.isArray(e))for(var n=t.cd,r=t.cd[0].trace,a=0;a<e.length;a++)e[a]=s(e[a],r,n);return e}function G(e,t){for(var n=[],r=0;r<e.length;r++){n[r]=[];for(var a=0;a<e[r].length;a++){n[r][a]=[],n[r][a][0]=a?"L":"M";for(var i=0;i<e[r][a].length;i++)n[r][a].push(e[r][a][i])}t||n[r].push(["Z",n[r][0][1],n[r][0][2]])}return n}e.exports={prepSelect:function(e,t,n,a,s){var c,m,x,w,_,k,C,L=u(s),P=d(s),z=f(s),B=h(s),U=p(s),q="drawcircle"===s,Z="drawline"===s||q,W=a.gd,Y=W._fullLayout,X=Y._zoomlayer,$=a.element.getBoundingClientRect(),J=a.plotinfo,K=O(J),Q=t-$.left,ee=n-$.top,te=Q,ne=ee,re="M"+Q+","+ee,ae=a.xaxes[0]._length,ie=a.yaxes[0]._length,oe=a.xaxes.concat(a.yaxes),le=e.altKey&&!(h(s)&&z);j(e,W,a),L&&(c=A([[Q,ee]],T.BENDPX));var se=X.selectAll("path.select-outline-"+J.id).data(B?[0]:[1,2]),ce=Y.newshape;se.enter().append("path").attr("class",(function(e){return"select-outline select-outline-"+e+" select-outline-"+J.id})).style(B?{opacity:ce.opacity/2,fill:z?void 0:ce.fillcolor,stroke:ce.line.color,"stroke-dasharray":i(ce.line.dash,ce.line.width),"stroke-width":ce.line.width+"px"}:{}).attr("fill-rule",ce.fillrule).classed("cursor-move",!!B).attr("transform",K).attr("d",re+"Z");var ue,de=X.append("path").attr("class","zoombox-corners").style({fill:o.background,stroke:o.defaultLine,"stroke-width":1}).attr("transform",K).attr("d","M0,0Z"),he=Y._uid+T.SELECTID,fe=[],pe=F(W,a.xaxes,a.yaxes,a.subplot);function ge(e,t){return e-t}ue=J.fillRangeItems?J.fillRangeItems:P?function(e,t){var n=e.range={};for(_=0;_<oe.length;_++){var r=oe[_],a=r._id.charAt(0);n[r._id]=[I(r,t[a+"min"]),I(r,t[a+"max"])].sort(ge)}}:function(e,t,n){var r=e.lassoPoints={};for(_=0;_<oe.length;_++){var a=oe[_];r[a._id]=n.filtered.map(E(a))}},a.moveFn=function(e,t){te=Math.max(0,Math.min(ae,e+Q)),ne=Math.max(0,Math.min(ie,t+ee));var n=Math.abs(te-Q),i=Math.abs(ne-ee);if(P){var o,l,s;if(U){var u=Y.selectdirection;switch(o="any"===u?i<Math.min(.6*n,M)?"h":n<Math.min(.6*i,M)?"v":"d":u){case"h":l=q?ie/2:0,s=ie;break;case"v":l=q?ae/2:0,s=ae}}if(B)switch(Y.newshape.drawdirection){case"vertical":o="h",l=q?ie/2:0,s=ie;break;case"horizontal":o="v",l=q?ae/2:0,s=ae;break;case"ortho":n<i?(o="h",l=ee,s=ne):(o="v",l=Q,s=te);break;default:o="d"}"h"===o?((w=Z?v(q,[te,l],[te,s]):[[Q,l],[Q,s],[te,s],[te,l]]).xmin=Z?te:Math.min(Q,te),w.xmax=Z?te:Math.max(Q,te),w.ymin=Math.min(l,s),w.ymax=Math.max(l,s),de.attr("d","M"+w.xmin+","+(ee-M)+"h-4v"+2*M+"h4ZM"+(w.xmax-1)+","+(ee-M)+"h4v"+2*M+"h-4Z")):"v"===o?((w=Z?v(q,[l,ne],[s,ne]):[[l,ee],[l,ne],[s,ne],[s,ee]]).xmin=Math.min(l,s),w.xmax=Math.max(l,s),w.ymin=Z?ne:Math.min(ee,ne),w.ymax=Z?ne:Math.max(ee,ne),de.attr("d","M"+(Q-M)+","+w.ymin+"v-4h"+2*M+"v4ZM"+(Q-M)+","+(w.ymax-1)+"v4h"+2*M+"v-4Z")):"d"===o&&((w=Z?v(q,[Q,ee],[te,ne]):[[Q,ee],[Q,ne],[te,ne],[te,ee]]).xmin=Math.min(Q,te),w.xmax=Math.max(Q,te),w.ymin=Math.min(ee,ne),w.ymax=Math.max(ee,ne),de.attr("d","M0,0Z"))}else L&&(c.addPt([te,ne]),w=c.filtered);a.selectionDefs&&a.selectionDefs.length?(x=function(e,t,n){if(n)return r.difference({regions:e,inverted:!1},{regions:[t],inverted:!1}).regions;return r.union({regions:e,inverted:!1},{regions:[t],inverted:!1}).regions}(a.mergedPolygons,w,le),w.subtract=le,m=N(a.selectionDefs.concat([w]))):(x=[w],m=S(w)),g(G(x,z),se,a),U&&b.throttle(he,T.SELECTDELAY,(function(){var e;fe=[];var t,n=[];for(_=0;_<pe.length;_++)if(t=(k=pe[_])._module.selectPoints(k,m),n.push(t),e=V(t,k),fe.length)for(var r=0;r<e.length;r++)fe.push(e[r]);else fe=e;H(W,pe,C={points:fe}),ue(C,w,c),a.gd.emit("plotly_selecting",C)}))},a.clickFn=function(e,t){if(de.remove(),W._fullLayout._activeShapeIndex>=0)W._fullLayout._deactivateShape(W);else if(!B){var n=Y.clickmode;b.done(he).then((function(){if(b.clear(he),2===e){for(se.remove(),_=0;_<pe.length;_++)(k=pe[_])._module.selectPoints(k,!1);H(W,pe),R(a),W.emit("plotly_deselect",null)}else n.indexOf("select")>-1&&D(t,W,a.xaxes,a.yaxes,a.subplot,a,se),"event"===n&&W.emit("plotly_selected",void 0);l.click(W,t)})).catch(y.error)}},a.doneFn=function(){de.remove(),b.done(he).then((function(){b.clear(he),a.gd.emit("plotly_selected",C),w&&a.selectionDefs&&(w.subtract=le,a.selectionDefs.push(w),a.mergedPolygons.length=0,[].push.apply(a.mergedPolygons,x)),a.doneFnCompleted&&a.doneFnCompleted(fe)})).catch(y.error),B&&R(a)}},clearSelect:C,clearSelectionsCache:R,selectOnClick:D}},GLsQ:function(e,t,n){"use strict";var r=n("/CZE"),a=n("HIIg"),i=n("gfA5").defaults,o=n("plED"),l=n("5azm"),s=n("SbTw"),c=n("2S8E"),u=n("J+Po"),d=n("UAgb");function h(e,t){function n(n,i){return r.coerce(e,t,a.gauge.steps,n,i)}n("color"),n("line.color"),n("line.width"),n("range"),n("thickness")}e.exports={supplyDefaults:function(e,t,n,f){function p(n,i){return r.coerce(e,t,a,n,i)}i(t,f,p),p("mode"),t._hasNumber=-1!==t.mode.indexOf("number"),t._hasDelta=-1!==t.mode.indexOf("delta"),t._hasGauge=-1!==t.mode.indexOf("gauge");var g=p("value");t._range=[0,"number"==typeof g?1.5*g:1];var v,m,y,x,b,w,_=new Array(2);function k(e,t){return r.coerce(y,x,a.gauge,e,t)}function T(e,t){return r.coerce(b,w,a.gauge.axis,e,t)}if(t._hasNumber&&(p("number.valueformat"),p("number.font.color",f.font.color),p("number.font.family",f.font.family),p("number.font.size"),void 0===t.number.font.size&&(t.number.font.size=s.defaultNumberFontSize,_[0]=!0),p("number.prefix"),p("number.suffix"),v=t.number.font.size),t._hasDelta&&(p("delta.font.color",f.font.color),p("delta.font.family",f.font.family),p("delta.font.size"),void 0===t.delta.font.size&&(t.delta.font.size=(t._hasNumber?.5:1)*(v||s.defaultNumberFontSize),_[1]=!0),p("delta.reference",t.value),p("delta.relative"),p("delta.valueformat",t.delta.relative?"2%":""),p("delta.increasing.symbol"),p("delta.increasing.color"),p("delta.decreasing.symbol"),p("delta.decreasing.color"),p("delta.position"),m=t.delta.font.size),t._scaleNumbers=(!t._hasNumber||_[0])&&(!t._hasDelta||_[1])||!1,p("title.font.color",f.font.color),p("title.font.family",f.font.family),p("title.font.size",.25*(v||m||s.defaultNumberFontSize)),p("title.text"),t._hasGauge){(y=e.gauge)||(y={}),x=o.newContainer(t,"gauge"),k("shape"),(t._isBullet="bullet"===t.gauge.shape)||p("title.align","center"),(t._isAngular="angular"===t.gauge.shape)||p("align","center"),k("bgcolor",f.paper_bgcolor),k("borderwidth"),k("bordercolor"),k("bar.color"),k("bar.line.color"),k("bar.line.width"),k("bar.thickness",s.valueThickness*("bullet"===t.gauge.shape?.5:1)),l(y,x,{name:"steps",handleItemDefaults:h}),k("threshold.value"),k("threshold.thickness"),k("threshold.line.width"),k("threshold.line.color"),b={},y&&(b=y.axis||{}),w=o.newContainer(x,"axis"),T("visible"),t._range=T("range",t._range);var M={outerTicks:!0};c(b,w,T,"linear"),d(b,w,T,"linear",M),u(b,w,T,M)}else p("title.align","center"),p("align","center"),t._isAngular=t._isBullet=!1;t._length=null}}},GXgJ:function(e,t,n){"use strict";var r=n("GbLo");e.exports=function(e){var t=e.marker,n=t.sizeref||1,a=t.sizemin||0,i="area"===t.sizemode?function(e){return Math.sqrt(e/n)}:function(e){return e/n};return function(e){var t=i(e/2);return r(t)&&t>0?Math.max(t,a):0}}},GZnn:function(e,t,n){"use strict";var r=n("bljh"),a=n("GbLo"),i=n("u3HJ"),o=n("Nx4I"),l=n("/CZE"),s=n("g9E0"),c=n("0RW4"),u=n("A3kh"),d=n("cqRZ"),h=n("Y9zF").OPPOSITE_SIDE,f=/ [XY][0-9]* /;e.exports={draw:function(e,t,n){var p,g=n.propContainer,v=n.propName,m=n.placeholder,y=n.traceIndex,x=n.avoid||{},b=n.attributes,w=n.transform,_=n.containerGroup,k=e._fullLayout,T=1,M=!1,A=g.title,S=(A&&A.text?A.text:"").trim(),C=A&&A.font?A.font:{},L=C.family,I=C.size,E=C.color;"title.text"===v?p="titleText":-1!==v.indexOf("axis")?p="axisTitleText":v.indexOf(!0)&&(p="colorbarTitleText");var O=e._context.edits[p];""===S?T=0:S.replace(f," % ")===m.replace(f," % ")&&(T=.2,M=!0,O||(S="")),n._meta?S=l.templateString(S,n._meta):k._meta&&(S=l.templateString(S,k._meta));var D=S||O;_||(_=l.ensureSingle(k._infolayer,"g","g-"+t));var P=_.selectAll("text").data(D?[0]:[]);if(P.enter().append("text"),P.text(S).attr("class",t),P.exit().remove(),!D)return _;function z(e){l.syncOrAsync([N,j],e)}function N(t){var n;return w?(n="",w.rotate&&(n+="rotate("+[w.rotate,b.x,b.y]+")"),w.offset&&(n+="translate(0, "+w.offset+")")):n=null,t.attr("transform",n),t.style({"font-family":L,"font-size":r.round(I,2)+"px",fill:c.rgb(E),opacity:T*c.opacity(E),"font-weight":i.fontWeight}).attr(b).call(u.convertToTspans,e),i.previousPromises(e)}function j(e){var t=r.select(e.node().parentNode);if(x&&x.selection&&x.side&&S){t.attr("transform",null);var n=h[x.side],i="left"===x.side||"top"===x.side?-1:1,o=a(x.pad)?x.pad:2,c=s.bBox(t.node()),u={left:0,top:0,right:k.width,bottom:k.height},d=x.maxShift||i*(u[x.side]-c[x.side]),f=0;if(d<0)f=d;else{var p=x.offsetLeft||0,g=x.offsetTop||0;c.left-=p,c.right-=p,c.top-=g,c.bottom-=g,x.selection.each((function(){var e=s.bBox(this);l.bBoxIntersect(c,e,o)&&(f=Math.max(f,i*(e[x.side]-c[n])+o))})),f=Math.min(d,f)}if(f>0||d<0){var v={left:[-f,0],right:[f,0],top:[0,-f],bottom:[0,f]}[x.side];t.attr("transform","translate("+v+")")}}}return P.call(z),O&&(S?P.on(".opacity",null):(T=0,M=!0,P.text(m).on("mouseover.opacity",(function(){r.select(this).transition().duration(d.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){r.select(this).transition().duration(d.HIDE_PLACEHOLDER).style("opacity",0)}))),P.call(u.makeEditable,{gd:e}).on("edit",(function(t){void 0!==y?o.call("_guiRestyle",e,v,t,y):o.call("_guiRelayout",e,v,t)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(z)})).on("input",(function(e){this.text(e||" ").call(u.positionText,b.x,b.y)}))),P.classed("js-placeholder",M),_}}},GbLo:function(e,t,n){"use strict";var r=n("6bQy");e.exports=function(e){var t=typeof e;if("string"===t){var n=e;if(0===(e=+e)&&r(n))return!1}else if("number"!==t)return!1;return e-e<1}},"GeF/":function(e,t,n){"use strict";var r,a,i,o=n("09xr").mod;function l(e,t,n,r,a,i,o,l){var s=n-e,c=a-e,u=o-a,d=r-t,h=i-t,f=l-i,p=s*f-u*d;if(0===p)return null;var g=(c*f-u*h)/p,v=(c*d-s*h)/p;return v<0||v>1||g<0||g>1?null:{x:e+s*g,y:t+d*g}}function s(e,t,n,r,a){var i=r*e+a*t;if(i<0)return r*r+a*a;if(i>n){var o=r-e,l=a-t;return o*o+l*l}var s=r*t-a*e;return s*s/n}t.segmentsIntersect=l,t.segmentDistance=function(e,t,n,r,a,i,o,c){if(l(e,t,n,r,a,i,o,c))return 0;var u=n-e,d=r-t,h=o-a,f=c-i,p=u*u+d*d,g=h*h+f*f,v=Math.min(s(u,d,p,a-e,i-t),s(u,d,p,o-e,c-t),s(h,f,g,e-a,t-i),s(h,f,g,n-a,r-i));return Math.sqrt(v)},t.getTextLocation=function(e,t,n,l){if(e===a&&l===i||(r={},a=e,i=l),r[n])return r[n];var s=e.getPointAtLength(o(n-l/2,t)),c=e.getPointAtLength(o(n+l/2,t)),u=Math.atan((c.y-s.y)/(c.x-s.x)),d=e.getPointAtLength(o(n,t)),h={x:(4*d.x+s.x+c.x)/6,y:(4*d.y+s.y+c.y)/6,theta:u};return r[n]=h,h},t.clearLocationCache=function(){a=null},t.getVisibleSegment=function(e,t,n){var r,a,i=t.left,o=t.right,l=t.top,s=t.bottom,c=0,u=e.getTotalLength(),d=u;function h(t){var n=e.getPointAtLength(t);0===t?r=n:t===u&&(a=n);var c=n.x<i?i-n.x:n.x>o?n.x-o:0,d=n.y<l?l-n.y:n.y>s?n.y-s:0;return Math.sqrt(c*c+d*d)}for(var f=h(c);f;){if((c+=f+n)>d)return;f=h(c)}for(f=h(d);f;){if(c>(d-=f+n))return;f=h(d)}return{min:c,max:d,len:d-c,total:u,isClosed:0===c&&d===u&&Math.abs(r.x-a.x)<.1&&Math.abs(r.y-a.y)<.1}},t.findPointOnPath=function(e,t,n,r){for(var a,i,o,l=(r=r||{}).pathLength||e.getTotalLength(),s=r.tolerance||.001,c=r.iterationLimit||30,u=e.getPointAtLength(0)[n]>e.getPointAtLength(l)[n]?-1:1,d=0,h=0,f=l;d<c;){if(a=(h+f)/2,o=(i=e.getPointAtLength(a))[n]-t,Math.abs(o)<s)return i;u*o>0?f=a:h=a,d++}return i}},GkA6:function(e,t,n){"use strict";var r=n("bljh"),a=n("GbLo"),i=n("/CZE"),o=i.cleanNumber,l=i.ms2DateTime,s=i.dateTime2ms,c=i.ensureNumber,u=i.isArrayOrTypedArray,d=n("6AZA"),h=d.FP_SAFE,f=d.BADNUM,p=d.LOG_CLIP,g=d.ONEDAY,v=d.ONEHOUR,m=d.ONEMIN,y=d.ONESEC,x=n("PBw4"),b=n("0wH6"),w=b.HOUR_PATTERN,_=b.WEEKDAY_PATTERN;function k(e){return Math.pow(10,e)}function T(e){return null!=e}e.exports=function(e,t){t=t||{};var n=e._id||"x",d=n.charAt(0);function M(t,n){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&n&&e.range&&2===e.range.length){var r=e.range[0],a=e.range[1];return.5*(r+a-2*p*Math.abs(r-a))}return f}function A(t,n,r,o){var l=s(t,r||e.calendar);if(l===f){if(!a(t))return f;if(t=+t,(o||{}).msUTC)return t;var c=Math.floor(10*i.mod(t+.05,1)),u=Math.round(t-c/10);l=s(new Date(u))+c/10}return l}function S(t,n,r){return l(t,n,r||e.calendar)}function C(t){return e._categories[Math.round(t)]}function L(t){if(T(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 n=e._categories.length-1;return e._categoriesMap[t]=n,n}return f}function I(t){if(e._categoriesMap)return e._categoriesMap[t]}function E(e){var t=I(e);return void 0!==t?t:a(e)?+e:void 0}function O(e,t,n){return r.round(n+t*e,2)}function D(e,t,n){return(e-n)/t}var P=function(t){return a(t)?O(t,e._m,e._b):f},z=function(t){return D(t,e._m,e._b)};if(e.rangebreaks){var N="y"===d;P=function(t){if(!a(t))return f;var n=e._rangebreaks.length;if(!n)return O(t,e._m,e._b);var r=N;e.range[0]>e.range[1]&&(r=!r);for(var i=r?-1:1,o=i*t,l=0,s=0;s<n;s++){var c=i*e._rangebreaks[s].min,u=i*e._rangebreaks[s].max;if(o<c)break;if(!(o>u)){l=o<(c+u)/2?s:s+1;break}l=s+1}var d=e._B[l]||0;return isFinite(d)?O(t,e._m2,d):0},z=function(t){var n=e._rangebreaks.length;if(!n)return D(t,e._m,e._b);for(var r=0,a=0;a<n&&!(t<e._rangebreaks[a].pmin);a++)t>e._rangebreaks[a].pmax&&(r=a+1);return D(t,e._m2,e._B[r])}}e.c2l="log"===e.type?M:c,e.l2c="log"===e.type?k:c,e.l2p=P,e.p2l=z,e.c2p="log"===e.type?function(e,t){return P(M(e,t))}:P,e.p2c="log"===e.type?function(e){return k(z(e))}:z,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=o,e.c2d=e.c2r=e.l2d=e.l2r=c,e.d2p=e.r2p=function(t){return e.l2p(o(t))},e.p2d=e.p2r=z,e.cleanPos=c):"log"===e.type?(e.d2r=e.d2l=function(e,t){return M(o(e),t)},e.r2d=e.r2c=function(e){return k(o(e))},e.d2c=e.r2l=o,e.c2d=e.l2r=c,e.c2r=M,e.l2d=k,e.d2p=function(t,n){return e.l2p(e.d2r(t,n))},e.p2d=function(e){return k(z(e))},e.r2p=function(t){return e.l2p(o(t))},e.p2r=z,e.cleanPos=c):"date"===e.type?(e.d2r=e.r2d=i.identity,e.d2c=e.r2c=e.d2l=e.r2l=A,e.c2d=e.c2r=e.l2d=e.l2r=S,e.d2p=e.r2p=function(t,n,r){return e.l2p(A(t,0,r))},e.p2d=e.p2r=function(e,t,n){return S(z(e),t,n)},e.cleanPos=function(t){return i.cleanDate(t,f,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=L,e.r2d=e.c2d=e.l2d=C,e.d2r=e.d2l_noadd=E,e.r2c=function(t){var n=E(t);return void 0!==n?n:e.fraction2r(.5)},e.l2r=e.c2r=c,e.r2l=E,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return C(z(e))},e.r2p=e.d2p,e.p2r=z,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:c(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=C,e.d2r=e.d2l_noadd=E,e.r2c=function(t){var n=E(t);return void 0!==n?n:e.fraction2r(.5)},e.r2c_just_indices=I,e.l2r=e.c2r=c,e.r2l=E,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return C(z(e))},e.r2p=e.d2p,e.p2r=z,e.cleanPos=function(e){return Array.isArray(e)||"string"==typeof e&&""!==e?e:c(e)},e.setupMultiCategory=function(r){var a,o,l=e._traceIndices,s=t._axisMatchGroups;if(s&&s.length&&0===e._categories.length)for(a=0;a<s.length;a++){var c=s[a];if(c[n])for(var h in c)if(h!==n){var f=t[x.id2name(h)];l=l.concat(f._traceIndices)}}var p=[[0,{}],[0,{}]],g=[];for(a=0;a<l.length;a++){var v=r[l[a]];if(d in v){var m=v[d],y=v._length||i.minRowLength(m);if(u(m[0])&&u(m[1]))for(o=0;o<y;o++){var b=m[0][o],w=m[1][o];T(b)&&T(w)&&(g.push([b,w]),b in p[0][1]||(p[0][1][b]=p[0][0]++),w in p[1][1]||(p[1][1][w]=p[1][0]++))}}}for(g.sort((function(e,t){var n=p[0][1],r=n[e[0]]-n[t[0]];if(r)return r;var a=p[1][1];return a[e[1]]-a[t[1]]})),a=0;a<g.length;a++)L(g[a])}),e.fraction2r=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return e.l2r(n+t*(r-n))},e.r2fraction=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return(e.r2l(t)-n)/(r-n)},e.cleanRange=function(t,n){n||(n={}),t||(t="range");var r,o,l=i.nestedProperty(e,t).get();if(o=(o="date"===e.type?i.dfltRange(e.calendar):"y"===d?b.DFLTRANGEY:n.dfltRange||b.DFLTRANGEX).slice(),"tozero"!==e.rangemode&&"nonnegative"!==e.rangemode||(o[0]=0),l&&2===l.length)for("date"!==e.type||e.autorange||(l[0]=i.cleanDate(l[0],f,e.calendar),l[1]=i.cleanDate(l[1],f,e.calendar)),r=0;r<2;r++)if("date"===e.type){if(!i.isDateTime(l[r],e.calendar)){e[t]=o;break}if(e.r2l(l[0])===e.r2l(l[1])){var s=i.constrain(e.r2l(l[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);l[0]=e.l2r(s-1e3),l[1]=e.l2r(s+1e3);break}}else{if(!a(l[r])){if(!a(l[1-r])){e[t]=o;break}l[r]=l[1-r]*(r?10:.1)}if(l[r]<-h?l[r]=-h:l[r]>h&&(l[r]=h),l[0]===l[1]){var c=Math.max(1,Math.abs(1e-6*l[0]));l[0]-=c,l[1]+=c}}else i.nestedProperty(e,t).set(o)},e.setScale=function(n){var r=t._size;if(e.overlaying){var a=x.getFromId({_fullLayout:t},e.overlaying);e.domain=a.domain}var i=n&&e._r?"_r":"range",o=e.calendar;e.cleanRange(i);var l,s,c=e.r2l(e[i][0],o),u=e.r2l(e[i][1],o),h="y"===d;if((h?(e._offset=r.t+(1-e.domain[1])*r.h,e._length=r.h*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u):(e._offset=r.l+e.domain[0]*r.w,e._length=r.w*(e.domain[1]-e.domain[0]),e._m=e._length/(u-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,u),Math.max(c,u)),e._rangebreaks.length)){for(l=0;l<e._rangebreaks.length;l++)s=e._rangebreaks[l],e._lBreaks+=Math.abs(s.max-s.min);var f=h;c>u&&(f=!f),f&&e._rangebreaks.reverse();var p=f?-1:1;for(e._m2=p*e._length/(Math.abs(u-c)-e._lBreaks),e._B.push(-e._m2*(h?u:c)),l=0;l<e._rangebreaks.length;l++)s=e._rangebreaks[l],e._B.push(e._B[e._B.length-1]-p*e._m2*(s.max-s.min));for(l=0;l<e._rangebreaks.length;l++)(s=e._rangebreaks[l]).pmin=P(s.min),s.pmax=P(s.max)}if(!isFinite(e._m)||!isFinite(e._b)||e._length<0)throw t._replotting=!1,new Error("Something went wrong with axis scaling")},e.maskBreaks=function(t){for(var n,r,a,l,s,c=e.rangebreaks||[],u=0;u<c.length;u++){var d=c[u];if(d.enabled)if(d.bounds){var h=d.pattern;switch(r=(n=i.simpleMap(d.bounds,h?o:e.d2c))[0],a=n[1],h){case _:l=(s=new Date(t)).getUTCDay(),r>a&&(a+=7,l<r&&(l+=7));break;case w:l=(s=new Date(t)).getUTCHours()+(s.getUTCMinutes()/60+s.getUTCSeconds()/3600+s.getUTCMilliseconds()/36e5),r>a&&(a+=24,l<r&&(l+=24));break;case"":l=t}if(l>=r&&l<a)return f}else for(var p=i.simpleMap(d.values,e.d2c).sort(i.sorterAsc),g=0;g<p.length;g++)if(a=(r=p[g])+d.dvalue,t>=r&&t<a)return f}return t},e.locateBreaks=function(t,n){var r,a,l,s,c=[];if(!e.rangebreaks)return c;var u=e.rangebreaks.slice().sort((function(e,t){return e.pattern===_&&t.pattern===w?-1:t.pattern===_&&e.pattern===w?1:0})),d=function(e,r){if((e=i.constrain(e,t,n))!==(r=i.constrain(r,t,n))){for(var a=!0,o=0;o<c.length;o++){var l=c[o];e<l.max&&r>=l.min&&(e<l.min&&(l.min=e),r>l.max&&(l.max=r),a=!1)}a&&c.push({min:e,max:r})}};for(r=0;r<u.length;r++){var h=u[r];if(h.enabled)if(h.bounds){var f=t,p=n;h.pattern&&(f=Math.floor(f)),l=(a=i.simpleMap(h.bounds,h.pattern?o:e.r2l))[0],s=a[1];var x,b,k=new Date(f);switch(h.pattern){case _:b=7*g,x=(s-l+(s<l?7:0))*g,f+=l*g-(k.getUTCDay()*g+k.getUTCHours()*v+k.getUTCMinutes()*m+k.getUTCSeconds()*y+k.getUTCMilliseconds());break;case w:b=g,x=(s-l+(s<l?24:0))*v,f+=l*v-(k.getUTCHours()*v+k.getUTCMinutes()*m+k.getUTCSeconds()*y+k.getUTCMilliseconds());break;default:f=Math.min(a[0],a[1]),x=b=(p=Math.max(a[0],a[1]))-f}for(var T=f;T<p;T+=b)d(T,T+x)}else for(var M=i.simpleMap(h.values,e.d2c),A=0;A<M.length;A++)d(l=M[A],s=l+h.dvalue)}return c.sort((function(e,t){return e.min-t.min})),c},e.makeCalcdata=function(t,n,r){var a,o,l,s,c=e.type,u="date"===c&&t[n+"calendar"];if(n in t){if(a=t[n],s=t._length||i.minRowLength(a),i.isTypedArray(a)&&("linear"===c||"log"===c)){if(s===a.length)return a;if(a.subarray)return a.subarray(0,s)}if("multicategory"===c)return function(e,t){for(var n=new Array(t),r=0;r<t;r++){var a=(e[0]||[])[r],i=(e[1]||[])[r];n[r]=I([a,i])}return n}(a,s);for(o=new Array(s),l=0;l<s;l++)o[l]=e.d2c(a[l],0,u,r)}else{var d=n+"0"in t?e.d2c(t[n+"0"],0,u):0,h=t["d"+n]?Number(t["d"+n]):1;for(a=t[{x:"y",y:"x"}[n]],s=t._length||a.length,o=new Array(s),l=0;l<s;l++)o[l]=d+l*h}if(e.rangebreaks)for(l=0;l<s;l++)o[l]=e.maskBreaks(o[l]);return o},e.isValidRange=function(t){return Array.isArray(t)&&2===t.length&&a(e.r2l(t[0]))&&a(e.r2l(t[1]))},e.isPtWithinRange=function(t,n){var r=e.c2l(t[d],null,n),a=e.r2l(e.range[0]),i=e.r2l(e.range[1]);return a<i?a<=r&&r<=i:i<=r&&r<=a},e.clearCalc=function(){var r=function(){e._categories=[],e._categoriesMap={}},a=t._axisMatchGroups;if(a&&a.length){for(var i=!1,o=0;o<a.length;o++){var l=a[o];if(l[n]){i=!0;var s=null,c=null;for(var u in l){var d=t[x.id2name(u)];if(d._categories){s=d._categories,c=d._categoriesMap;break}}s&&c?(e._categories=s,e._categoriesMap=c):r();break}}i||r()}else r();if(e._initialCategories)for(var h=0;h<e._initialCategories.length;h++)L(e._initialCategories[h])},e.sortByInitialCategories=function(){var r=[];if(e._categories=[],e._categoriesMap={},e._initialCategories)for(var a=0;a<e._initialCategories.length;a++)L(e._initialCategories[a]);r=r.concat(e._traceIndices);var i=e._matchGroup;for(var o in i)if(n!==o){var l=t[x.id2name(o)];l._categories=e._categories,l._categoriesMap=e._categoriesMap,r=r.concat(l._traceIndices)}return r};var j=t._d3locale;"date"===e.type&&(e._dateFormat=j?j.timeFormat.utc:r.time.format.utc,e._extraFormat=t._extraFormat),e._separators=t.separators,e._numFormat=j?j.numberFormat:r.format,delete e._minDtick,delete e._forceTick0}},Gl7E:function(e,t,n){"use strict";e.exports={TEXTPAD:3,eventDataKeys:["value","label"]}},GoyQ:function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},Guo4:function(e,t,n){"use strict";var r=n("bljh"),a=n("pcRN"),i=n("Tv4R"),o=n("DzeQ"),l=n("lnYW").makeDragBox,s=n("0wH6").DRAGGERSIZE;t.initInteractions=function(e){var n=e._fullLayout;if(e._context.staticPlot)r.select(e).selectAll(".drag").remove();else if(n._has("cartesian")||n._has("splom")){Object.keys(n._plots||{}).sort((function(e,t){if((n._plots[e].mainplot&&!0)===(n._plots[t].mainplot&&!0)){var r=e.split("y"),a=t.split("y");return r[0]===a[0]?Number(r[1]||1)-Number(a[1]||1):Number(r[0]||1)-Number(a[0]||1)}return n._plots[e].mainplot?1:-1})).forEach((function(t){var r=n._plots[t],o=r.xaxis,c=r.yaxis;if(!r.mainplot){var u=l(e,r,o._offset,c._offset,o._length,c._length,"ns","ew");u.onmousemove=function(n){e._fullLayout._rehover=function(){e._fullLayout._hoversubplot===t&&e._fullLayout._plots[t]&&a.hover(e,n,t)},a.hover(e,n,t),e._fullLayout._lasthover=u,e._fullLayout._hoversubplot=t},u.onmouseout=function(t){e._dragging||(e._fullLayout._hoversubplot=null,i.unhover(e,t))},e._context.showAxisDragHandles&&(l(e,r,o._offset-s,c._offset-s,s,s,"n","w"),l(e,r,o._offset+o._length,c._offset-s,s,s,"n","e"),l(e,r,o._offset-s,c._offset+c._length,s,s,"s","w"),l(e,r,o._offset+o._length,c._offset+c._length,s,s,"s","e"))}if(e._context.showAxisDragHandles){if(t===o._mainSubplot){var d=o._mainLinePosition;"top"===o.side&&(d-=s),l(e,r,o._offset+.1*o._length,d,.8*o._length,s,"","ew"),l(e,r,o._offset,d,.1*o._length,s,"","w"),l(e,r,o._offset+.9*o._length,d,.1*o._length,s,"","e")}if(t===c._mainSubplot){var h=c._mainLinePosition;"right"!==c.side&&(h-=s),l(e,r,h,c._offset+.1*c._length,s,.8*c._length,"ns",""),l(e,r,h,c._offset+.9*c._length,s,.1*c._length,"s",""),l(e,r,h,c._offset,s,.1*c._length,"n","")}}}));var o=n._hoverlayer.node();o.onmousemove=function(t){t.target=e._fullLayout._lasthover,a.hover(e,t,n._hoversubplot)},o.onclick=function(t){t.target=e._fullLayout._lasthover,a.click(e,t)},o.onmousedown=function(t){e._fullLayout._lasthover.onmousedown(t)},t.updateFx(e)}},t.updateFx=function(e){var t=e._fullLayout,n="pan"===t.dragmode?"move":"crosshair";o(t._draggers,n)}},HAuI:function(e,t,n){"use strict";var r=n("/CZE"),a=n("jzia"),i=n("WEQY"),o=n("TGam");e.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:r.extendFlat({},a,{yaxis:i})}}},layoutAttributes:n("jzia"),handleDefaults:n("axA2"),calcAutorange:n("TNIG"),draw:n("ix2X"),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},HByh:function(e,t,n){"use strict";var r=n("/CZE"),a=n("0RW4"),i=n("Nx4I"),o=n("B28u"),l=n("kQMp"),s=n("PBw4").getAxisGroup,c=n("+1rr"),u=r.coerceFont;function d(e,t,n,r){var a=t.orientation,i=t[{v:"x",h:"y"}[a]+"axis"],o=s(n,i)+a,l=n._alignmentOpts||{},c=r("alignmentgroup"),u=l[o];u||(u=l[o]={});var d=u[c];d?d.traces.push(t):d=u[c]={traces:[t],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var h=r("offsetgroup"),f=d.offsetGroups,p=f[h];h&&(p||(p=f[h]={offsetIndex:Object.keys(f).length}),t._offsetIndex=p.offsetIndex)}function h(e,t,n,a,i,o){var l=!(!1===(o=o||{}).moduleHasSelected),s=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),d=!(!1===o.moduleHasCliponaxis),h=!(!1===o.moduleHasTextangle),f=!(!1===o.moduleHasInsideanchor),p=!!o.hasPathbar,g=Array.isArray(i)||"auto"===i,v=g||"inside"===i,m=g||"outside"===i;if(v||m){var y=u(a,"textfont",n.font),x=r.extendFlat({},y),b=!(e.textfont&&e.textfont.color);if(b&&delete x.color,u(a,"insidetextfont",x),p){var w=r.extendFlat({},y);b&&delete w.color,u(a,"pathbar.textfont",w)}m&&u(a,"outsidetextfont",y),l&&a("selected.textfont.color"),s&&a("unselected.textfont.color"),c&&a("constraintext"),d&&a("cliponaxis"),h&&a("textangle"),a("texttemplate")}v&&f&&a("insidetextanchor")}e.exports={supplyDefaults:function(e,t,n,s){function u(n,a){return r.coerce(e,t,c,n,a)}if(o(e,t,s,u)){u("orientation",t.x&&!t.y?"h":"v"),u("base"),u("offset"),u("width"),u("text"),u("hovertext"),u("hovertemplate");var d=u("textposition");h(e,t,s,u,d,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l(e,t,u,n,s);var f=(t.marker.line||{}).color,p=i.getComponentMethod("errorbars","supplyDefaults");p(e,t,f||a.defaultLine,{axis:"y"}),p(e,t,f||a.defaultLine,{axis:"x",inherit:"y"}),r.coerceSelectionMarkerOpacity(t,u)}else t.visible=!1},crossTraceDefaults:function(e,t){var n;function a(e){return r.coerce(n._input,n,c,e)}if("group"===t.barmode)for(var i=0;i<e.length;i++)"bar"===(n=e[i]).type&&(n._input,d(0,n,t,a))},handleGroupingDefaults:d,handleText:h}},HIIg:function(e,t,n){"use strict";var r=n("kJIm").extendFlat,a=n("kJIm").extendDeep,i=n("yzSc").overrideAll,o=n("mEVB"),l=n("37PH"),s=n("gfA5").attributes,c=n("15jM"),u=n("plED").templatedArray,d=n("uM7j"),h=n("eN+q").FORMAT_LINK,f=o({editType:"plot",colorEditType:"plot"}),p={color:{valType:"color",editType:"plot",role:"info",description:["Sets the background color of the arc."].join(" ")},line:{color:{valType:"color",role:"info",dflt:l.defaultLine,editType:"plot",description:["Sets the color of the line enclosing each sector."].join(" ")},width:{valType:"number",role:"info",min:0,dflt:0,editType:"plot",description:["Sets the width (in px) of the line enclosing each sector."].join(" ")},editType:"calc"},thickness:{valType:"number",role:"info",min:0,max:1,dflt:1,editType:"plot",description:["Sets the thickness of the bar as a fraction of the total thickness of the gauge."].join(" ")},editType:"calc"},g={valType:"info_array",role:"info",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot",description:["Sets the range of this axis."].join(" ")},v=u("step",a({},p,{range:g}));e.exports={mode:{valType:"flaglist",editType:"calc",role:"info",flags:["number","delta","gauge"],dflt:"number",description:["Determines how the value is displayed on the graph.","`number` displays the value numerically in text.","`delta` displays the difference to a reference value in text.","Finally, `gauge` displays the value graphically on an axis."].join(" ")},value:{valType:"number",editType:"calc",role:"info",anim:!0,description:["Sets the number to be displayed."].join(" ")},align:{valType:"enumerated",values:["left","center","right"],role:"info",editType:"plot",description:["Sets the horizontal alignment of the `text` within the box.","Note that this attribute has no effect if an angular gauge is displayed:","in this case, it is always centered"].join(" ")},domain:s({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",role:"info",editType:"plot",description:["Sets the title of this indicator."].join(" ")},align:{valType:"enumerated",values:["left","center","right"],role:"info",editType:"plot",description:["Sets the horizontal alignment of the title.","It defaults to `center` except for bullet charts","for which it defaults to right."].join(" ")},font:r({},f,{description:["Set the font used to display the title"].join(" ")}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",role:"info",editType:"plot",description:["Sets the value formatting rule using d3 formatting mini-language","which is similar to those of Python. See",h].join(" ")},font:r({},f,{description:["Set the font used to display main number"].join(" ")}),prefix:{valType:"string",dflt:"",role:"info",editType:"plot",description:["Sets a prefix appearing before the number."].join(" ")},suffix:{valType:"string",dflt:"",role:"info",editType:"plot",description:["Sets a suffix appearing next to the number."].join(" ")},editType:"plot"},delta:{reference:{valType:"number",role:"info",editType:"calc",description:["Sets the reference value to compute the delta.","By default, it is set to the current value."].join(" ")},position:{valType:"enumerated",values:["top","bottom","left","right"],role:"info",dflt:"bottom",editType:"plot",description:["Sets the position of delta with respect to the number."].join(" ")},relative:{valType:"boolean",editType:"plot",role:"info",dflt:!1,description:["Show relative change"].join(" ")},valueformat:{valType:"string",role:"info",editType:"plot",description:["Sets the value formatting rule using d3 formatting mini-language","which is similar to those of Python. See",h].join(" ")},increasing:{symbol:{valType:"string",role:"info",dflt:d.INCREASING.SYMBOL,editType:"plot",description:["Sets the symbol to display for increasing value"].join(" ")},color:{valType:"color",role:"info",dflt:d.INCREASING.COLOR,editType:"plot",description:["Sets the color for increasing value."].join(" ")},editType:"plot"},decreasing:{symbol:{valType:"string",role:"info",dflt:d.DECREASING.SYMBOL,editType:"plot",description:["Sets the symbol to display for increasing value"].join(" ")},color:{valType:"color",role:"info",dflt:d.DECREASING.COLOR,editType:"plot",description:["Sets the color for increasing value."].join(" ")},editType:"plot"},font:r({},f,{description:["Set the font used to display the delta"].join(" ")}),editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",role:"info",dflt:"angular",values:["angular","bullet"],description:["Set the shape of the gauge"].join(" ")},bar:a({},p,{color:{dflt:"green"},description:["Set the appearance of the gauge's value"].join(" ")}),bgcolor:{valType:"color",role:"info",editType:"plot",description:"Sets the gauge background color."},bordercolor:{valType:"color",dflt:l.defaultLine,role:"info",editType:"plot",description:"Sets the color of the border enclosing the gauge."},borderwidth:{valType:"number",min:0,dflt:1,role:"info",editType:"plot",description:"Sets the width (in px) of the border enclosing the gauge."},axis:i({range:g,visible:r({},c.visible,{dflt:!0}),tickmode:c.tickmode,nticks:c.nticks,tick0:c.tick0,dtick:c.dtick,tickvals:c.tickvals,ticktext:c.ticktext,ticks:r({},c.ticks,{dflt:"outside"}),ticklen:c.ticklen,tickwidth:c.tickwidth,tickcolor:c.tickcolor,showticklabels:c.showticklabels,tickfont:o({description:"Sets the color bar's tick label font"}),tickangle:c.tickangle,tickformat:c.tickformat,tickformatstops:c.tickformatstops,tickprefix:c.tickprefix,showtickprefix:c.showtickprefix,ticksuffix:c.ticksuffix,showticksuffix:c.showticksuffix,separatethousands:c.separatethousands,exponentformat:c.exponentformat,showexponent:c.showexponent,editType:"plot"},"plot"),steps:v,threshold:{line:{color:r({},p.line.color,{description:["Sets the color of the threshold line."].join(" ")}),width:r({},p.line.width,{dflt:1,description:["Sets the width (in px) of the threshold line."].join(" ")}),editType:"plot"},thickness:r({},p.thickness,{dflt:.85,description:["Sets the thickness of the threshold line as a fraction of the thickness of the gauge."].join(" ")}),value:{valType:"number",editType:"calc",dflt:!1,role:"info",description:["Sets a treshold value drawn as a line."].join(" ")},editType:"plot"},description:"The gauge of the Indicator plot.",editType:"plot"}}},HZII:function(e,t,n){var r=n("4O/9");e.exports=function(e){return r(2,e)}},Hbft:function(e,t,n){"use strict";var r=n("/CZE"),a=n("IVx0").hasColorscale,i=n("IVx0").extractOpts;e.exports=function(e,t){function n(e,t){var n=e["_"+t];void 0!==n&&(e[t]=n)}function o(e,a){var o=a.container?r.nestedProperty(e,a.container).get():e;if(o)if(o.coloraxis)o._colorAx=t[o.coloraxis];else{var l=i(o),s=l.auto;(s||void 0===l.min)&&n(o,a.min),(s||void 0===l.max)&&n(o,a.max),l.autocolorscale&&n(o,"colorscale")}}for(var l=0;l<e.length;l++){var s=e[l],c=s._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u<c.length;u++)o(s,c[u]);else o(s,c);a(s,"marker.line")&&o(s,{container:"marker.line",min:"cmin",max:"cmax"})}for(var d in t._colorAxes)o(t[d],{min:"cmin",max:"cmax"})}},HgMN:function(e,t,n){"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"}}},Hqa2:function(e,t,n){"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"}}},I23g:function(e,t,n){"use strict";var r=n("Nx4I"),a=n("/CZE"),i=n("BkK/"),o=n("s02k").readPaths,l=n("ymS1"),s=n("6Ue+").clearOutlineControllers,c=n("0RW4"),u=n("g9E0"),d=n("plED").arrayEditor,h=n("Tv4R"),f=n("DzeQ"),p=n("2FgJ"),g=n("/cea");function v(e){var t=e._fullLayout;for(var n in t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._plots){var r=t._plots[n].shapelayer;r&&r.selectAll("path").remove()}for(var a=0;a<t.shapes.length;a++)t.shapes[a].visible&&x(e,a)}function m(e){return!!e._fullLayout._drawing}function y(e){return!e._context.edits.shapePosition}function x(e,t){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+t+'"]').remove();var n=g.makeOptionsAndPlotinfo(e,t),s=n.options,x=n.plotinfo;if(s._input&&!1!==s.visible)if("below"!==s.layer)T(e._fullLayout._shapeUpperLayer);else if("paper"===s.xref||"paper"===s.yref)T(e._fullLayout._shapeLowerLayer);else{if(x._hadPlotinfo)T((x.mainplotinfo||x).shapelayer);else T(e._fullLayout._shapeLowerLayer)}function T(n){var T=w(e,s),M={"data-index":t,"fill-rule":s.fillrule,d:T},A=s.opacity,S=s.fillcolor,C=s.line.width?s.line.color:"rgba(0,0,0,0)",L=s.line.width,I=s.line.dash;L||!0!==s.editable||(L=5,I="solid");var E="Z"!==T[T.length-1],O=y(e)&&s.editable&&e._fullLayout._activeShapeIndex===t;O&&(S=E?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,A=e._fullLayout.activeshape.opacity);var D,P=n.append("path").attr(M).style("opacity",A).call(c.stroke,C).call(c.fill,S).call(u.dashLine,I,L);if(b(P,e,s),(O||e._context.edits.shapePosition)&&(D=d(e.layout,"shapes",s)),O){P.style({cursor:"move"});var z={element:P.node(),plotinfo:x,gd:e,editHelpers:D,isActiveShape:!0},N=o(T,e);l(N,P,z)}else e._context.edits.shapePosition?function(e,t,n,o,l,s){var c,d,v,y,x,k,T,M,A,S,C,L,I,E,O,D,P="pixel"===n.xsizemode,z="pixel"===n.ysizemode,N="line"===n.type,j="path"===n.type,R=s.modifyItem,F=i.getFromId(e,n.xref),B=i.getFromId(e,n.yref),H=g.getDataToPixel(e,F),V=g.getDataToPixel(e,B,!0),G=g.getPixelToData(e,F),U=g.getPixelToData(e,B,!0),q=N?function(){var e=Math.max(n.line.width,10),r=l.append("g").attr("data-index",o);r.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":e,"stroke-opacity":"0"});var a={"fill-opacity":"0"},i=Math.max(e/2,10);return r.append("circle").attr({"data-line-point":"start-point",cx:P?H(n.xanchor)+n.x0:H(n.x0),cy:z?V(n.yanchor)-n.y0:V(n.y0),r:i}).style(a).classed("cursor-grab",!0),r.append("circle").attr({"data-line-point":"end-point",cx:P?H(n.xanchor)+n.x1:H(n.x1),cy:z?V(n.yanchor)-n.y1:V(n.y1),r:i}).style(a).classed("cursor-grab",!0),r}():t,Z={element:q.node(),gd:e,prepFn:function(r){if(m(e))return;P&&(x=H(n.xanchor));z&&(k=V(n.yanchor));"path"===n.type?O=n.path:(c=P?n.x0:H(n.x0),d=z?n.y0:V(n.y0),v=P?n.x1:H(n.x1),y=z?n.y1:V(n.y1));c<v?(A=c,I="x0",S=v,E="x1"):(A=v,I="x1",S=c,E="x0");!z&&d<y||z&&d>y?(T=d,C="y0",M=y,L="y1"):(T=y,C="y1",M=d,L="y0");W(r),$(l,n),function(e,t,n){var r=t.xref,a=t.yref,o=i.getFromId(n,r),l=i.getFromId(n,a),s="";"paper"===r||o.autorange||(s+=r);"paper"===a||l.autorange||(s+=a);u.setClipUrl(e,s?"clip"+n._fullLayout._uid+s:null,n)}(t,n,e),Z.moveFn="move"===D?Y:X,Z.altKey=r.altKey},doneFn:function(){if(m(e))return;f(t),J(l),b(t,e,n),r.call("_guiRelayout",e,s.getUpdateObj())},clickFn:function(){if(m(e))return;J(l)}};function W(n){if(m(e))D=null;else if(N)D="path"===n.target.tagName?"move":"start-point"===n.target.attributes["data-line-point"].value?"resize-over-start-point":"resize-over-end-point";else{var r=Z.element.getBoundingClientRect(),a=r.right-r.left,i=r.bottom-r.top,o=n.clientX-r.left,l=n.clientY-r.top,s=!j&&a>10&&i>10&&!n.shiftKey?h.getCursor(o/a,1-l/i):"move";f(t,s),D=s.split("-")[0]}}function Y(r,a){if("path"===n.type){var i=function(e){return e},o=i,s=i;P?R("xanchor",n.xanchor=G(x+r)):(o=function(e){return G(H(e)+r)},F&&"date"===F.type&&(o=g.encodeDate(o))),z?R("yanchor",n.yanchor=U(k+a)):(s=function(e){return U(V(e)+a)},B&&"date"===B.type&&(s=g.encodeDate(s))),R("path",n.path=_(O,o,s))}else P?R("xanchor",n.xanchor=G(x+r)):(R("x0",n.x0=G(c+r)),R("x1",n.x1=G(v+r))),z?R("yanchor",n.yanchor=U(k+a)):(R("y0",n.y0=U(d+a)),R("y1",n.y1=U(y+a)));t.attr("d",w(e,n)),$(l,n)}function X(r,a){if(j){var i=function(e){return e},o=i,s=i;P?R("xanchor",n.xanchor=G(x+r)):(o=function(e){return G(H(e)+r)},F&&"date"===F.type&&(o=g.encodeDate(o))),z?R("yanchor",n.yanchor=U(k+a)):(s=function(e){return U(V(e)+a)},B&&"date"===B.type&&(s=g.encodeDate(s))),R("path",n.path=_(O,o,s))}else if(N){if("resize-over-start-point"===D){var u=c+r,h=z?d-a:d+a;R("x0",n.x0=P?u:G(u)),R("y0",n.y0=z?h:U(h))}else if("resize-over-end-point"===D){var f=v+r,p=z?y-a:y+a;R("x1",n.x1=P?f:G(f)),R("y1",n.y1=z?p:U(p))}}else{var m=function(e){return-1!==D.indexOf(e)},b=m("n"),q=m("s"),Z=m("w"),W=m("e"),Y=b?T+a:T,X=q?M+a:M,J=Z?A+r:A,K=W?S+r:S;z&&(b&&(Y=T-a),q&&(X=M-a)),(!z&&X-Y>10||z&&Y-X>10)&&(R(C,n[C]=z?Y:U(Y)),R(L,n[L]=z?X:U(X))),K-J>10&&(R(I,n[I]=P?J:G(J)),R(E,n[E]=P?K:G(K)))}t.attr("d",w(e,n)),$(l,n)}function $(e,t){(P||z)&&function(){var n="path"!==t.type,r=e.selectAll(".visual-cue").data([0]);r.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var i=H(P?t.xanchor:a.midRange(n?[t.x0,t.x1]:g.extractPathCoords(t.path,p.paramIsX))),o=V(z?t.yanchor:a.midRange(n?[t.y0,t.y1]:g.extractPathCoords(t.path,p.paramIsY)));if(i=g.roundPositionForSharpStrokeRendering(i,1),o=g.roundPositionForSharpStrokeRendering(o,1),P&&z){var l="M"+(i-1-1)+","+(o-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";r.attr("d",l)}else if(P){var s="M"+(i-1-1)+","+(o-9-1)+"v18 h2 v-18 Z";r.attr("d",s)}else{var c="M"+(i-9-1)+","+(o-1-1)+"h18 v2 h-18 Z";r.attr("d",c)}}()}function J(e){e.selectAll(".visual-cue").remove()}h.init(Z),q.node().onmousemove=W}(e,P,s,t,n,D):!0===s.editable&&P.style("pointer-events",E||c.opacity(S)*A<=.5?"stroke":"all");P.node().addEventListener("click",(function(){return function(e,t){if(!y(e))return;var n=+t.node().getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex)return void k(e);e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=k,v(e)}}(e,P)}))}}function b(e,t,n){var r=(n.xref+n.yref).replace(/paper/g,"");u.setClipUrl(e,r?"clip"+t._fullLayout._uid+r:null,t)}function w(e,t){var n,r,o,l,s,c,u,d,h=t.type,f=i.getFromId(e,t.xref),v=i.getFromId(e,t.yref),m=e._fullLayout._size;if(f?(n=g.shapePositionToRange(f),r=function(e){return f._offset+f.r2p(n(e,!0))}):r=function(e){return m.l+m.w*e},v?(o=g.shapePositionToRange(v),l=function(e){return v._offset+v.r2p(o(e,!0))}):l=function(e){return m.t+m.h*(1-e)},"path"===h)return f&&"date"===f.type&&(r=g.decodeDate(r)),v&&"date"===v.type&&(l=g.decodeDate(l)),function(e,t,n){var r=e.path,i=e.xsizemode,o=e.ysizemode,l=e.xanchor,s=e.yanchor;return r.replace(p.segmentRE,(function(e){var r=0,c=e.charAt(0),u=p.paramIsX[c],d=p.paramIsY[c],h=p.numParams[c],f=e.substr(1).replace(p.paramRE,(function(e){return u[r]?e="pixel"===i?t(l)+Number(e):t(e):d[r]&&(e="pixel"===o?n(s)-Number(e):n(e)),++r>h&&(e="X"),e}));return r>h&&(f=f.replace(/[\s,]*X.*/,""),a.log("Ignoring extra params in segment "+e)),c+f}))}(t,r,l);if("pixel"===t.xsizemode){var y=r(t.xanchor);s=y+t.x0,c=y+t.x1}else s=r(t.x0),c=r(t.x1);if("pixel"===t.ysizemode){var x=l(t.yanchor);u=x-t.y0,d=x-t.y1}else u=l(t.y0),d=l(t.y1);if("line"===h)return"M"+s+","+u+"L"+c+","+d;if("rect"===h)return"M"+s+","+u+"H"+c+"V"+d+"H"+s+"Z";var b=(s+c)/2,w=(u+d)/2,_=Math.abs(b-s),k=Math.abs(w-u),T="A"+_+","+k,M=b+_+","+w;return"M"+M+T+" 0 1,1 "+(b+","+(w-k))+T+" 0 0,1 "+M+"Z"}function _(e,t,n){return e.replace(p.segmentRE,(function(e){var r=0,a=e.charAt(0),i=p.paramIsX[a],o=p.paramIsY[a],l=p.numParams[a];return a+e.substr(1).replace(p.paramRE,(function(e){return r>=l||(i[r]?e=t(e):o[r]&&(e=n(e)),r++),e}))}))}function k(e){y(e)&&(e._fullLayout._activeShapeIndex>=0&&(s(e),delete e._fullLayout._activeShapeIndex,v(e)))}e.exports={draw:v,drawOne:x,eraseActiveShape:function(e){if(!y(e))return;s(e);var t=e._fullLayout._activeShapeIndex,n=(e.layout||{}).shapes||[];if(t<n.length){for(var a=[],i=0;i<n.length;i++)i!==t&&a.push(n[i]);delete e._fullLayout._activeShapeIndex,r.call("_guiRelayout",e,{shapes:a})}}}},I4E5:function(e,t,n){"use strict";var r=n("bljh"),a=n("/CZE"),i=n("0RW4"),o=n("OpmZ"),l=n("EsF5"),s=a.extendDeepAll,c=e.exports={};c.framework=function(e){var t,n,a,i,u,d=new l;function h(n,l){return l&&(u=l),r.select(r.select(u).node().parentNode).selectAll(".svg-container>*:not(.chart-root)").remove(),t=t?s(t,n):n,a||(a=o.Axis()),i=o.adapter.plotly().convert(t),a.config(i).render(u),e.data=t.data,e.layout=t.layout,c.fillLayout(e),t}return h.isPolar=!0,h.svg=function(){return a.svg()},h.getConfig=function(){return t},h.getLiveConfig=function(){return o.adapter.plotly().convert(a.getLiveConfig(),!0)},h.getLiveScales=function(){return{t:a.angularScale(),r:a.radialScale()}},h.setUndoPoint=function(){var e,r,a=this,i=o.util.cloneJson(t);e=i,r=n,d.add({undo:function(){r&&a(r)},redo:function(){a(e)}}),n=o.util.cloneJson(i)},h.undo=function(){d.undo()},h.redo=function(){d.redo()},h},c.fillLayout=function(e){var t=r.select(e).selectAll(".plot-container"),n=t.selectAll(".svg-container"),a=e.framework&&e.framework.svg&&e.framework.svg(),o={width:800,height:600,paper_bgcolor:i.background,_container:t,_paperdiv:n,_paper:a};e._fullLayout=s(o,e.layout)}},I8wg:function(e,t,n){"use strict";e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}},IBVe:function(e,t,n){"use strict";var r=n("GbLo"),a=n("Nx4I"),i=n("/CZE"),o=n("plED"),l=n("jC0I");e.exports=function(e,t,n,s){var c="error_"+s.axis,u=o.newContainer(t,c),d=e[c]||{};function h(e,t){return i.coerce(d,u,l,e,t)}if(!1!==h("visible",void 0!==d.array||void 0!==d.value||"sqrt"===d.type)){var f=h("type","array"in d?"data":"percent"),p=!0;"sqrt"!==f&&(p=h("symmetric",!(("data"===f?"arrayminus":"valueminus")in d))),"data"===f?(h("array"),h("traceref"),p||(h("arrayminus"),h("tracerefminus"))):"percent"!==f&&"constant"!==f||(h("value"),p||h("valueminus"));var g="copy_"+s.inherit+"style";if(s.inherit)(t["error_"+s.inherit]||{}).visible&&h(g,!(d.color||r(d.thickness)||r(d.width)));s.inherit&&u[g]||(h("color",n),h("thickness"),h("width",a.traceIs(t,"gl3d")?0:4))}}},IJNW:function(e,t,n){"use strict";var r=n("/CZE"),a=n("0RW4"),i=n("xMdC").isUnifiedHover;e.exports=function(e,t,n,o){function l(e){o.font[e]||(o.font[e]=t.legend?t.legend.font[e]:t.font[e])}o=o||{},t&&i(t.hovermode)&&(o.font||(o.font={}),l("size"),l("family"),l("color"),t.legend?(o.bgcolor||(o.bgcolor=a.combine(t.legend.bgcolor,t.paper_bgcolor)),o.bordercolor||(o.bordercolor=t.legend.bordercolor)):o.bgcolor||(o.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",o.bgcolor),n("hoverlabel.bordercolor",o.bordercolor),n("hoverlabel.namelength",o.namelength),r.coerceFont(n,"hoverlabel.font",o.font),n("hoverlabel.align",o.align)}},IUxZ:function(e,t,n){"use strict";var r=n("3oHU");e.exports=function(e,t){var n,a,i,o,l=e.cd,s=e.xaxis,c=e.yaxis,u=[],d=l[0].trace;if(!r.hasMarkers(d)&&!r.hasText(d))return[];if(!1===t)for(n=0;n<l.length;n++)l[n].selected=0;else for(n=0;n<l.length;n++)a=l[n],i=s.c2p(a.x),o=c.c2p(a.y),null!==a.i&&t.contains([i,o],!1,n,e)?(u.push({pointNumber:a.i,x:s.c2d(a.x),y:c.c2d(a.y)}),a.selected=1):a.selected=0;return u}},IVx0:function(e,t,n){"use strict";var r=n("bljh"),a=n("Zss7"),i=n("GbLo"),o=n("/CZE"),l=n("0RW4"),s=n("SFLx").isValid;var c=["showscale","autocolorscale","colorscale","reversescale","colorbar"],u=["min","max","mid","auto"];function d(e){var t,n,r,a=e._colorAx,i=a||e,o={};for(n=0;n<c.length;n++)o[r=c[n]]=i[r];if(a)for(t="c",n=0;n<u.length;n++)o[r=u[n]]=i["c"+r];else{var l;for(n=0;n<u.length;n++)((l="c"+(r=u[n]))in i||(l="z"+r)in i)&&(o[r]=i[l]);t=l.charAt(0)}return o._sync=function(e,n){var r=-1!==u.indexOf(e)?t+e:e;i[r]=i["_"+r]=n},o}function h(e){for(var t=d(e),n=t.min,r=t.max,a=t.reversescale?f(t.colorscale):t.colorscale,i=a.length,o=new Array(i),l=new Array(i),s=0;s<i;s++){var c=a[s];o[s]=n+c[0]*(r-n),l[s]=c[1]}return{domain:o,range:l}}function f(e){for(var t=e.length,n=new Array(t),r=t-1,a=0;r>=0;r--,a++){var i=e[r];n[a]=[1-i[0],i[1]]}return n}function p(e,t){t=t||{};for(var n=e.domain,o=e.range,s=o.length,c=new Array(s),u=0;u<s;u++){var d=a(o[u]).toRgb();c[u]=[d.r,d.g,d.b,d.a]}var h,f=r.scale.linear().domain(n).range(c).clamp(!0),p=t.noNumericCheck,v=t.returnArray;return(h=p&&v?f:p?function(e){return g(f(e))}:v?function(e){return i(e)?f(e):a(e).isValid()?e:l.defaultLine}:function(e){return i(e)?g(f(e)):a(e).isValid()?e:l.defaultLine}).domain=f.domain,h.range=function(){return o},h}function g(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return a(t).toRgbString()}e.exports={hasColorscale:function(e,t,n){var r=t?o.nestedProperty(e,t).get()||{}:e,a=r[n||"color"],l=!1;if(o.isArrayOrTypedArray(a))for(var c=0;c<a.length;c++)if(i(a[c])){l=!0;break}return o.isPlainObject(r)&&(l||!0===r.showscale||i(r.cmin)&&i(r.cmax)||s(r.colorscale)||o.isPlainObject(r.colorbar))},extractOpts:d,extractScale:h,flipScale:f,makeColorScaleFunc:p,makeColorScaleFuncFromTrace:function(e,t){return p(h(e),t)}}},Id1X:function(e,t,n){"use strict";e.exports=n("9ldu")},Ijbi:function(e,t,n){var r=n("WkPL");e.exports=function(e){if(Array.isArray(e))return r(e)}},IjzS:function(e,t,n){"use strict";var r=n("bljh"),a=n("/CZE"),i=n("g9E0"),o=n("A3kh"),l=n("yLjo"),s=n("2oy/").styleOne,c=n("I8wg"),u=n("+1bK"),d=n("aWIO");e.exports=function(e,t,n,h,f){var p=f.barDifY,g=f.width,v=f.height,m=f.viewX,y=f.viewY,x=f.pathSlice,b=f.toMoveInsideSlice,w=f.strTransform,_=f.hasTransition,k=f.handleSlicesExit,T=f.makeUpdateSliceInterpolator,M=f.makeUpdateTextInterpolator,A={},S=e._fullLayout,C=t[0],L=C.trace,I=C.hierarchy,E=g/L._entryDepth,O=u.listPath(n.data,"id"),D=l(I.copy(),[g,v],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(D=D.filter((function(e){var t=O.indexOf(e.data.id);return-1!==t&&(e.x0=E*t,e.x1=E*(t+1),e.y0=p,e.y1=p+v,e.onPathbar=!0,!0)}))).reverse(),(h=h.data(D,u.getPtId)).enter().append("g").classed("pathbar",!0),k(h,!0,A,[g,v],x),h.order();var P=h;_&&(P=P.transition().each("end",(function(){var t=r.select(this);u.setSliceCursor(t,e,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),P.each((function(l){l._hoverX=m(l.x1-Math.min(g,v)/2),l._hoverY=y(l.y1-v/2);var h=r.select(this),f=a.ensureSingle(h,"path","surface",(function(e){e.style("pointer-events","all")}));_?f.transition().attrTween("d",(function(e){var t=T(e,!0,A,[g,v]);return function(e){return x(t(e))}})):f.attr("d",x),h.call(d,n,e,t,{styleOne:s,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,e,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:e._transitioning}),f.call(s,l,L,{hovered:!1}),l._text=(u.getPtLabel(l)||"").split("<br>").join(" ")||"";var p=a.ensureSingle(h,"g","slicetext"),k=a.ensureSingle(p,"text","",(function(e){e.attr("data-notex",1)})),C=a.ensureUniformFontSize(e,u.determineTextFont(L,l,S.font,{onPathbar:!0}));k.text(l._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(i.font,C).call(o.convertToTspans,e),l.textBB=i.bBox(k.node()),l.transform=b(l,{fontSize:C.size,onPathbar:!0}),l.transform.fontSize=C.size,_?k.transition().attrTween("transform",(function(e){var t=M(e,!0,A,[g,v]);return function(e){return w(t(e))}})):k.attr("transform",w(l))}))}},IkQw:function(e,t,n){"use strict";var r=n("/CZE"),a=n("kc6j");e.exports=function(e,t,n){var i=!1;function o(n,i){return r.coerce(e,t,a,n,i)}for(var l=0;l<n.length;l++){var s=n[l];if(s.visible&&"waterfall"===s.type){i=!0;break}}i&&(o("waterfallmode"),o("waterfallgap",.2),o("waterfallgroupgap"))}},IvnK:function(e,t,n){"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}},"J+Po":function(e,t,n){"use strict";var r=n("/CZE"),a=n("15jM");e.exports=function(e,t,n,i){var o=r.coerce2(e,t,a,"ticklen"),l=r.coerce2(e,t,a,"tickwidth"),s=r.coerce2(e,t,a,"tickcolor",t.color);n("ticks",i.outerTicks||o||l||s?"outside":"")||(delete t.ticklen,delete t.tickwidth,delete t.tickcolor)}},J4zp:function(e,t,n){var r=n("wTVA"),a=n("m0LI"),i=n("ZhPi"),o=n("wkBT");e.exports=function(e,t){return r(e)||a(e,t)||i(e,t)||o()}},JEGg:function(e,t,n){ /* * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc * @license MIT * @preserve Project Home: https://github.com/voidqk/polybooljs */ var r,a=n("pty9"),i=n("+KUA"),o=n("mTXg"),l=n("piZS"),s=n("uSQw"),c=n("NMwq"),u=!1,d=i();function h(e,t,n){var a=r.segments(e),i=r.segments(t),o=n(r.combine(a,i));return r.polygon(o)}r={buildLog:function(e){return!0===e?u=a():!1===e&&(u=!1),!1!==u&&u.list},epsilon:function(e){return d.epsilon(e)},segments:function(e){var t=o(!0,d,u);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){return{combined:o(!1,d,u).calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:s.union(e.combined,u),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:s.intersect(e.combined,u),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:s.difference(e.combined,u),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:s.differenceRev(e.combined,u),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:s.xor(e.combined,u),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:l(e.segments,d,u),inverted:e.inverted}},polygonFromGeoJSON:function(e){return c.toPolygon(r,e)},polygonToGeoJSON:function(e){return c.fromPolygon(r,d,e)},union:function(e,t){return h(e,t,r.selectUnion)},intersect:function(e,t){return h(e,t,r.selectIntersect)},difference:function(e,t){return h(e,t,r.selectDifference)},differenceRev:function(e,t){return h(e,t,r.selectDifferenceRev)},xor:function(e,t){return h(e,t,r.selectXor)}},"object"==typeof window&&(window.PolyBool=r),e.exports=r},JU33:function(e,t,n){"use strict";var r=n("BkK/"),a=n("cU9g"),i=n("QTaS"),o=n("6AZA").BADNUM;function l(e){return e===o?0:e}e.exports=function(e,t){var n,s,c,u,d=r.getFromId(e,t.xaxis||"x"),h=r.getFromId(e,t.yaxis||"y");"h"===t.orientation?(n=d.makeCalcdata(t,"x"),s=h.makeCalcdata(t,"y")):(n=h.makeCalcdata(t,"y"),s=d.makeCalcdata(t,"x"));var f,p=Math.min(s.length,n.length),g=new Array(p);for(t._base=[],c=0;c<p;c++){n[c]<0&&(n[c]=o);var v=!1;n[c]!==o&&c+1<p&&n[c+1]!==o&&(v=!0),u=g[c]={p:s[c],s:n[c],cNext:v},t._base[c]=-.5*u.s,t.ids&&(u.id=String(t.ids[c])),0===c&&(g[0].vTotal=0),g[0].vTotal+=l(u.s),u.begR=l(u.s)/l(g[0].s)}for(c=0;c<p;c++)(u=g[c]).s!==o&&(u.sumR=u.s/g[0].vTotal,u.difR=void 0!==f?u.s/f:1,f=u.s);return a(g,t),i(g,t),g}},JZU4:function(e,t,n){"use strict";var r=n("bljh"),a=n("Nx4I"),i=n("u3HJ"),o=n("/CZE"),l=n("BkK/"),s=n("0RW4"),c=n("g9E0"),u=n("pcRN"),d=n("A3kh"),h=n("DzeQ"),f=n("Tv4R"),p=n("plED").arrayEditor,g=n("Wh6P");function v(e,t){var n=e._fullLayout.annotations[t]||{},r=l.getFromId(e,n.xref),a=l.getFromId(e,n.yref);r&&r.setScale(),a&&a.setScale(),m(e,n,t,!1,r,a)}function m(e,t,n,i,l,v){var m,y,x=e._fullLayout,b=e._fullLayout._size,w=e._context.edits;i?(m="annotation-"+i,y=i+".annotations"):(m="annotation",y="annotations");var _=p(e.layout,y,t),k=_.modifyBase,T=_.modifyItem,M=_.getUpdateObj;x._infolayer.selectAll("."+m+'[data-index="'+n+'"]').remove();var A="clip"+x._uid+"_ann"+n;if(t._input&&!1!==t.visible){var S={x:{},y:{}},C=+t.textangle||0,L=x._infolayer.append("g").classed(m,!0).attr("data-index",String(n)).style("opacity",t.opacity),I=L.append("g").classed("annotation-text-g",!0),E=w[t.showarrow?"annotationTail":"annotationPosition"],O=t.captureevents||w.annotationText||E,D=I.append("g").style("pointer-events",O?"all":null).call(h,"pointer").on("click",(function(){e._dragging=!1,e.emit("plotly_clickannotation",G(r.event))}));t.hovertext&&D.on("mouseover",(function(){var n=t.hoverlabel,r=n.font,a=this.getBoundingClientRect(),i=e.getBoundingClientRect();u.loneHover({x0:a.left-i.left,x1:a.right-i.left,y:(a.top+a.bottom)/2-i.top,text:t.hovertext,color:n.bgcolor,borderColor:n.bordercolor,fontFamily:r.family,fontSize:r.size,fontColor:r.color},{container:x._hoverlayer.node(),outerContainer:x._paper.node(),gd:e})})).on("mouseout",(function(){u.loneUnhover(x._hoverlayer.node())}));var P=t.borderwidth,z=t.borderpad,N=P+z,j=D.append("rect").attr("class","bg").style("stroke-width",P+"px").call(s.stroke,t.bordercolor).call(s.fill,t.bgcolor),R=t.width||t.height,F=x._topclips.selectAll("#"+A).data(R?[0]:[]);F.enter().append("clipPath").classed("annclip",!0).attr("id",A).append("rect"),F.exit().remove();var B=t.font,H=x._meta?o.templateString(t.text,x._meta):t.text,V=D.append("text").classed("annotation-text",!0).text(H);w.annotationText?V.call(d.makeEditable,{delegate:D,gd:e}).call(U).on("edit",(function(n){t.text=n,this.call(U),T("text",n),l&&l.autorange&&k(l._name+".autorange",!0),v&&v.autorange&&k(v._name+".autorange",!0),a.call("_guiRelayout",e,M())})):V.call(U)}else r.selectAll("#"+A).remove();function G(e){var r={index:n,annotation:t._input,fullAnnotation:t,event:e};return i&&(r.subplotId=i),r}function U(n){return n.call(c.font,B).attr({"text-anchor":{left:"start",right:"end"}[t.align]||"middle"}),d.convertToTspans(n,e,q),n}function q(){var n=V.selectAll("a");1===n.size()&&n.text()===V.text()&&D.insert("a",":first-child").attr({"xlink:xlink:href":n.attr("xlink:href"),"xlink:xlink:show":n.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(j.node());var r=D.select(".annotation-text-math-group"),u=!r.empty(),p=c.bBox((u?r:V).node()),m=p.width,y=p.height,_=t.width||m,O=t.height||y,z=Math.round(_+2*N),B=Math.round(O+2*N);function H(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 U=!1,q=["x","y"],Z=0;Z<q.length;Z++){var W,Y,X,$,J,K=q[Z],Q=t[K+"ref"]||K,ee=t["a"+K+"ref"],te={x:l,y:v}[K],ne=(C+("x"===K?0:-90))*Math.PI/180,re=z*Math.cos(ne),ae=B*Math.sin(ne),ie=Math.abs(re)+Math.abs(ae),oe=t[K+"anchor"],le=t[K+"shift"]*("x"===K?1:-1),se=S[K];if(te){var ce=te.r2fraction(t[K]);(ce<0||ce>1)&&(ee===Q?((ce=te.r2fraction(t["a"+K]))<0||ce>1)&&(U=!0):U=!0),W=te._offset+te.r2p(t[K]),$=.5}else"x"===K?(X=t[K],W=b.l+b.w*X):(X=1-t[K],W=b.t+b.h*X),$=t.showarrow?.5:X;if(t.showarrow){se.head=W;var ue=t["a"+K];J=re*H(.5,t.xanchor)-ae*H(.5,t.yanchor),ee===Q?(se.tail=te._offset+te.r2p(ue),Y=J):(se.tail=W+ue,Y=J+ue),se.text=se.tail+J;var de=x["x"===K?"width":"height"];if("paper"===Q&&(se.head=o.constrain(se.head,1,de-1)),"pixel"===ee){var he=-Math.max(se.tail-3,se.text),fe=Math.min(se.tail+3,se.text)-de;he>0?(se.tail+=he,se.text+=he):fe>0&&(se.tail-=fe,se.text-=fe)}se.tail+=le,se.head+=le}else Y=J=ie*H($,oe),se.text=W+J;se.text+=le,J+=le,Y+=le,t["_"+K+"padplus"]=ie/2+Y,t["_"+K+"padminus"]=ie/2-Y,t["_"+K+"size"]=ie,t["_"+K+"shift"]=J}if(U)D.remove();else{var pe=0,ge=0;if("left"!==t.align&&(pe=(_-m)*("center"===t.align?.5:1)),"top"!==t.valign&&(ge=(O-y)*("middle"===t.valign?.5:1)),u)r.select("svg").attr({x:N+pe-1,y:N+ge}).call(c.setClipUrl,R?A:null,e);else{var ve=N+ge-p.top,me=N+pe-p.left;V.call(d.positionText,me,ve).call(c.setClipUrl,R?A:null,e)}F.select("rect").call(c.setRect,N,N,_,O),j.call(c.setRect,P/2,P/2,z-P,B-P),D.call(c.setTranslate,Math.round(S.x.text-z/2),Math.round(S.y.text-B/2)),I.attr({transform:"rotate("+C+","+S.x.text+","+S.y.text+")"});var ye,xe=function(n,r){L.selectAll(".annotation-arrow-g").remove();var u=S.x.head,d=S.y.head,h=S.x.tail+n,p=S.y.tail+r,m=S.x.text+n,y=S.y.text+r,x=o.rotationXYMatrix(C,m,y),_=o.apply2DTransform(x),A=o.apply2DTransform2(x),E=+j.attr("width"),O=+j.attr("height"),P=m-.5*E,z=P+E,N=y-.5*O,R=N+O,F=[[P,N,P,R],[P,R,z,R],[z,R,z,N],[z,N,P,N]].map(A);if(!F.reduce((function(e,t){return e^!!o.segmentsIntersect(u,d,u+1e6,d+1e6,t[0],t[1],t[2],t[3])}),!1)){F.forEach((function(e){var t=o.segmentsIntersect(h,p,u,d,e[0],e[1],e[2],e[3]);t&&(h=t.x,p=t.y)}));var B=t.arrowwidth,H=t.arrowcolor,V=t.arrowside,G=L.append("g").style({opacity:s.opacity(H)}).classed("annotation-arrow-g",!0),U=G.append("path").attr("d","M"+h+","+p+"L"+u+","+d).style("stroke-width",B+"px").call(s.stroke,s.rgb(H));if(g(U,V,t),w.annotationPosition&&U.node().parentNode&&!i){var q=u,Z=d;if(t.standoff){var W=Math.sqrt(Math.pow(u-h,2)+Math.pow(d-p,2));q+=t.standoff*(h-u)/W,Z+=t.standoff*(p-d)/W}var Y,X,$=G.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(h-q)+","+(p-Z),transform:"translate("+q+","+Z+")"}).style("stroke-width",B+6+"px").call(s.stroke,"rgba(0,0,0,0)").call(s.fill,"rgba(0,0,0,0)");f.init({element:$.node(),gd:e,prepFn:function(){var e=c.getTranslate(D);Y=e.x,X=e.y,l&&l.autorange&&k(l._name+".autorange",!0),v&&v.autorange&&k(v._name+".autorange",!0)},moveFn:function(e,n){var r=_(Y,X),a=r[0]+e,i=r[1]+n;D.call(c.setTranslate,a,i),T("x",l?l.p2r(l.r2p(t.x)+e):t.x+e/b.w),T("y",v?v.p2r(v.r2p(t.y)+n):t.y-n/b.h),t.axref===t.xref&&T("ax",l.p2r(l.r2p(t.ax)+e)),t.ayref===t.yref&&T("ay",v.p2r(v.r2p(t.ay)+n)),G.attr("transform","translate("+e+","+n+")"),I.attr({transform:"rotate("+C+","+a+","+i+")"})},doneFn:function(){a.call("_guiRelayout",e,M());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};if(t.showarrow&&xe(0,0),E)f.init({element:D.node(),gd:e,prepFn:function(){ye=I.attr("transform")},moveFn:function(e,n){var r="pointer";if(t.showarrow)t.axref===t.xref?T("ax",l.p2r(l.r2p(t.ax)+e)):T("ax",t.ax+e),t.ayref===t.yref?T("ay",v.p2r(v.r2p(t.ay)+n)):T("ay",t.ay+n),xe(e,n);else{if(i)return;var a,o;if(l)a=l.p2r(l.r2p(t.x)+e);else{var s=t._xsize/b.w,c=t.x+(t._xshift-t.xshift)/b.w-s/2;a=f.align(c+e/b.w,s,0,1,t.xanchor)}if(v)o=v.p2r(v.r2p(t.y)+n);else{var u=t._ysize/b.h,d=t.y-(t._yshift+t.yshift)/b.h-u/2;o=f.align(d-n/b.h,u,0,1,t.yanchor)}T("x",a),T("y",o),l&&v||(r=f.getCursor(l?.5:a,v?.5:o,t.xanchor,t.yanchor))}I.attr({transform:"translate("+e+","+n+")"+ye}),h(D,r)},clickFn:function(n,r){t.captureevents&&e.emit("plotly_clickannotation",G(r))},doneFn:function(){h(D),a.call("_guiRelayout",e,M());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 n=0;n<t.annotations.length;n++)t.annotations[n].visible&&v(e,n);return i.previousPromises(e)},drawOne:v,drawRaw:m}},JlUD:function(e,t){function n(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=n,e.exports.default=n},KW7m:function(e,t,n){"use strict";e.exports=function(e,t,n,r,a){var i=(e-n)/(r-n),o=i+t/(r-n),l=(i+o)/2;return"left"===a||"bottom"===a?i:"center"===a||"middle"===a?l:"right"===a||"top"===a?o:i<2/3-l?i:o>4/3-l?o:l}},KfNM:function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},Kicf:function(e,t,n){"use strict";var r=n("/CZE"),a=n("l9FN"),i=n("0RW4"),o=n("gfA5").defaults,l=n("HByh").handleText,s=n("Gl7E").TEXTPAD,c=n("wlgE"),u=c.hasColorscale,d=c.handleDefaults;e.exports=function(e,t,n,c){function h(n,i){return r.coerce(e,t,a,n,i)}var f=h("labels"),p=h("parents");if(f&&f.length&&p&&p.length){var g=h("values");g&&g.length?h("branchvalues"):h("count"),h("level"),h("maxdepth"),"squarify"===h("tiling.packing")&&h("tiling.squarifyratio"),h("tiling.flip"),h("tiling.pad");var v=h("text");h("texttemplate"),t.texttemplate||h("textinfo",Array.isArray(v)?"text+label":"label"),h("hovertext"),h("hovertemplate");var m=h("pathbar.visible");l(e,t,c,h,"auto",{hasPathbar:m,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h("textposition");var y=-1!==t.textposition.indexOf("bottom");h("marker.line.width")&&h("marker.line.color",c.paper_bgcolor);var x=h("marker.colors"),b=t._hasColorscale=u(e,"marker","colors")||(e.marker||{}).coloraxis;b?d(e,t,c,h,{prefix:"marker.",cLetter:"c"}):h("marker.depthfade",!(x||[]).length);var w=2*t.textfont.size;h("marker.pad.t",y?w/4:w),h("marker.pad.l",w/4),h("marker.pad.r",w/4),h("marker.pad.b",y?w:w/4),b&&d(e,t,c,h,{prefix:"marker.",cLetter:"c"}),t._hovered={marker:{line:{width:2,color:i.contrast(c.paper_bgcolor)}}},m&&(h("pathbar.thickness",t.pathbar.textfont.size+2*s),h("pathbar.side"),h("pathbar.edgeshape")),o(t,c,h),t._length=null}else t.visible=!1}},Kz5y:function(e,t,n){var r=n("WFqU"),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},LI1c:function(e,t,n){"use strict";(function(t){var r,a=n("3PNt");r="function"==typeof t.matchMedia?!t.matchMedia("(hover: none)").matches:a,e.exports=r}).call(this,n("yLpj"))},LQ6N:function(e,t,n){"use strict";var r=n("/CZE"),a=[[-1,0],[1,0],[0,-1],[0,1]];function i(e){return.5-.25*Math.min(1,.5*e)}function o(e,t,n){var r,i,o,l,s,c,u,d,h,f,p,g,v,m=0;for(l=0;l<t.length;l++){for(i=(r=t[l])[0],o=r[1],p=e[i][o],f=0,h=0,s=0;s<4;s++)(u=e[i+(c=a[s])[0]])&&void 0!==(d=u[o+c[1]])&&(0===f?g=v=d:(g=Math.min(g,d),v=Math.max(v,d)),h++,f+=d);if(0===h)throw"iterateInterp2d order is wrong: no defined neighbors";e[i][o]=f/h,void 0===p?h<4&&(m=1):(e[i][o]=(1+n)*e[i][o]-n*p,v>g&&(m=Math.max(m,Math.abs(e[i][o]-p)/(v-g))))}return m}e.exports=function(e,t){var n,a=1;for(o(e,t),n=0;n<t.length&&!(t[n][2]<4);n++);for(t=t.slice(n),n=0;n<100&&a>.01;n++)a=o(e,t,i(a));return a>.01&&r.log("interp2d didn't converge quickly",a),e}},LZp3:function(e,t,n){"use strict";var r=n("/CZE"),a=r.isPlainObject,i=n("aSHK"),o=n("u3HJ"),l=n("qHYo"),s=n("plED"),c=n("P/XJ").dfltConfig;function u(e,t){e=r.extendDeep({},e);var n,i,o=Object.keys(e).sort();function l(t,n,r){if(a(n)&&a(t))u(t,n);else if(Array.isArray(n)&&Array.isArray(t)){var o=s.arrayTemplater({_template:e},r);for(i=0;i<n.length;i++){var l=n[i],c=o.newItem(l)._template;c&&u(c,l)}var d=o.defaultItems();for(i=0;i<d.length;i++)n.push(d[i]._template);for(i=0;i<n.length;i++)delete n[i].templateitemname}}for(n=0;n<o.length;n++){var c=o[n],h=e[c];if(c in t?l(h,t[c],c):t[c]=h,d(c)===c)for(var f in t){var p=d(f);f===p||p!==c||f in e||l(h,t[f],c)}}}function d(e){return e.replace(/[0-9]+$/,"")}function h(e,t,n,i,o){var l=o&&n(o);for(var c in e){var u=e[c],f=g(e,c,i),p=g(e,c,o),v=n(p);if(!v){var m=d(c);m!==c&&(v=n(p=g(e,m,o)))}if((!l||l!==v)&&!(!v||v._noTemplating||"data_array"===v.valType||v.arrayOk&&Array.isArray(u)))if(!v.valType&&a(u))h(u,t,n,f,p);else if(v._isLinkedToArray&&Array.isArray(u))for(var y=!1,x=0,b={},w=0;w<u.length;w++){var _=u[w];if(a(_)){var k=_.name;if(k)b[k]||(h(_,t,n,g(u,x,f),g(u,x,p)),x++,b[k]=1);else if(!y){var T=g(e,s.arrayDefaultKey(c),i),M=g(u,x,f);h(_,t,n,M,g(u,x,p));var A=r.nestedProperty(t,M);r.nestedProperty(t,T).set(A.get()),A.set(null),y=!0}}}else{r.nestedProperty(t,f).set(u)}}}function f(e,t){return i.getLayoutValObject(e,r.nestedProperty({},t).parts)}function p(e,t){return i.getTraceValObject(e,r.nestedProperty({},t).parts)}function g(e,t,n){return n?Array.isArray(e)?n+"["+t+"]":n+"."+t:t}function v(e){for(var t=0;t<e.length;t++)if(a(e[t]))return!0}function m(e){var t;switch(e.code){case"data":t="The template has no key data.";break;case"layout":t="The template has no key layout.";break;case"missing":t=e.path?"There are no templates for item "+e.path+" with name "+e.templateitemname:"There are no templates for trace "+e.index+", of type "+e.traceType+".";break;case"unused":t=e.path?"The template item at "+e.path+" was not used in constructing the plot.":e.dataCount?"Some of the templates of type "+e.traceType+" were not used. The template has "+e.templateCount+" traces, the data only has "+e.dataCount+" of this type.":"The template has "+e.templateCount+" traces of type "+e.traceType+" but there are none in the data.";break;case"reused":t="Some of the templates of type "+e.traceType+" were used more than once. The template has "+e.templateCount+" traces, the data has "+e.dataCount+" of this type."}return e.msg=t,e}t.makeTemplate=function(e){e=r.isPlainObject(e)?e:r.getGraphDiv(e),e=r.extendDeep({_context:c},{data:e.data,layout:e.layout}),o.supplyDefaults(e);var t=e.data||[],n=e.layout||{};n._basePlotModules=e._fullLayout._basePlotModules,n._modules=e._fullLayout._modules;var i={data:{},layout:{}};t.forEach((function(e){var t={};h(e,t,p.bind(null,e));var n=r.coerce(e,{},l,"type"),a=i.data[n];a||(a=i.data[n]=[]),a.push(t)})),h(n,i.layout,f.bind(null,n)),delete i.layout.template;var s=n.template;if(a(s)){var d,g,v,m,y,x,b=s.layout;a(b)&&u(b,i.layout);var w=s.data;if(a(w)){for(g in i.data)if(v=w[g],Array.isArray(v)){for(x=(y=i.data[g]).length,m=v.length,d=0;d<x;d++)u(v[d%m],y[d]);for(d=x;d<m;d++)y.push(r.extendDeep({},v[d]))}for(g in w)g in i.data||(i.data[g]=r.extendDeep([],w[g]))}}return i},t.validateTemplate=function(e,t){var n=r.extendDeep({},{_context:c,data:e.data,layout:e.layout}),i=n.layout||{};a(t)||(t=i.template||{});var l=t.layout,s=t.data,u=[];n.layout=i,n.layout.template=t,o.supplyDefaults(n);var h=n._fullLayout,f=n._fullData,p={};if(a(l)?(!function e(t,n){for(var r in t)if("_"!==r.charAt(0)&&a(t[r])){var i,o=d(r),l=[];for(i=0;i<n.length;i++)l.push(g(t,r,n[i])),o!==r&&l.push(g(t,o,n[i]));for(i=0;i<l.length;i++)p[l[i]]=1;e(t[r],l)}}(h,["layout"]),function e(t,n){for(var r in t)if(-1===r.indexOf("defaults")&&a(t[r])){var i=g(t,r,n);p[i]?e(t[r],i):u.push({code:"unused",path:i})}}(l,"layout")):u.push({code:"layout"}),a(s)){for(var y,x={},b=0;b<f.length;b++){var w=f[b];x[y=w.type]=(x[y]||0)+1,w._fullInput._template||u.push({code:"missing",index:w._fullInput.index,traceType:y})}for(y in s){var _=s[y].length,k=x[y]||0;_>k?u.push({code:"unused",traceType:y,templateCount:_,dataCount:k}):k>_&&u.push({code:"reused",traceType:y,templateCount:_,dataCount:k})}}else u.push({code:"data"});if(function e(t,n){for(var r in t)if("_"!==r.charAt(0)){var i=t[r],o=g(t,r,n);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:f,layout:h},""),u.length)return u.map(m)}},LdfS:function(e,t,n){"use strict";var r=n("/CZE"),a=n("e6NF");e.exports=function(e,t){function n(n,i){return r.coerce(e,t,a,n,i)}n("sunburstcolorway",t.colorway),n("extendsunburstcolors")}},LfN2:function(e,t,n){"use strict";var r=n("bljh"),a=n("0RW4"),i=n("g9E0"),o=n("/CZE"),l=n("Nx4I"),s=n("k6aH").resizeText,c=n("+1rr"),u=c.textfont,d=c.insidetextfont,h=c.outsidetextfont,f=n("aDMI");function p(e,t,n){i.pointStyle(e.selectAll("path"),t,n),g(e,t,n)}function g(e,t,n){e.selectAll("text").each((function(e){var a=r.select(this),l=o.ensureUniformFontSize(n,v(a,e,t,n));i.font(a,l)}))}function v(e,t,n,r){var a=r._fullLayout.font,i=n.textfont;if(e.classed("bartext-inside")){var o=w(t,n);i=y(n,t.i,a,o)}else e.classed("bartext-outside")&&(i=x(n,t.i,a));return i}function m(e,t,n){return b(u,e.textfont,t,n)}function y(e,t,n,r){var i=m(e,t,n);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:a.contrast(r),family:i.family,size:i.size}),b(d,e.insidetextfont,t,i)}function x(e,t,n){var r=m(e,t,n);return b(h,e.outsidetextfont,t,r)}function b(e,t,n,r){t=t||{};var a=f.getValue(t.family,n),i=f.getValue(t.size,n),o=f.getValue(t.color,n);return{family:f.coerceString(e.family,a,r.family),size:f.coerceNumber(e.size,i,r.size),color:f.coerceColor(e.color,o,r.color)}}function w(e,t){return"waterfall"===t.type?t[e.dir].marker.color:e.mc||t.marker.color}e.exports={style:function(e){var t=r.select(e).selectAll("g.barlayer").selectAll("g.trace");s(e,t,"bar");var n=t.size(),a=e._fullLayout;t.style("opacity",(function(e){return e[0].trace.opacity})).each((function(e){("stack"===a.barmode&&n>1||0===a.bargap&&0===a.bargroupgap&&!e[0].trace.marker.line.width)&&r.select(this).attr("shape-rendering","crispEdges")})),t.selectAll("g.points").each((function(t){p(r.select(this),t[0].trace,e)})),l.getComponentMethod("errorbars","style")(t)},styleTextPoints:g,styleOnSelect:function(e,t,n){var a=t[0].trace;a.selectedpoints?function(e,t,n){i.selectedPointStyle(e.selectAll("path"),t),function(e,t,n){e.each((function(e){var a,l=r.select(this);if(e.selected){a=o.ensureUniformFontSize(n,v(l,e,t,n));var s=t.selected.textfont&&t.selected.textfont.color;s&&(a.color=s),i.font(l,a)}else i.selectedTextStyle(l,t)}))}(e.selectAll("text"),t,n)}(n,a,e):(p(n,a,e),l.getComponentMethod("errorbars","style")(n))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:w,resizeText:s}},Lj1h:function(e,t,n){"use strict";var r=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,a=/^[^\.\[\]]+$/;e.exports=function(e,t){for(;t;){var n=e.match(r);if(n)e=n[1];else{if(!e.match(a))throw new Error("bad relativeAttr call:"+[e,t]);e=""}if("^"!==t.charAt(0))break;t=t.slice(1)}return e&&"["!==t.charAt(0)?e+"."+t:e+t}},Ljmf:function(e,t,n){"use strict";e.exports=function(e,t){var n=t.length,r=e.length;if(r>n)return!1;if(r===n)return e===t;e:for(var a=0,i=0;a<r;a++){for(var o=e.charCodeAt(a);i<n;)if(t.charCodeAt(i++)===o)continue e;return!1}return!0}},M1CZ:function(e,t,n){"use strict";var r=n("bljh");e.exports={circle:{n:0,f:function(e){var t=r.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=r.round(e,2);return"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"}},diamond:{n:2,f:function(e){var t=r.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"Z"}},cross:{n:3,f:function(e){var t=r.round(.4*e,2),n=r.round(1.2*e,2);return"M"+n+","+t+"H"+t+"V"+n+"H-"+t+"V"+t+"H-"+n+"V-"+t+"H-"+t+"V-"+n+"H"+t+"V-"+t+"H"+n+"Z"}},x:{n:4,f:function(e){var t=r.round(.8*e/Math.sqrt(2),2),n="l"+t+","+t,a="l"+t+",-"+t,i="l-"+t+",-"+t,o="l-"+t+","+t;return"M0,"+t+n+a+i+a+i+o+i+o+n+o+n+"Z"}},"triangle-up":{n:5,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M-"+t+","+r.round(e/2,2)+"H"+t+"L0,-"+r.round(e,2)+"Z"}},"triangle-down":{n:6,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M-"+t+",-"+r.round(e/2,2)+"H"+t+"L0,"+r.round(e,2)+"Z"}},"triangle-left":{n:7,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M"+r.round(e/2,2)+",-"+t+"V"+t+"L-"+r.round(e,2)+",0Z"}},"triangle-right":{n:8,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M-"+r.round(e/2,2)+",-"+t+"V"+t+"L"+r.round(e,2)+",0Z"}},"triangle-ne":{n:9,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M-"+n+",-"+t+"H"+t+"V"+n+"Z"}},"triangle-se":{n:10,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M"+t+",-"+n+"V"+t+"H-"+n+"Z"}},"triangle-sw":{n:11,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M"+n+","+t+"H-"+t+"V-"+n+"Z"}},"triangle-nw":{n:12,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M-"+t+","+n+"V-"+t+"H"+n+"Z"}},pentagon:{n:13,f:function(e){var t=r.round(.951*e,2),n=r.round(.588*e,2),a=r.round(-e,2),i=r.round(-.309*e,2);return"M"+t+","+i+"L"+n+","+r.round(.809*e,2)+"H-"+n+"L-"+t+","+i+"L0,"+a+"Z"}},hexagon:{n:14,f:function(e){var t=r.round(e,2),n=r.round(e/2,2),a=r.round(e*Math.sqrt(3)/2,2);return"M"+a+",-"+n+"V"+n+"L0,"+t+"L-"+a+","+n+"V-"+n+"L0,-"+t+"Z"}},hexagon2:{n:15,f:function(e){var t=r.round(e,2),n=r.round(e/2,2),a=r.round(e*Math.sqrt(3)/2,2);return"M-"+n+","+a+"H"+n+"L"+t+",0L"+n+",-"+a+"H-"+n+"L-"+t+",0Z"}},octagon:{n:16,f:function(e){var t=r.round(.924*e,2),n=r.round(.383*e,2);return"M-"+n+",-"+t+"H"+n+"L"+t+",-"+n+"V"+n+"L"+n+","+t+"H-"+n+"L-"+t+","+n+"V-"+n+"Z"}},star:{n:17,f:function(e){var t=1.4*e,n=r.round(.225*t,2),a=r.round(.951*t,2),i=r.round(.363*t,2),o=r.round(.588*t,2),l=r.round(-t,2),s=r.round(-.309*t,2),c=r.round(.118*t,2),u=r.round(.809*t,2);return"M"+n+","+s+"H"+a+"L"+i+","+c+"L"+o+","+u+"L0,"+r.round(.382*t,2)+"L-"+o+","+u+"L-"+i+","+c+"L-"+a+","+s+"H-"+n+"L0,"+l+"Z"}},hexagram:{n:18,f:function(e){var t=r.round(.66*e,2),n=r.round(.38*e,2),a=r.round(.76*e,2);return"M-"+a+",0l-"+n+",-"+t+"h"+a+"l"+n+",-"+t+"l"+n+","+t+"h"+a+"l-"+n+","+t+"l"+n+","+t+"h-"+a+"l-"+n+","+t+"l-"+n+",-"+t+"h-"+a+"Z"}},"star-triangle-up":{n:19,f:function(e){var t=r.round(e*Math.sqrt(3)*.8,2),n=r.round(.8*e,2),a=r.round(1.6*e,2),i=r.round(4*e,2),o="A "+i+","+i+" 0 0 1 ";return"M-"+t+","+n+o+t+","+n+o+"0,-"+a+o+"-"+t+","+n+"Z"}},"star-triangle-down":{n:20,f:function(e){var t=r.round(e*Math.sqrt(3)*.8,2),n=r.round(.8*e,2),a=r.round(1.6*e,2),i=r.round(4*e,2),o="A "+i+","+i+" 0 0 1 ";return"M"+t+",-"+n+o+"-"+t+",-"+n+o+"0,"+a+o+t+",-"+n+"Z"}},"star-square":{n:21,f:function(e){var t=r.round(1.1*e,2),n=r.round(2*e,2),a="A "+n+","+n+" 0 0 1 ";return"M-"+t+",-"+t+a+"-"+t+","+t+a+t+","+t+a+t+",-"+t+a+"-"+t+",-"+t+"Z"}},"star-diamond":{n:22,f:function(e){var t=r.round(1.4*e,2),n=r.round(1.9*e,2),a="A "+n+","+n+" 0 0 1 ";return"M-"+t+",0"+a+"0,"+t+a+t+",0"+a+"0,-"+t+a+"-"+t+",0Z"}},"diamond-tall":{n:23,f:function(e){var t=r.round(.7*e,2),n=r.round(1.4*e,2);return"M0,"+n+"L"+t+",0L0,-"+n+"L-"+t+",0Z"}},"diamond-wide":{n:24,f:function(e){var t=r.round(1.4*e,2),n=r.round(.7*e,2);return"M0,"+n+"L"+t+",0L0,-"+n+"L-"+t+",0Z"}},hourglass:{n:25,f:function(e){var t=r.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=r.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=r.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=r.round(e,2),n=r.round(e/Math.sqrt(2),2);return"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"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=r.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=r.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=r.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=r.round(1.3*e,2),n=r.round(.65*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e){var t=r.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=r.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=r.round(1.2*e,2),n=r.round(.85*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e){var t=r.round(e/2,2),n=r.round(e,2);return"M"+t+","+n+"V-"+n+"m-"+n+",0V"+n+"M"+n+","+t+"H-"+n+"m0,-"+n+"H"+n},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),a=r.round(.8*e,2);return"M-"+t+","+a+"L0,0M"+t+","+a+"L0,0M0,-"+n+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),a=r.round(.8*e,2);return"M-"+t+",-"+a+"L0,0M"+t+",-"+a+"L0,0M0,"+n+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),a=r.round(.8*e,2);return"M"+a+","+t+"L0,0M"+a+",-"+t+"L0,0M-"+n+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),a=r.round(.8*e,2);return"M-"+a+","+t+"L0,0M-"+a+",-"+t+"L0,0M"+n+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e){var t=r.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=r.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=r.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=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t},needLine:!0,noDot:!0,noFill:!0}}},MGx7:function(e,t,n){"use strict";e.exports=function(e){return e}},MQ60:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"02f4":function(e,t,n){var r=n("4588"),a=n("be13");e.exports=function(e){return function(t,n){var i,o,l=String(a(t)),s=r(n),c=l.length;return s<0||s>=c?e?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===c||(o=l.charCodeAt(s+1))<56320||o>57343?e?l.charAt(s):i:e?l.slice(s,s+2):o-56320+(i-55296<<10)+65536}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0fc9":function(e,t,n){var r=n("3a38"),a=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?a(e+t,0):i(e,t)}},1654:function(e,t,n){"use strict";var r=n("71c1")(!0);n("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"1af6":function(e,t,n){var r=n("63b6");r(r.S,"Array",{isArray:n("9003")})},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var r=n("f772"),a=n("e53d").document,i=r(a)&&r(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},"20fd":function(e,t,n){"use strict";var r=n("d9f6"),a=n("aebd");e.exports=function(e,t,n){t in e?r.f(e,t,a(0,n)):e[t]=n}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),a=n("32e9"),i=n("79e5"),o=n("be13"),l=n("2b4c"),s=n("520a"),c=l("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=l(e),f=!i((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f?!i((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!t})):void 0;if(!f||!p||"replace"===e&&!u||"split"===e&&!d){var g=/./[h],v=n(o,h,""[e],(function(e,t,n,r,a){return t.exec===s?f&&!a?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),m=v[0],y=v[1];r(String.prototype,e,m),a(RegExp.prototype,h,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),a=n("7726").document,i=r(a)&&r(a.createElement);e.exports=function(e){return i?a.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),a=n("2b4c")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:i?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},"241e":function(e,t,n){var r=n("25eb");e.exports=function(e){return Object(r(e))}},"25eb":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"2aba":function(e,t,n){var r=n("7726"),a=n("32e9"),i=n("69a8"),o=n("ca5a")("src"),l=n("fa5b"),s=(""+l).split("toString");n("8378").inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,n,l){var c="function"==typeof n;c&&(i(n,"name")||a(n,"name",t)),e[t]!==n&&(c&&(i(n,o)||a(n,o,e[t]?""+e[t]:s.join(String(t)))),e===r?e[t]=n:l?e[t]?e[t]=n:a(e,t,n):(delete e[t],a(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[o]||l.call(this)}))},"2b4c":function(e,t,n){var r=n("5537")("wks"),a=n("ca5a"),i=n("7726").Symbol,o="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:a)("Symbol."+e))}).store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),a=n("d2c8");r(r.P+r.F*n("5147")("includes"),"String",{includes:function(e){return!!~a(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"30f1":function(e,t,n){"use strict";var r=n("b8e3"),a=n("63b6"),i=n("9138"),o=n("35e8"),l=n("481b"),s=n("8f60"),c=n("45f2"),u=n("53e2"),d=n("5168")("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,g,v,m){s(n,t,p);var y,x,b,w=function(e){if(!h&&e in M)return M[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},_=t+" Iterator",k="values"==g,T=!1,M=e.prototype,A=M[d]||M["@@iterator"]||g&&M[g],S=A||w(g),C=g?k?w("entries"):S:void 0,L="Array"==t&&M.entries||A;if(L&&(b=u(L.call(new e)))!==Object.prototype&&b.next&&(c(b,_,!0),r||"function"==typeof b[d]||o(b,d,f)),k&&A&&"values"!==A.name&&(T=!0,S=function(){return A.call(this)}),r&&!m||!h&&!T&&M[d]||o(M,d,S),l[t]=S,l[_]=f,g)if(y={values:k?S:w("values"),keys:v?S:w("keys"),entries:C},m)for(x in y)x in M||i(M,x,y[x]);else a(a.P+a.F*(h||T),t,y);return y}},"32a6":function(e,t,n){var r=n("241e"),a=n("c3a1");n("ce7e")("keys",(function(){return function(e){return a(r(e))}}))},"32e9":function(e,t,n){var r=n("86cc"),a=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var r=n("e53d").document;e.exports=r&&r.documentElement},"335c":function(e,t,n){var r=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"355d":function(e,t){t.f={}.propertyIsEnumerable},"35e8":function(e,t,n){var r=n("d9f6"),a=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},"36c3":function(e,t,n){var r=n("335c"),a=n("25eb");e.exports=function(e){return r(a(e))}},3702:function(e,t,n){var r=n("481b"),a=n("5168")("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[a]===e)}},"3a38":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"40c3":function(e,t,n){var r=n("6b4c"),a=n("5168")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:i?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"45f2":function(e,t,n){var r=n("d9f6").f,a=n("07e3"),i=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"469f":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("7d7b")},"481b":function(e,t){e.exports={}},"4aa6":function(e,t,n){e.exports=n("dc62")},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4ee1":function(e,t,n){var r=n("5168")("iterator"),a=!1;try{var i=[7][r]();i.return=function(){a=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var i=[7],o=i[r]();o.next=function(){return{done:n=!0}},i[r]=function(){return o},e(i)}catch(e){}return n}},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},5168:function(e,t,n){var r=n("dbdb")("wks"),a=n("62a0"),i=n("e53d").Symbol,o="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:a)("Symbol."+e))}).store=r},5176:function(e,t,n){e.exports=n("51b6")},"51b6":function(e,t,n){n("a3c3"),e.exports=n("584a").Object.assign},"520a":function(e,t,n){"use strict";var r,a,i=n("0bfb"),o=RegExp.prototype.exec,l=String.prototype.replace,s=o,c=(r=/a/,a=/b*/g,o.call(r,"a"),o.call(a,"a"),0!==r.lastIndex||0!==a.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(s=function(e){var t,n,r,a,s=this;return u&&(n=new RegExp("^"+s.source+"$(?!\\s)",i.call(s))),c&&(t=s.lastIndex),r=o.call(s,e),c&&r&&(s.lastIndex=s.global?r.index+r[0].length:t),u&&r&&r.length>1&&l.call(r[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(r[a]=void 0)})),r}),e.exports=s},"53e2":function(e,t,n){var r=n("07e3"),a=n("241e"),i=n("5559")("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},"549b":function(e,t,n){"use strict";var r=n("d864"),a=n("63b6"),i=n("241e"),o=n("b0dc"),l=n("3702"),s=n("b447"),c=n("20fd"),u=n("7cd6");a(a.S+a.F*!n("4ee1")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,a,d,h=i(e),f="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,m=0,y=u(h);if(v&&(g=r(g,p>2?arguments[2]:void 0,2)),null==y||f==Array&&l(y))for(n=new f(t=s(h.length));t>m;m++)c(n,m,v?g(h[m],m):h[m]);else for(d=y.call(h),n=new f;!(a=d.next()).done;m++)c(n,m,v?o(d,g,[a.value,m],!0):a.value);return n.length=m,n}})},"54a1":function(e,t,n){n("6c1c"),n("1654"),e.exports=n("95d5")},5537:function(e,t,n){var r=n("8378"),a=n("7726"),i=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"ยฉ 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(e,t,n){var r=n("dbdb")("keys"),a=n("62a0");e.exports=function(e){return r[e]||(r[e]=a(e))}},"584a":function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"5b4e":function(e,t,n){var r=n("36c3"),a=n("b447"),i=n("0fc9");e.exports=function(e){return function(t,n,o){var l,s=r(t),c=a(s.length),u=i(o,c);if(e&&n!=n){for(;c>u;)if((l=s[u++])!=l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}}},"5ca1":function(e,t,n){var r=n("7726"),a=n("8378"),i=n("32e9"),o=n("2aba"),l=n("9b43"),s=function(e,t,n){var c,u,d,h,f=e&s.F,p=e&s.G,g=e&s.S,v=e&s.P,m=e&s.B,y=p?r:g?r[t]||(r[t]={}):(r[t]||{}).prototype,x=p?a:a[t]||(a[t]={}),b=x.prototype||(x.prototype={});for(c in p&&(n=t),n)d=((u=!f&&y&&void 0!==y[c])?y:n)[c],h=m&&u?l(d,r):v&&"function"==typeof d?l(Function.call,d):d,y&&o(y,c,d,e&s.U),x[c]!=d&&i(x,c,h),v&&b[c]!=d&&(b[c]=d)};r.core=a,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},"5d73":function(e,t,n){e.exports=n("469f")},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),a=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"62a0":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},"63b6":function(e,t,n){var r=n("e53d"),a=n("584a"),i=n("d864"),o=n("35e8"),l=n("07e3"),s=function(e,t,n){var c,u,d,h=e&s.F,f=e&s.G,p=e&s.S,g=e&s.P,v=e&s.B,m=e&s.W,y=f?a:a[t]||(a[t]={}),x=y.prototype,b=f?r:p?r[t]:(r[t]||{}).prototype;for(c in f&&(n=t),n)(u=!h&&b&&void 0!==b[c])&&l(y,c)||(d=u?b[c]:n[c],y[c]=f&&"function"!=typeof b[c]?n[c]:v&&u?i(d,r):m&&b[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):g&&"function"==typeof d?i(Function.call,d):d,g&&((y.virtual||(y.virtual={}))[c]=d,e&s.R&&x&&!x[c]&&o(x,c,d)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},6762:function(e,t,n){"use strict";var r=n("5ca1"),a=n("c366")(!0);r(r.P,"Array",{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),a=n("be13");e.exports=function(e){return r(a(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6c1c":function(e,t,n){n("c367");for(var r=n("e53d"),a=n("35e8"),i=n("481b"),o=n("5168")("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<l.length;s++){var c=l[s],u=r[c],d=u&&u.prototype;d&&!d[o]&&a(d,o,c),i[c]=i.Array}},"71c1":function(e,t,n){var r=n("3a38"),a=n("25eb");e.exports=function(e){return function(t,n){var i,o,l=String(a(t)),s=r(n),c=l.length;return s<0||s>=c?e?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===c||(o=l.charCodeAt(s+1))<56320||o>57343?e?l.charAt(s):i:e?l.slice(s,s+2):o-56320+(i-55296<<10)+65536}}},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"774e":function(e,t,n){e.exports=n("d2d5")},"77f1":function(e,t,n){var r=n("4588"),a=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?a(e+t,0):i(e,t)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7cd6":function(e,t,n){var r=n("40c3"),a=n("5168")("iterator"),i=n("481b");e.exports=n("584a").getIteratorMethod=function(e){if(null!=e)return e[a]||e["@@iterator"]||i[r(e)]}},"7d7b":function(e,t,n){var r=n("e4ae"),a=n("7cd6");e.exports=n("584a").getIterator=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},"7e90":function(e,t,n){var r=n("d9f6"),a=n("e4ae"),i=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){a(e);for(var n,o=i(t),l=o.length,s=0;l>s;)r.f(e,n=o[s++],t[n]);return e}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},8436:function(e,t){e.exports=function(){}},"86cc":function(e,t,n){var r=n("cb7c"),a=n("c69a"),i=n("6a99"),o=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),a)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8aae":function(e,t,n){n("32a6"),e.exports=n("584a").Object.keys},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8f60":function(e,t,n){"use strict";var r=n("a159"),a=n("aebd"),i=n("45f2"),o={};n("35e8")(o,n("5168")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:a(1,n)}),i(e,t+" Iterator")}},9003:function(e,t,n){var r=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==r(e)}},9138:function(e,t,n){e.exports=n("35e8")},9306:function(e,t,n){"use strict";var r=n("c3a1"),a=n("9aa9"),i=n("355d"),o=n("241e"),l=n("335c"),s=Object.assign;e.exports=!s||n("294c")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=r}))?function(e,t){for(var n=o(e),s=arguments.length,c=1,u=a.f,d=i.f;s>c;)for(var h,f=l(arguments[c++]),p=u?r(f).concat(u(f)):r(f),g=p.length,v=0;g>v;)d.call(f,h=p[v++])&&(n[h]=f[h]);return n}:s},9427:function(e,t,n){var r=n("63b6");r(r.S,"Object",{create:n("a159")})},"95d5":function(e,t,n){var r=n("40c3"),a=n("5168")("iterator"),i=n("481b");e.exports=n("584a").isIterable=function(e){var t=Object(e);return void 0!==t[a]||"@@iterator"in t||i.hasOwnProperty(r(t))}},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),a=Array.prototype;null==a[r]&&n("32e9")(a,r,{}),e.exports=function(e){a[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a159:function(e,t,n){var r=n("e4ae"),a=n("7e90"),i=n("1691"),o=n("5559")("IE_PROTO"),l=function(){},s=function(){var e,t=n("1ec9")("iframe"),r=i.length;for(t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s.prototype[i[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=r(e),n=new l,l.prototype=null,n[o]=e):n=s(),void 0===t?n:a(n,t)}},a352:function(e,t){e.exports=n("qkdH")},a3c3:function(e,t,n){var r=n("63b6");r(r.S+r.F,"Object",{assign:n("9306")})},a481:function(e,t,n){"use strict";var r=n("cb7c"),a=n("4bf8"),i=n("9def"),o=n("4588"),l=n("0390"),s=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(e,t,n,p){return[function(r,a){var i=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,a):n.call(String(i),r,a)},function(e,t){var a=p(n,e,this,t);if(a.done)return a.value;var d=r(e),h=String(this),f="function"==typeof t;f||(t=String(t));var v=d.global;if(v){var m=d.unicode;d.lastIndex=0}for(var y=[];;){var x=s(d,h);if(null===x)break;if(y.push(x),!v)break;""===String(x[0])&&(d.lastIndex=l(h,i(d.lastIndex),m))}for(var b,w="",_=0,k=0;k<y.length;k++){x=y[k];for(var T=String(x[0]),M=c(u(o(x.index),h.length),0),A=[],S=1;S<x.length;S++)A.push(void 0===(b=x[S])?b:String(b));var C=x.groups;if(f){var L=[T].concat(A,M,h);void 0!==C&&L.push(C);var I=String(t.apply(void 0,L))}else I=g(T,h,M,A,C,t);M>=_&&(w+=h.slice(_,M)+I,_=M+T.length)}return w+h.slice(_)}];function g(e,t,r,i,o,l){var s=r+e.length,c=i.length,u=f;return void 0!==o&&(o=a(o),u=h),n.call(l,u,(function(n,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(s);case"<":l=o[a.slice(1,-1)];break;default:var u=+a;if(0===u)return n;if(u>c){var h=d(u/10);return 0===h?n:h<=c?void 0===i[h-1]?a.charAt(1):i[h-1]+a.charAt(1):n}l=i[u-1]}return void 0===l?"":l}))}}))},a4bb:function(e,t,n){e.exports=n("8aae")},a745:function(e,t,n){e.exports=n("f410")},aae3:function(e,t,n){var r=n("d3f4"),a=n("2d95"),i=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==a(e))}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b0dc:function(e,t,n){var r=n("e4ae");e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},b447:function(e,t,n){var r=n("3a38"),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},b8e3:function(e,t){e.exports=!0},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var r=n("6821"),a=n("9def"),i=n("77f1");e.exports=function(e){return function(t,n,o){var l,s=r(t),c=a(s.length),u=i(o,c);if(e&&n!=n){for(;c>u;)if((l=s[u++])!=l)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var r=n("8436"),a=n("50ed"),i=n("481b"),o=n("36c3");e.exports=n("30f1")(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,a(1)):a(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},c3a1:function(e,t,n){var r=n("e6f3"),a=n("1691");e.exports=Object.keys||function(e){return r(e,a)}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return u}));n("a481");var r=n("4aa6"),a=n.n(r);var i="undefined"!=typeof window?window.console:e.console;var o,l,s=/-(\w)/g,c=(o=function(e){return e.replace(s,(function(e,t){return t?t.toUpperCase():""}))},l=a()(null),function(e){return l[e]||(l[e]=o(e))});function u(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function d(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},c8bb:function(e,t,n){e.exports=n("54a1")},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce7e:function(e,t,n){var r=n("63b6"),a=n("584a"),i=n("294c");e.exports=function(e,t){var n=(a.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*i((function(){n(1)})),"Object",o)}},d2c8:function(e,t,n){var r=n("aae3"),a=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(a(e))}},d2d5:function(e,t,n){n("1654"),n("549b"),e.exports=n("584a").Array.from},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,n){var r=n("e4ae"),a=n("794b"),i=n("1bc3"),o=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),a)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},dbdb:function(e,t,n){var r=n("584a"),a=n("e53d"),i=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("b8e3")?"pure":"global",copyright:"ยฉ 2019 Denis Pushkarev (zloirock.ru)"})},dc62:function(e,t,n){n("9427");var r=n("584a").Object;e.exports=function(e,t){return r.create(e,t)}},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e6f3:function(e,t,n){var r=n("07e3"),a=n("36c3"),i=n("5b4e")(!1),o=n("5559")("IE_PROTO");e.exports=function(e,t){var n,l=a(e),s=0,c=[];for(n in l)n!=o&&r(l,n)&&c.push(n);for(;t.length>s;)r(l,n=t[s++])&&(~i(c,n)||c.push(n));return c}},f410:function(e,t,n){n("1af6"),e.exports=n("584a").Array.isArray},f559:function(e,t,n){"use strict";var r=n("5ca1"),a=n("9def"),i=n("d2c8"),o="".startsWith;r(r.P+r.F*n("5147")("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),n=a(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return o?o.call(t,r,n):t.slice(n,n+r.length)===r}})},f772:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!=typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var a=n("5176"),i=n.n(a),o=(n("f559"),n("a4bb")),l=n.n(o),s=n("a745"),c=n.n(s);var u=n("5d73"),d=n.n(u);function h(e,t){return function(e){if(c()(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=d()(e);!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n("6762"),n("2fdb");var f=n("774e"),p=n.n(f),g=n("c8bb"),v=n.n(g);function m(e){return function(e){if(c()(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(v()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return p()(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var y=n("a352"),x=n.n(y),b=n("c649");function w(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function _(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),w.call(t,e,n)}}function k(e){return["transition-group","TransitionGroup"].includes(e)}function T(e,t,n){return e[n]||(t[n]?t[n]():void 0)}var M=["Start","Add","Remove","Update","End"],A=["Choose","Unchoose","Sort","Filter","Clone"],S=["Move"].concat(M,A).map((function(e){return"on"+e})),C=null,L={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=function(e){if(!e||1!==e.length)return!1;var t=h(e,1)[0].componentOptions;return!!t&&k(t.tag)}(t);var n=function(e,t,n){var r=0,a=0,i=T(t,n,"header");i&&(r=i.length,e=e?[].concat(m(i),m(e)):m(i));var o=T(t,n,"footer");return o&&(a=o.length,e=e?[].concat(m(e),m(o)):m(o)),{children:e,headerOffset:r,footerOffset:a}}(t,this.$slots,this.$scopedSlots),r=n.children,a=n.headerOffset,o=n.footerOffset;this.headerOffset=a,this.footerOffset=o;var s=function(e,t){var n=null,r=function(e,t){n=function(e,t,n){return void 0===n||((e=e||{})[t]=n),e}(n,e,t)};if(r("attrs",l()(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{})),!t)return n;var a=t.on,o=t.props,s=t.attrs;return r("on",a),r("props",o),i()(n.attrs,s),n}(this.$attrs,this.componentData);return e(this.getTag(),s,r)},created:function(){null!==this.list&&null!==this.value&&b.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&b.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&b.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};M.forEach((function(n){t["on"+n]=_.call(e,n)})),A.forEach((function(n){t["on"+n]=w.bind(e,n)}));var n=l()(this.$attrs).reduce((function(t,n){return t[Object(b.a)(n)]=e.$attrs[n],t}),{}),r=i()({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new x.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(b.a)(t);-1===S.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=function(e,t,n,r){if(!e)return[];var a=e.map((function(e){return e.elm})),i=t.length-r,o=m(t).map((function(e,t){return t>=i?a.length:a.indexOf(e)}));return n?o.filter((function(e){return-1!==e})):o}(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=function(e,t){return e.map((function(e){return e.elm})).indexOf(t)}(this.getChildrenNodes()||[],e);return-1===t?null:{index:t,element:this.realList[t]}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&k(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=m(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,m(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var a=r.realList,o={list:a,component:r};if(t!==n&&a&&r.getUnderlyingVm){var l=r.getUnderlyingVm(n);if(l)return i()(l,o)}return o},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[e].data=null;var t=this.getComponent();t.children=[],t.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),C=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(b.d)(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(Object(b.c)(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(b.d)(e.clone)},onDragUpdate:function(e){Object(b.d)(e.item),Object(b.c)(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=m(t.to.children).filter((function(e){return"none"!==e.style.display})),r=n.indexOf(t.related),a=e.component.getVmIndex(r);return-1!==n.indexOf(C)||!t.willInsertAfter?a:a+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),a=this.context,o=this.computeFutureIndex(r,e);return i()(a,{futureIndex:o}),n(i()({},e,{relatedContext:r,draggedContext:a}),t)},onDragEnd:function(){this.computeIndexes(),C=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",L);var I=L;t.default=I}}).default},MnPd:function(e,t,n){"use strict";var r=n("I23g");e.exports={moduleType:"component",name:"shapes",layoutAttributes:n("pcxQ"),supplyLayoutDefaults:n("Vn7P"),supplyDrawNewShapeDefaults:n("Cluh"),includeBasePlot:n("N9FU")("shapes"),calcAutorange:n("zvAA"),draw:r.draw,drawOne:r.drawOne}},"N+MO":function(e,t,n){"use strict";e.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",role:"info",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:"",role:"info",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,role:"style",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,role:"style",editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}},N9FU:function(e,t,n){"use strict";var r=n("Nx4I"),a=n("/CZE");e.exports=function(e){return function(t,n){var i=t[e];if(Array.isArray(i))for(var o=r.subplotsRegistry.cartesian,l=o.idRegex,s=n._subplots,c=s.xaxis,u=s.yaxis,d=s.cartesian,h=n._has("cartesian")||n._has("gl2d"),f=0;f<i.length;f++){var p=i[f];if(a.isPlainObject(p)){var g=p.xref,v=p.yref,m=l.x.test(g),y=l.y.test(v);if(m||y){h||a.pushUnique(n._basePlotModules,o);var x=!1;m&&-1===c.indexOf(g)&&(c.push(g),x=!0),y&&-1===u.indexOf(v)&&(u.push(v),x=!0),x&&m&&y&&d.push(g+v)}}}}}},NMwq:function(e,t){var n={toPolygon:function(e,t){function n(t){if(t.length<=0)return e.segments({inverted:!1,regions:[]});function n(t){var n=t.slice(0,t.length-1);return e.segments({inverted:!1,regions:[n]})}for(var r=n(t[0]),a=1;a<t.length;a++)r=e.selectDifference(e.combine(r,n(t[a])));return r}if("Polygon"===t.type)return e.polygon(n(t.coordinates));if("MultiPolygon"===t.type){for(var r=e.segments({inverted:!1,regions:[]}),a=0;a<t.coordinates.length;a++)r=e.selectUnion(e.combine(r,n(t.coordinates[a])));return e.polygon(r)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,n){function r(e,n){return t.pointInsideRegion([.5*(e[0][0]+e[1][0]),.5*(e[0][1]+e[1][1])],n)}function a(e){return{region:e,children:[]}}n=e.polygon(e.segments(n));var i=a(null);function o(e,t){for(var n=0;n<e.children.length;n++){if(r(t,(l=e.children[n]).region))return void o(l,t)}var i=a(t);for(n=0;n<e.children.length;n++){var l;r((l=e.children[n]).region,t)&&(i.children.push(l),e.children.splice(n,1),n--)}e.children.push(i)}for(var l=0;l<n.regions.length;l++){var s=n.regions[l];s.length<3||o(i,s)}function c(e,t){for(var n=0,r=e[e.length-1][0],a=e[e.length-1][1],i=[],o=0;o<e.length;o++){var l=e[o][0],s=e[o][1];i.push([l,s]),n+=s*r-l*a,r=l,a=s}return n<0!==t&&i.reverse(),i.push([i[0][0],i[0][1]]),i}var u=[];function d(e){var t=[c(e.region,!1)];u.push(t);for(var n=0;n<e.children.length;n++)t.push(h(e.children[n]))}function h(e){for(var t=0;t<e.children.length;t++)d(e.children[t]);return c(e.region,!0)}for(l=0;l<i.children.length;l++)d(i.children[l]);return u.length<=0?{type:"Polygon",coordinates:[]}:1==u.length?{type:"Polygon",coordinates:u[0]}:{type:"MultiPolygon",coordinates:u}}};e.exports=n},NNjz:function(e,t,n){"use strict";var r=n("bljh"),a=n("/CZE"),i=n("g9E0"),o=n("6AZA").BADNUM,l=n("x5FY"),s=n("k6aH").clearMinTextSize;function c(e,t,n,r){var a=[],i=[],o=r?t:n,l=r?n:t;return a[0]=o.c2p(e.s0,!0),i[0]=l.c2p(e.p0,!0),a[1]=o.c2p(e.s1,!0),i[1]=l.c2p(e.p1,!0),a[2]=o.c2p(e.nextS0,!0),i[2]=l.c2p(e.nextP0,!0),a[3]=o.c2p(e.nextS1,!0),i[3]=l.c2p(e.nextP1,!0),r?[a,i]:[i,a]}e.exports=function(e,t,n,u){var d=e._fullLayout;s("funnel",d),function(e,t,n,l){var s=t.xaxis,u=t.yaxis;a.makeTraceGroups(l,n,"trace bars").each((function(n){var l=r.select(this),d=n[0].trace,h=a.ensureSingle(l,"g","regions");if(d.connector&&d.connector.visible){var f="h"===d.orientation,p=h.selectAll("g.region").data(a.identity);p.enter().append("g").classed("region",!0),p.exit().remove();var g=p.size();p.each((function(n,l){if(l===g-1||n.cNext){var d=c(n,s,u,f),h=d[0],p=d[1],v="";h[0]!==o&&p[0]!==o&&h[1]!==o&&p[1]!==o&&h[2]!==o&&p[2]!==o&&h[3]!==o&&p[3]!==o&&(v+=f?"M"+h[0]+","+p[1]+"L"+h[2]+","+p[2]+"H"+h[3]+"L"+h[1]+","+p[1]+"Z":"M"+h[1]+","+p[1]+"L"+h[2]+","+p[3]+"V"+p[2]+"L"+h[1]+","+p[0]+"Z"),""===v&&(v="M0,0Z"),a.ensureSingle(r.select(this),"path").attr("d",v).call(i.setClipUrl,t.layerClipId,e)}}))}else h.remove()}))}(e,t,n,u),function(e,t,n,o){var l=t.xaxis,s=t.yaxis;a.makeTraceGroups(o,n,"trace bars").each((function(n){var o=r.select(this),u=n[0].trace,d=a.ensureSingle(o,"g","lines");if(u.connector&&u.connector.visible&&u.connector.line.width){var h="h"===u.orientation,f=d.selectAll("g.line").data(a.identity);f.enter().append("g").classed("line",!0),f.exit().remove();var p=f.size();f.each((function(n,o){if(o===p-1||n.cNext){var u=c(n,l,s,h),d=u[0],f=u[1],g="";void 0!==d[3]&&void 0!==f[3]&&(h?(g+="M"+d[0]+","+f[1]+"L"+d[2]+","+f[2],g+="M"+d[1]+","+f[1]+"L"+d[3]+","+f[2]):(g+="M"+d[1]+","+f[1]+"L"+d[2]+","+f[3],g+="M"+d[1]+","+f[0]+"L"+d[2]+","+f[2])),""===g&&(g="M0,0Z"),a.ensureSingle(r.select(this),"path").attr("d",g).call(i.setClipUrl,t.layerClipId,e)}}))}else d.remove()}))}(e,t,n,u),l.plot(e,t,n,u,{mode:d.funnelmode,norm:d.funnelmode,gap:d.funnelgap,groupgap:d.funnelgroupgap})}},NPlu:function(e,t,n){"use strict";var r=n("/CZE"),a=n("Nx4I"),i=n("plED").arrayEditor;function o(e,t){var n,r,a,i,o,s,c,u=e._fullLayout.annotations,d=[],h=[],f=[],p=(t||[]).length;for(n=0;n<u.length;n++)if(i=(a=u[n]).clicktoshow){for(r=0;r<p;r++)if(s=(o=t[r]).xaxis,c=o.yaxis,s._id===a.xref&&c._id===a.yref&&s.d2r(o.x)===l(a._xclick,s)&&c.d2r(o.y)===l(a._yclick,c)){(a.visible?"onout"===i?h:f:d).push(n);break}r===p&&a.visible&&"onout"===i&&h.push(n)}return{on:d,off:h,explicitOff:f}}function l(e,t){return"log"===t.type?t.l2r(e):t.d2r(e)}e.exports={hasClickToShow:function(e,t){var n=o(e,t);return n.on.length>0||n.explicitOff.length>0},onClick:function(e,t){var n,l,s=o(e,t),c=s.on,u=s.off.concat(s.explicitOff),d={},h=e._fullLayout.annotations;if(!c.length&&!u.length)return;for(n=0;n<c.length;n++)(l=i(e.layout,"annotations",h[c[n]])).modifyItem("visible",!0),r.extendFlat(d,l.getUpdateObj());for(n=0;n<u.length;n++)(l=i(e.layout,"annotations",h[u[n]])).modifyItem("visible",!1),r.extendFlat(d,l.getUpdateObj());return a.call("update",e,{},d)}}},NRvR:function(e,t,n){"use strict";var r=n("GbLo"),a=n("9rBw");e.exports=function(e,t,n,i){t=t||{};var o="log"===n&&"linear"===t.type,l="linear"===n&&"log"===t.type;if(o||l)for(var s,c,u=e._fullLayout.annotations,d=t._id.charAt(0),h=0;h<u.length;h++)s=u[h],c="annotations["+h+"].",s[d+"ref"]===t._id&&f(d),s["a"+d+"ref"]===t._id&&f("a"+d);function f(e){var n=s[e],l=null;l=o?a(n,t.range):Math.pow(10,n),r(l)||(l=null),i(c+e,l)}}},NpOY:function(e,t,n){"use strict";var r=n("yhet"),a=n.n(r),i=(n("VCwm"),n("L2JU")),o={name:"cub-new-folder",props:["showFolderDialog"],model:{prop:"showFolderDialog",event:"showFolderDialog"},data:()=>({newFolderName:"",folderDescription:"",viewGranted:[],editGranted:[],isFolderCreated:!1}),created(){},components:{Treeselect:a.a},computed:{...Object(i.b)(["getFolderList"]),parentFolder(){return this.getFolderList[0].FolderId}},methods:{treeviewNormalizer(e){if(e.Children)return e.Children.length>0?{id:e.FolderId,label:e.FolderName,children:e.Children}:{id:e.FolderId,label:e.FolderName}},createNewFolder(){var e="parentid="+this.parentFolder+";name="+this.newFolderName+";description="+this.folderDescription+";reporttype=F;;viewby="+this.viewGranted.join(":")+";editby="+this.editGranted.join(":"),t={};t.tagValuePair=e,t.operation="saveReport",t.report_id="",t.dim_list="",t.meas_list="",t.dim_filter_list="",t.meas_filter_list="",t.instance_id="",this.$store.dispatch("saveReportImpl",t),this.$store.dispatch("getFolderList"),this.isFolderCreated=!0,this.closeDialog()},closeDialog(){this.$emit("refreshFolderList",this.isFolderCreated),this.$emit("showFolderDialog",!1)}}},l=n("KHd+"),s=Object(l.a)(o,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-dialog",{attrs:{persistent:"",width:"700px"},model:{value:e.showFolderDialog,callback:function(t){e.showFolderDialog=t},expression:"showFolderDialog"}},[n("v-tabs",{attrs:{color:"#00796b"}},[n("v-tab",{attrs:{href:"#tabinsaveform-1"}},[e._v("Save")]),e._v(" "),n("v-tab",{attrs:{href:"#tabinsaveform-2"}},[e._v("Share")]),e._v(" "),e._l(2,(function(t){return n("v-tab-item",{key:t,attrs:{value:"tabinsaveform-"+t}},[1==t?n("v-card",[n("v-container",{staticClass:"pa-4",attrs:{"grid-list-sm":""}},[n("v-layout",{attrs:{row:"",wrap:""}},[n("v-flex",{attrs:{xs6:""}},[n("v-text-field",{attrs:{value:e.newFolderName,label:"FolderName"},on:{change:function(t){return e.newFolderName=t}}})],1),e._v(" "),n("v-flex",{attrs:{xs6:""}},[n("treeselect",{staticClass:"cub-treeselect",attrs:{options:e.getFolderList,normalizer:e.treeviewNormalizer,clearable:!1,placeholder:"Save In"},model:{value:e.parentFolder,callback:function(t){e.parentFolder=t},expression:"parentFolder"}})],1),e._v(" "),n("v-flex",{attrs:{xs6:""}},[n("v-textarea",{attrs:{value:e.folderDescription,label:"Description"},on:{change:function(t){return e.folderDescription=t}}})],1)],1)],1),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{text:"",color:"primary"},on:{click:function(t){return e.closeDialog()}}},[e._v("Cancel")]),e._v(" "),n("v-btn",{attrs:{text:""},on:{click:function(t){return e.createNewFolder()}}},[e._v("Save")])],1)],1):e._e(),e._v(" "),2==t?n("div",[n("cub-share-card",{on:{viewGranted:function(t){e.viewGranted=t},editGranted:function(t){e.editGranted=t}}})],1):e._e()],1)}))],2)],1)}),[],!1,null,null,null).exports,c={name:"cub-share",props:["reportId"],data:()=>({jsonUsers:[],jsonGroups:[],userView:[],userEdit:[],groupView:[],groupEdit:[]}),watch:{userView(){var e=this.userView.concat(this.groupView);e=e.filter(Boolean),this.$emit("viewGranted",e)},groupView(){var e=this.userView.concat(this.groupView);e=e.filter(Boolean),this.$emit("viewGranted",e)},userEdit(){var e=this.userEdit.concat(this.groupEdit);e=e.filter(Boolean),this.$emit("editGranted",e)},groupEdit(){var e=this.userEdit.concat(this.groupEdit);e=e.filter(Boolean),this.$emit("editGranted",e)}},computed:{...Object(i.b)(["getUserListGetter","getGroupList"])},created(){var e=this.getUserListGetter,t=this.getGroupList,n=[],r=[];if("string"==typeof e?n.push(e):n=e,"string"==typeof t?r.push(t):r=t,this.jsonUsers=[],this.jsonGroups=[],void 0!==n)for(var a=0;a<n.length;a++){var i={Id:(o=n[a].split(":"))[0],Name:o[1]};this.jsonUsers.push(i)}if(void 0!==r)for(a=0;a<r.length;a++){var o;i={Id:(o=r[a].split(":"))[0],Name:o[1]};this.jsonGroups.push(i)}},methods:{}},u=Object(l.a)(c,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-card",{attrs:{flat:""}},[n("v-container",{attrs:{fluid:"",id:"cub-share"}},[n("v-tabs",{attrs:{vertical:""}},[n("v-tab",[e._v("Users")]),e._v(" "),n("v-tab",[e._v("Groups")]),e._v(" "),n("v-tab-item",[n("v-card",{staticStyle:{"max-height":"400px",overflow:"hidden auto"},attrs:{flat:""}},e._l(e.jsonUsers,(function(t,r){return n("v-row",{key:t.Id,staticClass:"mb-1 ml-1"},[n("v-col",{staticClass:"pa-0",staticStyle:{height:"24px"}},[n("v-checkbox",{staticClass:"ma-0 pa-0",staticStyle:{height:"24px","padding-right":"20px"},attrs:{label:"View",ripple:!1,value:t.Id},model:{value:e.userView[r],callback:function(t){e.$set(e.userView,r,t)},expression:"userView[index]"}})],1),e._v(" "),n("v-col",{staticClass:"pa-0",staticStyle:{height:"24px"}},[n("v-checkbox",{staticClass:"ma-0 pa-0",staticStyle:{height:"24px"},attrs:{label:"Edit",ripple:!1,value:t.Id},model:{value:e.userEdit[r],callback:function(t){e.$set(e.userEdit,r,t)},expression:"userEdit[index]"}})],1),e._v(" "),n("v-col",{staticClass:"pa-0",staticStyle:{height:"24px"},attrs:{cols:8}},[n("v-list-item-title",[e._v(e._s(t.Name))])],1)],1)})),1)],1),e._v(" "),n("v-tab-item",[n("v-card",{staticStyle:{"max-height":"400px",overflow:"hidden auto"},attrs:{flat:""}},e._l(e.jsonGroups,(function(t,r){return n("v-row",{key:t.Id,staticClass:"mb-1 ml-1"},[n("v-col",{staticClass:"pa-0",staticStyle:{height:"24px"}},[n("v-checkbox",{staticClass:"ma-0 pa-0",staticStyle:{height:"24px","padding-right":"20px"},attrs:{label:"View",ripple:!1,value:t.Id},model:{value:e.groupView[r],callback:function(t){e.$set(e.groupView,r,t)},expression:"groupView[index]"}})],1),e._v(" "),n("v-col",{staticClass:"pa-0",staticStyle:{height:"24px"}},[n("v-checkbox",{staticClass:"ma-0 pa-0",staticStyle:{height:"24px"},attrs:{label:"Edit",ripple:!1,value:t.Id},model:{value:e.groupEdit[r],callback:function(t){e.$set(e.groupEdit,r,t)},expression:"groupEdit[index]"}})],1),e._v(" "),n("v-col",{staticClass:"pa-0",staticStyle:{height:"24px"},attrs:{cols:8}},[n("v-list-item-title",[e._v(e._s(t.Name))])],1)],1)})),1)],1)],1)],1)],1)}),[],!1,null,null,null).exports,d={name:"cub-save",props:["showSaveForm","reportId","dimIds","measIds","factIds","filterStr","isDetailedReport","isCrossTab","cmplxFilterStr","graphType"],model:{prop:"showSaveForm",event:"showSaveForm"},data:()=>({saveinfolder:"",newreport:"0",note:"",expiryon:null,useindash:null,reportcategory:"Cases",reportcategories:["Cases"],folderList:[],description:"",refresh:"",report:"",viewGranted:[],editGranted:[],title:"",menu:!1,refreshFreqDict:{Daily:"1",Weekly:"7",Fortnight:"15",Monthly:"30",Never:"0"},folderdialog:!1,reportStyle:1}),components:{Treeselect:a.a,"cub-new-folder":s,"cub-share":u},created(){console.log(this.cmplxFilterStr),this.isCrossTab&&(this.reportStyle=2),this.reportId&&this.populateSaveForm(),this.saveinfolder=this.getFolderList[0].FolderId},computed:{...Object(i.b)(["getReportById","getFolderList"])},methods:{populateSaveForm(){var e=this.getReportById(this.reportId);this.report=e,this.title=e.Title,this.description=e.Description,this.saveinfolder=e.ParentId,"View"==e.ReportPermissionLevel?this.newreport="0":this.newreport="1"},cancelSave(){this.$emit("showSaveForm",!1)},treeviewNormalizer(e){if(e.Children)return e.Children.length>0?{id:e.FolderId,label:e.FolderName,children:e.Children}:{id:e.FolderId,label:e.FolderName}},saveReport(){if(!this.title.length)return this.$store.commit("setSnackbarStatus",!0),void this.$store.commit("setSnackbarCode","REPORT_TITLE");var e="parentid="+this.saveinfolder+";name="+this.title+";description="+this.description+";refreshfreq="+this.refreshFreqDict[this.refresh]+";reportcategory=101;reporttype=R;viewby="+this.viewGranted.join(":")+";editby="+this.editGranted.join(":");e=this.isDetailedReport?e+";properties=style@"+this.reportStyle+":factid@"+this.factIds+";isdetailreport=1":e+";properties=style@"+this.reportStyle+":graphtype@"+this.graphType;var t={};t.tagValuePair=e,t.operation="saveReport",t.dim_list=this.dimIds,t.meas_list=this.measIds,t.dim_filter_list=this.filterStr,t.meas_filter_list="",t.instance_id="",t.reportType="REPORT","1"==this.newreport?t.report_id=this.reportId:t.report_id="",this.cmplxFilterStr?(t.cmplx_filter_list=this.cmplxFilterStr,this.$store.dispatch("saveReportImpl",t).then(e=>{e?(this.$store.commit("setSnackbarStatus",!0),this.$store.commit("setSnackbarCode","REPORT_SUCCESS")):(this.$store.commit("setSnackbarStatus",!0),this.$store.commit("setSnackbarCode","REPORT_FAILED"))})):this.$store.dispatch("saveReportImpl",t).then(e=>{e?(this.$store.commit("setSnackbarStatus",!0),this.$store.commit("setSnackbarCode","REPORT_SUCCESS")):(this.$store.commit("setSnackbarStatus",!0),this.$store.commit("setSnackbarCode","REPORT_FAILED"))}),this.$emit("showSaveForm",!1)}}},h=Object(l.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-dialog",{attrs:{persistent:"",width:"700px"},model:{value:e.showSaveForm,callback:function(t){e.showSaveForm=t},expression:"showSaveForm"}},[n("v-tabs",{attrs:{color:"#00796b"}},[n("v-tab",{attrs:{href:"#tabinsaveform-1"}},[e._v("Save")]),e._v(" "),n("v-tab",{attrs:{href:"#tabinsaveform-2"}},[e._v("Share")]),e._v(" "),e._l(2,(function(t){return n("v-tab-item",{key:t,attrs:{value:"tabinsaveform-"+t}},[1==t?n("v-card",{attrs:{flat:""}},[n("v-container",{staticClass:"pa-4",attrs:{"grid-list-sm":""}},[n("v-layout",{attrs:{row:"",wrap:""}},[e.reportId&&"View"==e.report.ReportPermissionLevel?n("v-flex",[n("v-radio-group",{staticStyle:{"flex-direction":"row"},model:{value:e.newreport,callback:function(t){e.newreport=t},expression:"newreport"}},[n("v-radio",{staticStyle:{"margin-top":"8px"},attrs:{label:"New Report",value:"0"}})],1)],1):n("v-flex",[n("v-radio-group",{staticStyle:{"flex-direction":"row"},model:{value:e.newreport,callback:function(t){e.newreport=t},expression:"newreport"}},[n("v-radio",{staticStyle:{"margin-top":"8px"},attrs:{label:"New Report",value:"0"}}),e._v(" "),n("v-radio",{attrs:{label:"Update Report",value:"1"}})],1)],1),e._v(" "),e.reportId?n("v-flex",{attrs:{xs6:""}}):e._e(),e._v(" "),n("cub-new-folder",{model:{value:e.folderdialog,callback:function(t){e.folderdialog=t},expression:"folderdialog"}}),e._v(" "),n("v-flex",{staticStyle:{display:"flex"},attrs:{xs5:""}},[n("treeselect",{staticClass:"cub-treeselect",attrs:{options:e.getFolderList,normalizer:e.treeviewNormalizer,clearable:!1,placeholder:"Save In"},model:{value:e.saveinfolder,callback:function(t){e.saveinfolder=t},expression:"saveinfolder"}}),e._v(" "),n("v-icon",{staticStyle:{"margin-bottom":"40px"},on:{click:function(){return e.folderdialog=!0}}},[e._v("folder")])],1),e._v(" "),n("v-spacer"),e._v(" "),n("v-flex",{attrs:{xs6:""}},[n("v-text-field",{attrs:{value:e.title,label:"Title"},on:{change:function(t){return e.title=t}}})],1),e._v(" "),n("v-flex",{attrs:{xs6:""}},[n("v-textarea",{attrs:{value:e.description,label:"Description"},on:{change:function(t){return e.description=t}}})],1),e._v(" "),n("v-flex",{attrs:{xs6:""}},[n("v-textarea",{attrs:{value:e.note,label:"Note"},on:{change:function(t){return e.note=t}}})],1),e._v(" "),n("v-flex",{attrs:{xs12:"",sm4:""}},[n("v-select",{attrs:{items:e.reportcategories,label:"Report Category",standard:""},model:{value:e.reportcategory,callback:function(t){e.reportcategory=t},expression:"reportcategory"}})],1),e._v(" "),n("v-flex",{attrs:{xs12:"",sm4:""}},[n("v-menu",{ref:"menu",refInFor:!0,attrs:{"close-on-content-click":!1,transition:"scale-transition","offset-y":"","full-width":"","min-width":"290px"},scopedSlots:e._u([{key:"activator",fn:function(t){var r=t.on;return[n("v-text-field",e._g({attrs:{label:"Expiry On","prepend-icon":"event",readonly:""},model:{value:e.expiryon,callback:function(t){e.expiryon=t},expression:"expiryon"}},r))]}}],null,!0),model:{value:e.menu,callback:function(t){e.menu=t},expression:"menu"}},[e._v(" "),n("v-date-picker",{attrs:{"no-title":"",scrollable:""},on:{input:function(t){e.menu=!1}},model:{value:e.expiryon,callback:function(t){e.expiryon=t},expression:"expiryon"}})],1)],1),e._v(" "),n("v-flex",{attrs:{xs12:"",sm4:""}},[n("v-select",{attrs:{items:["Daily","Weekly","Fortnight","Monthly","Never"],label:"Refresh",standard:""},model:{value:e.refresh,callback:function(t){e.refresh=t},expression:"refresh"}})],1)],1)],1)],1):e._e(),e._v(" "),2==t?n("div",[n("cub-share",{on:{viewGranted:function(t){e.viewGranted=t},editGranted:function(t){e.editGranted=t}}})],1):e._e(),e._v(" "),n("v-card-actions",[n("v-spacer"),e._v(" "),n("v-btn",{attrs:{text:"",color:"primary"},on:{click:function(t){return e.cancelSave()}}},[e._v("Cancel")]),e._v(" "),n("v-btn",{attrs:{text:""},on:{click:function(t){return e.saveReport()}}},[e._v("Save")])],1)],1)}))],2)],1)}),[],!1,null,null,null);t.a=h.exports},Nurt:function(e,t,n){"use strict";var r=n("bljh"),a=n("/CZE"),i=n("g9E0"),o=n("6AZA").BADNUM,l=n("x5FY"),s=n("k6aH").clearMinTextSize;e.exports=function(e,t,n,c){var u=e._fullLayout;s("waterfall",u),l.plot(e,t,n,c,{mode:u.waterfallmode,norm:u.waterfallmode,gap:u.waterfallgap,groupgap:u.waterfallgroupgap}),function(e,t,n,l){var s=t.xaxis,c=t.yaxis;a.makeTraceGroups(l,n,"trace bars").each((function(n){var l=r.select(this),u=n[0].trace,d=a.ensureSingle(l,"g","lines");if(u.connector&&u.connector.visible){var h="h"===u.orientation,f=u.connector.mode,p=d.selectAll("g.line").data(a.identity);p.enter().append("g").classed("line",!0),p.exit().remove();var g=p.size();p.each((function(n,l){if(l===g-1||n.cNext){var u=function(e,t,n,r){var a=[],i=[],o=r?t:n,l=r?n:t;return a[0]=o.c2p(e.s0,!0),i[0]=l.c2p(e.p0,!0),a[1]=o.c2p(e.s1,!0),i[1]=l.c2p(e.p1,!0),a[2]=o.c2p(e.nextS0,!0),i[2]=l.c2p(e.nextP0,!0),r?[a,i]:[i,a]}(n,s,c,h),d=u[0],p=u[1],v="";d[0]!==o&&p[0]!==o&&d[1]!==o&&p[1]!==o&&("spanning"===f&&!n.isSum&&l>0&&(v+=h?"M"+d[0]+","+p[1]+"V"+p[0]:"M"+d[1]+","+p[0]+"H"+d[0]),"between"!==f&&(n.isSum||l<g-1)&&(v+=h?"M"+d[1]+","+p[0]+"V"+p[1]:"M"+d[0]+","+p[1]+"H"+d[1]),d[2]!==o&&p[2]!==o&&(v+=h?"M"+d[1]+","+p[1]+"V"+p[2]:"M"+d[1]+","+p[1]+"H"+d[2])),""===v&&(v="M0,0Z"),a.ensureSingle(r.select(this),"path").attr("d",v).call(i.setClipUrl,t.layerClipId,e)}}))}else d.remove()}))}(e,t,n,c)}},Nx4I:function(e,t,n){"use strict";var r=n("rhNM"),a=n("t3iM"),i=n("Whu6"),o=n("E4V0"),l=n("G4gu").addStyleRule,s=n("kJIm"),c=n("qHYo"),u=n("poX/"),d=s.extendFlat,h=s.extendDeepAll;function f(e){var n=e.name,a=e.categories,i=e.meta;if(t.modules[n])r.log("Type "+n+" already registered");else{t.subplotsRegistry[e.basePlotModule.name]||function(e){var n=e.name;if(t.subplotsRegistry[n])return void r.log("Plot type "+n+" already registered.");for(var a in m(e),t.subplotsRegistry[n]=e,t.componentsRegistry)b(a,e.name)}(e.basePlotModule);for(var o={},s=0;s<a.length;s++)o[a[s]]=!0,t.allCategories[a[s]]=!0;for(var c in t.modules[n]={_module:e,categories:o},i&&Object.keys(i).length&&(t.modules[n].meta=i),t.allTypes.push(n),t.componentsRegistry)y(c,n);e.layoutAttributes&&d(t.traceLayoutAttributes,e.layoutAttributes);var u=e.basePlotModule,h=u.name;if("mapbox"===h){var f=u.constants.styleRules;for(var p in f)l(".js-plotly-plot .plotly .mapboxgl-"+p,f[p])}"geo"!==h&&"mapbox"!==h||void 0===typeof window||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function p(e){if("string"!=typeof e.name)throw new Error("Component module *name* must be a string.");var n=e.name;for(var r in t.componentsRegistry[n]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&i(t.layoutArrayContainers,n),m(e)),t.modules)y(n,r);for(var a in t.subplotsRegistry)b(n,a);for(var o in t.transformsRegistry)x(n,o);e.schema&&e.schema.layout&&h(u,e.schema.layout)}function g(e){if("string"!=typeof e.name)throw new Error("Transform module *name* must be a string.");var n="Transform module "+e.name,a="function"==typeof e.transform,i="function"==typeof e.calcTransform;if(!a&&!i)throw new Error(n+" is missing a *transform* or *calcTransform* method.");for(var l in a&&i&&r.log([n+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),o(e.attributes)||r.log(n+" registered without an *attributes* object."),"function"!=typeof e.supplyDefaults&&r.log(n+" registered without a *supplyDefaults* method."),t.transformsRegistry[e.name]=e,t.componentsRegistry)x(l,e.name)}function v(e){var n=e.name,r=n.split("-")[0],a=e.dictionary,i=e.format,o=a&&Object.keys(a).length,l=i&&Object.keys(i).length,s=t.localeRegistry,c=s[n];if(c||(s[n]=c={}),r!==n){var u=s[r];u||(s[r]=u={}),o&&u.dictionary===c.dictionary&&(u.dictionary=a),l&&u.format===c.format&&(u.format=i)}o&&(c.dictionary=a),l&&(c.format=i)}function m(e){if(e.layoutAttributes){var n=e.layoutAttributes._arrayAttrRegexps;if(n)for(var r=0;r<n.length;r++)i(t.layoutArrayRegexes,n[r])}}function y(e,n){var r=t.componentsRegistry[e].schema;if(r&&r.traces){var a=r.traces[n];a&&h(t.modules[n]._module.attributes,a)}}function x(e,n){var r=t.componentsRegistry[e].schema;if(r&&r.transforms){var a=r.transforms[n];a&&h(t.transformsRegistry[n].attributes,a)}}function b(e,n){var r=t.componentsRegistry[e].schema;if(r&&r.subplots){var a=t.subplotsRegistry[n],i=a.layoutAttributes,o="subplot"===a.attr?a.name:a.attr;Array.isArray(o)&&(o=o[0]);var l=r.subplots[o];i&&l&&h(i,l)}}function w(e){return"object"==typeof e&&(e=e.type),e}t.modules={},t.allCategories={},t.allTypes=[],t.subplotsRegistry={},t.transformsRegistry={},t.componentsRegistry={},t.layoutArrayContainers=[],t.layoutArrayRegexes=[],t.traceLayoutAttributes={},t.localeRegistry={},t.apiMethodRegistry={},t.collectableSubplotTypes=null,t.register=function(e){if(t.collectableSubplotTypes=null,!e)throw new Error("No argument passed to Plotly.register.");e&&!Array.isArray(e)&&(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];if(!r)throw new Error("Invalid module was attempted to be registered!");switch(r.moduleType){case"trace":f(r);break;case"transform":g(r);break;case"component":p(r);break;case"locale":v(r);break;case"apiMethod":var a=r.name;t.apiMethodRegistry[a]=r.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},t.getModule=function(e){var n=t.modules[w(e)];return!!n&&n._module},t.traceIs=function(e,n){if("various"===(e=w(e)))return!1;var a=t.modules[e];return a||(e&&"area"!==e&&r.log("Unrecognized trace type "+e+"."),a=t.modules[c.type.dflt]),!!a.categories[n]},t.getTransformIndices=function(e,t){for(var n=[],r=e.transforms||[],a=0;a<r.length;a++)r[a].type===t&&n.push(a);return n},t.hasTransform=function(e,t){for(var n=e.transforms||[],r=0;r<n.length;r++)if(n[r].type===t)return!0;return!1},t.getComponentMethod=function(e,n){var r=t.componentsRegistry[e];return r&&r[n]||a},t.call=function(){var e=arguments[0],n=[].slice.call(arguments,1);return t.apiMethodRegistry[e].apply(null,n)}},NykK:function(e,t,n){var r=n("nmnc"),a=n("AP2z"),i=n("KfNM"),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},"O3R+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("cWyK");function a(e){var t=0;if(e&&e.length>0){t+=Math.abs(i(e[0]));for(var n=1;n<e.length;n++)t-=Math.abs(i(e[n]))}return t}function i(e){var t,n,r,a,i,l,s=0,c=e.length;if(c>2){for(l=0;l<c;l++)l===c-2?(r=c-2,a=c-1,i=0):l===c-1?(r=c-1,a=0,i=1):(r=l,a=l+1,i=l+2),t=e[r],n=e[a],s+=(o(e[i][0])-o(t[0]))*Math.sin(o(n[1]));s=6378137*s*6378137/2}return s}function o(e){return e*Math.PI/180}t.default=function(e){return r.geomReduce(e,(function(e,t){return e+function(e){var t,n=0;switch(e.type){case"Polygon":return a(e.coordinates);case"MultiPolygon":for(t=0;t<e.coordinates.length;t++)n+=a(e.coordinates[t]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}(t)}),0)}},OAL3:function(e,t,n){"use strict";var r=n("0RW4"),a=n("/CZE").isArrayOrTypedArray;e.exports=function(e,t,n,i){var o=!1;if(t.marker){var l=t.marker.color,s=(t.marker.line||{}).color;l&&!a(l)?o=l:s&&!a(s)&&(o=s)}i("fillcolor",r.addOpacity((t.line||{}).color||o||n,.5))}},ORvi:function(e,t,n){"use strict";var r=n("/CZE"),a=n("pcRN"),i=n("Nx4I"),o=n("/u34"),l=n("0RW4"),s=r.fillText;e.exports=function(e,t,n,c){var u=e.cd,d=u[0].trace,h=e.xa,f=e.ya,p=h.c2p(t),g=f.c2p(n),v=[p,g],m=d.hoveron||"",y=-1!==d.mode.indexOf("markers")?3:.5;if(-1!==m.indexOf("points")){var x=function(e){var t=Math.max(y,e.mrc||0),n=h.c2p(e.x)-p,r=f.c2p(e.y)-g;return Math.max(Math.sqrt(n*n+r*r)-t,1-y/t)},b=a.getDistanceFunction(c,(function(e){var t=Math.max(3,e.mrc||0),n=1-1/t,r=Math.abs(h.c2p(e.x)-p);return r<t?n*r/t:r-t+n}),(function(e){var t=Math.max(3,e.mrc||0),n=1-1/t,r=Math.abs(f.c2p(e.y)-g);return r<t?n*r/t:r-t+n}),x);if(a.getClosest(u,b,e),!1!==e.index){var w=u[e.index],_=h.c2p(w.x,!0),k=f.c2p(w.y,!0),T=w.mrc||1;e.index=w.i;var M=u[0].t.orientation,A=M&&(w.sNorm||w.s),S="h"===M?A:w.x,C="v"===M?A:w.y;return r.extendFlat(e,{color:o(d,w),x0:_-T,x1:_+T,xLabelVal:S,y0:k-T,y1:k+T,yLabelVal:C,spikeDistance:x(w),hovertemplate:d.hovertemplate}),s(w,d,e),i.getComponentMethod("errorbars","hoverInfo")(w,d,e),[e]}}if(-1!==m.indexOf("fills")&&d._polygons){var L,I,E,O,D,P,z,N,j,R=d._polygons,F=[],B=!1,H=1/0,V=-1/0,G=1/0,U=-1/0;for(L=0;L<R.length;L++)(E=R[L]).contains(v)&&(B=!B,F.push(E),G=Math.min(G,E.ymin),U=Math.max(U,E.ymax));if(B){var q=((G=Math.max(G,0))+(U=Math.min(U,f._length)))/2;for(L=0;L<F.length;L++)for(O=F[L].pts,I=1;I<O.length;I++)(N=O[I-1][1])>q!=(j=O[I][1])>=q&&(P=O[I-1][0],z=O[I][0],j-N&&(D=P+(z-P)*(q-N)/(j-N),H=Math.min(H,D),V=Math.max(V,D)));H=Math.max(H,0),V=Math.min(V,h._length);var Z=l.defaultLine;return l.opacity(d.fillcolor)?Z=d.fillcolor:l.opacity((d.line||{}).color)&&(Z=d.line.color),r.extendFlat(e,{distance:e.maxHoverDistance,x0:H,x1:V,y0:q,y1:q,color:Z,hovertemplate:!1}),delete e.index,d.text&&!Array.isArray(d.text)?e.text=String(d.text):e.text=d.name,[e]}}}},OTZx:function(e,t,n){"use strict";var r=n("hriN");e.exports={calc:function(e,t){return r.calc(e,t)},crossTraceCalc:function(e){r.crossTraceCalc(e,{type:"funnelarea"})}}},OpmZ:function(e,t,n){var r=n("bljh"),a=n("/CZE").extendDeepAll,i=n("Y9zF").MID_SHIFT,o=e.exports={version:"0.2.2"};o.Axis=function(){var e,t,n,l,s={data:[],layout:{}},c={},u={},d=r.dispatch("hover"),h={};return h.render=function(c){return function(c){t=c||t;var d=s.data,h=s.layout;("string"==typeof t||t.nodeName)&&(t=r.select(t)),t.datum(d).each((function(t,s){var c=t.slice();u={data:o.util.cloneJson(c),layout:o.util.cloneJson(h)};var d=0;c.forEach((function(e,t){e.color||(e.color=h.defaultColorRange[d],d=(d+1)%h.defaultColorRange.length),e.strokeColor||(e.strokeColor="LinePlot"===e.geometry?e.color:r.rgb(e.color).darker().toString()),u.data[t].color=e.color,u.data[t].strokeColor=e.strokeColor,u.data[t].strokeDash=e.strokeDash,u.data[t].strokeSize=e.strokeSize}));var f=c.filter((function(e,t){var n=e.visible;return void 0===n||!0===n})),p=!1,g=f.map((function(e,t){return p=p||void 0!==e.groupId,e}));if(p){var v=r.nest().key((function(e,t){return void 0!==e.groupId?e.groupId:"unstacked"})).entries(g),m=[],y=v.map((function(e,t){if("unstacked"===e.key)return e.values;var n=e.values[0].r.map((function(e,t){return 0}));return e.values.forEach((function(e,t,r){e.yStack=[n],m.push(n),n=o.util.sumArrays(e.r,n)})),e.values}));f=r.merge(y)}f.forEach((function(e,t){e.t=Array.isArray(e.t[0])?e.t:[e.t],e.r=Array.isArray(e.r[0])?e.r:[e.r]}));var x=Math.min(h.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2;x=Math.max(10,x);var b,w=[h.margin.left+x,h.margin.top+x];p?b=[0,r.max(o.util.sumArrays(o.util.arrayLast(f).r[0],o.util.arrayLast(m)))]:b=r.extent(o.util.flattenArray(f.map((function(e,t){return e.r}))));h.radialAxis.domain!=o.DATAEXTENT&&(b[0]=0),n=r.scale.linear().domain(h.radialAxis.domain!=o.DATAEXTENT&&h.radialAxis.domain?h.radialAxis.domain:b).range([0,x]),u.layout.radialAxis.domain=n.domain();var _,k=o.util.flattenArray(f.map((function(e,t){return e.t}))),T="string"==typeof k[0];T&&(k=o.util.deduplicate(k),_=k.slice(),k=r.range(k.length),f=f.map((function(e,t){var n=e;return e.t=[k],p&&(n.yStack=e.yStack),n})));var M=f.filter((function(e,t){return"LinePlot"===e.geometry||"DotPlot"===e.geometry})).length===f.length,A=null===h.needsEndSpacing?T||!M:h.needsEndSpacing,S=h.angularAxis.domain&&h.angularAxis.domain!=o.DATAEXTENT&&!T&&h.angularAxis.domain[0]>=0?h.angularAxis.domain:r.extent(k),C=Math.abs(k[1]-k[0]);M&&!T&&(C=0);var L=S.slice();A&&T&&(L[1]+=C);var I=h.angularAxis.ticksCount||4;I>8&&(I=I/(I/8)+I%8),h.angularAxis.ticksStep&&(I=(L[1]-L[0])/I);var E=h.angularAxis.ticksStep||(L[1]-L[0])/(I*(h.minorTicks+1));_&&(E=Math.max(Math.round(E),1)),L[2]||(L[2]=E);var O=r.range.apply(this,L);if(O=O.map((function(e,t){return parseFloat(e.toPrecision(12))})),l=r.scale.linear().domain(L.slice(0,2)).range("clockwise"===h.direction?[0,360]:[360,0]),u.layout.angularAxis.domain=l.domain(),u.layout.angularAxis.endPadding=A?C:0,void 0===(e=r.select(this).select("svg.chart-root"))||e.empty()){var D=(new DOMParser).parseFromString("<svg xmlns='http://www.w3.org/2000/svg' class='chart-root'>' + '<g class='outer-group'>' + '<g class='chart-group'>' + '<circle class='background-circle'></circle>' + '<g class='geometry-group'></g>' + '<g class='radial axis-group'>' + '<circle class='outside-circle'></circle>' + '</g>' + '<g class='angular axis-group'></g>' + '<g class='guides-group'><line></line><circle r='0'></circle></g>' + '</g>' + '<g class='legend-group'></g>' + '<g class='tooltips-group'></g>' + '<g class='title-group'><text></text></g>' + '</g>' + '</svg>","application/xml"),P=this.appendChild(this.ownerDocument.importNode(D.documentElement,!0));e=r.select(P)}e.select(".guides-group").style({"pointer-events":"none"}),e.select(".angular.axis-group").style({"pointer-events":"none"}),e.select(".radial.axis-group").style({"pointer-events":"none"});var z,N=e.select(".chart-group"),j={fill:"none",stroke:h.tickColor},R={"font-size":h.font.size,"font-family":h.font.family,fill:h.font.color,"text-shadow":["-1px 0px","1px -1px","-1px 1px","1px 1px"].map((function(e,t){return" "+e+" 0 "+h.font.outlineColor})).join(",")};if(h.showLegend){z=e.select(".legend-group").attr({transform:"translate("+[x,h.margin.top]+")"}).style({display:"block"});var F=f.map((function(e,t){var n=o.util.cloneJson(e);return n.symbol="DotPlot"===e.geometry?e.dotType||"circle":"LinePlot"!=e.geometry?"square":"line",n.visibleInLegend=void 0===e.visibleInLegend||e.visibleInLegend,n.color="LinePlot"===e.geometry?e.strokeColor:e.color,n}));o.Legend().config({data:f.map((function(e,t){return e.name||"Element"+t})),legendConfig:a({},o.Legend.defaultConfig().legendConfig,{container:z,elements:F,reverseOrder:h.legend.reverseOrder})})();var B=z.node().getBBox();x=Math.min(h.width-B.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2,x=Math.max(10,x),w=[h.margin.left+x,h.margin.top+x],n.range([0,x]),u.layout.radialAxis.domain=n.domain(),z.attr("transform","translate("+[w[0]+x,w[1]-x]+")")}else z=e.select(".legend-group").style({display:"none"});e.attr({width:h.width,height:h.height}).style({opacity:h.opacity}),N.attr("transform","translate("+w+")").style({cursor:"crosshair"});var H=[(h.width-(h.margin.left+h.margin.right+2*x+(B?B.width:0)))/2,(h.height-(h.margin.top+h.margin.bottom+2*x))/2];if(H[0]=Math.max(0,H[0]),H[1]=Math.max(0,H[1]),e.select(".outer-group").attr("transform","translate("+H+")"),h.title&&h.title.text){var V=e.select("g.title-group text").style(R).text(h.title.text),G=V.node().getBBox();V.attr({x:w[0]-G.width/2,y:w[1]-x-20})}var U=e.select(".radial.axis-group");if(h.radialAxis.gridLinesVisible){var q=U.selectAll("circle.grid-circle").data(n.ticks(5));q.enter().append("circle").attr({class:"grid-circle"}).style(j),q.attr("r",n),q.exit().remove()}U.select("circle.outside-circle").attr({r:x}).style(j);var Z=e.select("circle.background-circle").attr({r:x}).style({fill:h.backgroundColor,stroke:h.stroke});function W(e,t){return l(e)%360+h.orientation}if(h.radialAxis.visible){var Y=r.svg.axis().scale(n).ticks(5).tickSize(5);U.call(Y).attr({transform:"rotate("+h.radialAxis.orientation+")"}),U.selectAll(".domain").style(j),U.selectAll("g>text").text((function(e,t){return this.textContent+h.radialAxis.ticksSuffix})).style(R).style({"text-anchor":"start"}).attr({x:0,y:0,dx:0,dy:0,transform:function(e,t){return"horizontal"===h.radialAxis.tickOrientation?"rotate("+-h.radialAxis.orientation+") translate("+[0,R["font-size"]]+")":"translate("+[0,R["font-size"]]+")"}}),U.selectAll("g>line").style({stroke:"black"})}var X=e.select(".angular.axis-group").selectAll("g.angular-tick").data(O),$=X.enter().append("g").classed("angular-tick",!0);X.attr({transform:function(e,t){return"rotate("+W(e)+")"}}).style({display:h.angularAxis.visible?"block":"none"}),X.exit().remove(),$.append("line").classed("grid-line",!0).classed("major",(function(e,t){return t%(h.minorTicks+1)==0})).classed("minor",(function(e,t){return!(t%(h.minorTicks+1)==0)})).style(j),$.selectAll(".minor").style({stroke:h.minorTickColor}),X.select("line.grid-line").attr({x1:h.tickLength?x-h.tickLength:0,x2:x}).style({display:h.angularAxis.gridLinesVisible?"block":"none"}),$.append("text").classed("axis-text",!0).style(R);var J=X.select("text.axis-text").attr({x:x+h.labelOffset,dy:i+"em",transform:function(e,t){var n=W(e),r=x+h.labelOffset,a=h.angularAxis.tickOrientation;return"horizontal"==a?"rotate("+-n+" "+r+" 0)":"radial"==a?n<270&&n>90?"rotate(180 "+r+" 0)":null:"rotate("+(n<=180&&n>0?-90:90)+" "+r+" 0)"}}).style({"text-anchor":"middle",display:h.angularAxis.labelsVisible?"block":"none"}).text((function(e,t){return t%(h.minorTicks+1)!=0?"":_?_[e]+h.angularAxis.ticksSuffix:e+h.angularAxis.ticksSuffix})).style(R);h.angularAxis.rewriteTicks&&J.text((function(e,t){return t%(h.minorTicks+1)!=0?"":h.angularAxis.rewriteTicks(this.textContent,t)}));var K=r.max(N.selectAll(".angular-tick text")[0].map((function(e,t){return e.getCTM().e+e.getBBox().width})));z.attr({transform:"translate("+[x+K,h.margin.top]+")"});var Q=e.select("g.geometry-group").selectAll("g").size()>0,ee=e.select("g.geometry-group").selectAll("g.geometry").data(f);if(ee.enter().append("g").attr({class:function(e,t){return"geometry geometry"+t}}),ee.exit().remove(),f[0]||Q){var te=[];f.forEach((function(e,t){var r={};r.radialScale=n,r.angularScale=l,r.container=ee.filter((function(e,n){return n==t})),r.geometry=e.geometry,r.orientation=h.orientation,r.direction=h.direction,r.index=t,te.push({data:e,geometryConfig:r})}));var ne=r.nest().key((function(e,t){return void 0!==e.data.groupId||"unstacked"})).entries(te),re=[];ne.forEach((function(e,t){"unstacked"===e.key?re=re.concat(e.values.map((function(e,t){return[e]}))):re.push(e.values)})),re.forEach((function(e,t){var n;n=Array.isArray(e)?e[0].geometryConfig.geometry:e.geometryConfig.geometry;var r=e.map((function(e,t){return a(o[n].defaultConfig(),e)}));o[n]().config(r)()}))}var ae,ie,oe=e.select(".guides-group"),le=e.select(".tooltips-group"),se=o.tooltipPanel().config({container:le,fontSize:8})(),ce=o.tooltipPanel().config({container:le,fontSize:8})(),ue=o.tooltipPanel().config({container:le,hasTick:!0})();if(!T){var de=oe.select("line").attr({x1:0,y1:0,y2:0}).style({stroke:"grey","pointer-events":"none"});N.on("mousemove.angular-guide",(function(e,t){var n=o.util.getMousePos(Z).angle;de.attr({x2:-x,transform:"rotate("+n+")"}).style({opacity:.5});var r=(n+180+360-h.orientation)%360;ae=l.invert(r);var a=o.util.convertToCartesian(x+12,n+180);se.text(o.util.round(ae)).move([a[0]+w[0],a[1]+w[1]])})).on("mouseout.angular-guide",(function(e,t){oe.select("line").style({opacity:0})}))}var he=oe.select("circle").style({stroke:"grey",fill:"none"});N.on("mousemove.radial-guide",(function(e,t){var r=o.util.getMousePos(Z).radius;he.attr({r:r}).style({opacity:.5}),ie=n.invert(o.util.getMousePos(Z).radius);var a=o.util.convertToCartesian(r,h.radialAxis.orientation);ce.text(o.util.round(ie)).move([a[0]+w[0],a[1]+w[1]])})).on("mouseout.radial-guide",(function(e,t){he.style({opacity:0}),ue.hide(),se.hide(),ce.hide()})),e.selectAll(".geometry-group .mark").on("mouseover.tooltip",(function(t,n){var a=r.select(this),i=this.style.fill,l="black",s=this.style.opacity||1;if(a.attr({"data-opacity":s}),i&&"none"!==i){a.attr({"data-fill":i}),l=r.hsl(i).darker().toString(),a.style({fill:l,opacity:1});var c={t:o.util.round(t[0]),r:o.util.round(t[1])};T&&(c.t=_[t[0]]);var u="t: "+c.t+", r: "+c.r,d=this.getBoundingClientRect(),h=e.node().getBoundingClientRect(),f=[d.left+d.width/2-H[0]-h.left,d.top+d.height/2-H[1]-h.top];ue.config({color:l}).text(u),ue.move(f)}else i=this.style.stroke||"black",a.attr({"data-stroke":i}),l=r.hsl(i).darker().toString(),a.style({stroke:l,opacity:1})})).on("mousemove.tooltip",(function(e,t){if(0!=r.event.which)return!1;r.select(this).attr("data-fill")&&ue.show()})).on("mouseout.tooltip",(function(e,t){ue.hide();var n=r.select(this),a=n.attr("data-fill");a?n.style({fill:a,opacity:n.attr("data-opacity")}):n.style({stroke:n.attr("data-stroke"),opacity:n.attr("data-opacity")})}))}))}(c),this},h.config=function(e){if(!arguments.length)return s;var t=o.util.cloneJson(e);return t.data.forEach((function(e,t){s.data[t]||(s.data[t]={}),a(s.data[t],o.Axis.defaultConfig().data[0]),a(s.data[t],e)})),a(s.layout,o.Axis.defaultConfig().layout),a(s.layout,t.layout),this},h.getLiveConfig=function(){return u},h.getinputConfig=function(){return c},h.radialScale=function(e){return n},h.angularScale=function(e){return l},h.svg=function(){return e},r.rebind(h,d,"on"),h},o.Axis.defaultConfig=function(e,t){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:"Line1",geometry:"LinePlot",color:null,strokeDash:"solid",strokeColor:null,strokeSize:"1",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:r.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:"gray",outlineColor:"white",family:"Tahoma, sans-serif"},direction:"clockwise",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:"",visible:!0,gridLinesVisible:!0,tickOrientation:"horizontal",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:"",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:"horizontal",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:"silver",minorTickColor:"#eee",backgroundColor:"none",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},o.util={},o.DATAEXTENT="dataExtent",o.AREA="AreaChart",o.LINE="LinePlot",o.DOT="DotPlot",o.BAR="BarChart",o.util._override=function(e,t){for(var n in e)n in t&&(t[n]=e[n])},o.util._extend=function(e,t){for(var n in e)t[n]=e[n]},o.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},o.util.dataFromEquation2=function(e,t){var n=t||6;return r.range(0,360+n,n).map((function(t,n){var r=t*Math.PI/180;return[t,e(r)]}))},o.util.dataFromEquation=function(e,t,n){var a=t||6,i=[],o=[];r.range(0,360+a,a).forEach((function(t,n){var r=t*Math.PI/180,a=e(r);i.push(t),o.push(a)}));var l={t:i,r:o};return n&&(l.name=n),l},o.util.ensureArray=function(e,t){if(void 0===e)return null;var n=[].concat(e);return r.range(t).map((function(e,t){return n[t]||n[0]}))},o.util.fillArrays=function(e,t,n){return t.forEach((function(t,r){e[t]=o.util.ensureArray(e[t],n)})),e},o.util.cloneJson=function(e){return JSON.parse(JSON.stringify(e))},o.util.validateKeys=function(e,t){"string"==typeof t&&(t=t.split("."));var n=t.shift();return e[n]&&(!t.length||objHasKeys(e[n],t))},o.util.sumArrays=function(e,t){return r.zip(e,t).map((function(e,t){return r.sum(e)}))},o.util.arrayLast=function(e){return e[e.length-1]},o.util.arrayEqual=function(e,t){for(var n=Math.max(e.length,t.length,1);n-- >=0&&e[n]===t[n];);return-2===n},o.util.flattenArray=function(e){for(var t=[];!o.util.arrayEqual(t,e);)t=e,e=[].concat.apply([],e);return e},o.util.deduplicate=function(e){return e.filter((function(e,t,n){return n.indexOf(e)==t}))},o.util.convertToCartesian=function(e,t){var n=t*Math.PI/180;return[e*Math.cos(n),e*Math.sin(n)]},o.util.round=function(e,t){var n=t||2,r=Math.pow(10,n);return Math.round(e*r)/r},o.util.getMousePos=function(e){var t=r.mouse(e.node()),n=t[0],a=t[1],i={};return i.x=n,i.y=a,i.pos=t,i.angle=180*(Math.atan2(a,n)+Math.PI)/Math.PI,i.radius=Math.sqrt(n*n+a*a),i},o.util.duplicatesCount=function(e){for(var t,n={},r={},a=0,i=e.length;a<i;a++)(t=e[a])in n?(n[t]++,r[t]=n[t]):n[t]=1;return r},o.util.duplicates=function(e){return Object.keys(o.util.duplicatesCount(e))},o.util.translator=function(e,t,n,r){if(r){var a=n.slice();n=t,t=a}var i=t.reduce((function(e,t){if(void 0!==e)return e[t]}),e);void 0!==i&&(t.reduce((function(e,n,r){if(void 0!==e)return r===t.length-1&&delete e[n],e[n]}),e),n.reduce((function(e,t,r){return void 0===e[t]&&(e[t]={}),r===n.length-1&&(e[t]=i),e[t]}),e))},o.PolyChart=function(){var e=[o.PolyChart.defaultConfig()],t=r.dispatch("hover"),n={solid:"none",dash:[5,2],dot:[2,5]};function i(){var t=e[0].geometryConfig,a=t.container;"string"==typeof a&&(a=r.select(a)),a.datum(e).each((function(e,a){var i=!!e[0].data.yStack,o=e.map((function(e,t){return i?r.zip(e.data.t[0],e.data.r[0],e.data.yStack[0]):r.zip(e.data.t[0],e.data.r[0])})),l=t.angularScale,s=t.radialScale.domain()[0],c={bar:function(n,a,i){var o=e[i].data,s=t.radialScale(n[1])-t.radialScale(0),c=t.radialScale(n[2]||0),u=o.barWidth;r.select(this).attr({class:"mark bar",d:"M"+[[s+c,-u/2],[s+c,u/2],[c,u/2],[c,-u/2]].join("L")+"Z",transform:function(e,n){return"rotate("+(t.orientation+l(e[0]))+")"}})}};c.dot=function(n,a,i){var o=n[2]?[n[0],n[1]+n[2]]:n,l=r.svg.symbol().size(e[i].data.dotSize).type(e[i].data.dotType)(n,a);r.select(this).attr({class:"mark dot",d:l,transform:function(e,n){var r,a,i,l=(r=function(e,n){var r=t.radialScale(e[1]),a=(t.angularScale(e[0])+t.orientation)*Math.PI/180;return{r:r,t:a}}(o),a=r.r*Math.cos(r.t),i=r.r*Math.sin(r.t),{x:a,y:i});return"translate("+[l.x,l.y]+")"}})};var u=r.svg.line.radial().interpolate(e[0].data.lineInterpolation).radius((function(e){return t.radialScale(e[1])})).angle((function(e){return t.angularScale(e[0])*Math.PI/180}));c.line=function(n,a,i){var l=n[2]?o[i].map((function(e,t){return[e[0],e[1]+e[2]]})):o[i];if(r.select(this).each(c.dot).style({opacity:function(t,n){return+e[i].data.dotVisible},fill:p.stroke(n,a,i)}).attr({class:"mark dot"}),!(a>0)){var s=r.select(this.parentNode).selectAll("path.line").data([0]);s.enter().insert("path"),s.attr({class:"line",d:u(l),transform:function(e,n){return"rotate("+(t.orientation+90)+")"},"pointer-events":"none"}).style({fill:function(e,t){return p.fill(n,a,i)},"fill-opacity":0,stroke:function(e,t){return p.stroke(n,a,i)},"stroke-width":function(e,t){return p["stroke-width"](n,a,i)},"stroke-dasharray":function(e,t){return p["stroke-dasharray"](n,a,i)},opacity:function(e,t){return p.opacity(n,a,i)},display:function(e,t){return p.display(n,a,i)}})}};var d=t.angularScale.range(),h=Math.abs(d[1]-d[0])/o[0].length*Math.PI/180,f=r.svg.arc().startAngle((function(e){return-h/2})).endAngle((function(e){return h/2})).innerRadius((function(e){return t.radialScale(s+(e[2]||0))})).outerRadius((function(e){return t.radialScale(s+(e[2]||0))+t.radialScale(e[1])}));c.arc=function(e,n,a){r.select(this).attr({class:"mark arc",d:f,transform:function(e,n){return"rotate("+(t.orientation+l(e[0])+90)+")"}})};var p={fill:function(t,n,r){return e[r].data.color},stroke:function(t,n,r){return e[r].data.strokeColor},"stroke-width":function(t,n,r){return e[r].data.strokeSize+"px"},"stroke-dasharray":function(t,r,a){return n[e[a].data.strokeDash]},opacity:function(t,n,r){return e[r].data.opacity},display:function(t,n,r){return void 0===e[r].data.visible||e[r].data.visible?"block":"none"}},g=r.select(this).selectAll("g.layer").data(o);g.enter().append("g").attr({class:"layer"});var v=g.selectAll("path.mark").data((function(e,t){return e}));v.enter().append("path").attr({class:"mark"}),v.style(p).each(c[t.geometryType]),v.exit().remove(),g.exit().remove()}))}return i.config=function(t){return arguments.length?(t.forEach((function(t,n){e[n]||(e[n]={}),a(e[n],o.PolyChart.defaultConfig()),a(e[n],t)})),this):e},i.getColorScale=function(){},r.rebind(i,t,"on"),i},o.PolyChart.defaultConfig=function(){return{data:{name:"geom1",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:"circle",dotSize:64,dotVisible:!1,barWidth:20,color:"#ffa500",strokeSize:1,strokeColor:"silver",strokeDash:"solid",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:"LinePlot",geometryType:"arc",direction:"clockwise",orientation:0,container:"body",radialScale:null,angularScale:null,colorScale:r.scale.category20()}}},o.BarChart=function(){return o.PolyChart()},o.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:"bar"}}},o.AreaChart=function(){return o.PolyChart()},o.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:"arc"}}},o.DotPlot=function(){return o.PolyChart()},o.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:"dot",dotType:"circle"}}},o.LinePlot=function(){return o.PolyChart()},o.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:"line"}}},o.Legend=function(){var e=o.Legend.defaultConfig(),t=r.dispatch("hover");function n(){var t=e.legendConfig,i=e.data.map((function(e,n){return[].concat(e).map((function(e,r){var i=a({},t.elements[n]);return i.name=e,i.color=[].concat(t.elements[n].color)[r],i}))})),o=r.merge(i);o=o.filter((function(e,n){return t.elements[n]&&(t.elements[n].visibleInLegend||void 0===t.elements[n].visibleInLegend)})),t.reverseOrder&&(o=o.reverse());var l=t.container;("string"==typeof l||l.nodeName)&&(l=r.select(l));var s=o.map((function(e,t){return e.color})),c=t.fontSize,u=null==t.isContinuous?"number"==typeof o[0]:t.isContinuous,d=u?t.height:c*o.length,h=l.classed("legend-group",!0).selectAll("svg").data([0]),f=h.enter().append("svg").attr({width:300,height:d+c,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"});f.append("g").classed("legend-axis",!0),f.append("g").classed("legend-marks",!0);var p=r.range(o.length),g=r.scale[u?"linear":"ordinal"]().domain(p).range(s),v=r.scale[u?"linear":"ordinal"]().domain(p)[u?"range":"rangePoints"]([0,d]);if(u){var m=h.select(".legend-marks").append("defs").append("linearGradient").attr({id:"grad1",x1:"0%",y1:"0%",x2:"0%",y2:"100%"}).selectAll("stop").data(s);m.enter().append("stop"),m.attr({offset:function(e,t){return t/(s.length-1)*100+"%"}}).style({"stop-color":function(e,t){return e}}),h.append("rect").classed("legend-mark",!0).attr({height:t.height,width:t.colorBandWidth,fill:"url(#grad1)"})}else{var y=h.select(".legend-marks").selectAll("path.legend-mark").data(o);y.enter().append("path").classed("legend-mark",!0),y.attr({transform:function(e,t){return"translate("+[c/2,v(t)+c/2]+")"},d:function(e,t){var n,a,i,o=e.symbol;return i=3*(a=c),"line"===(n=o)?"M"+[[-a/2,-a/12],[a/2,-a/12],[a/2,a/12],[-a/2,a/12]]+"Z":-1!=r.svg.symbolTypes.indexOf(n)?r.svg.symbol().type(n).size(i)():r.svg.symbol().type("square").size(i)()},fill:function(e,t){return g(t)}}),y.exit().remove()}var x=r.svg.axis().scale(v).orient("right"),b=h.select("g.legend-axis").attr({transform:"translate("+[u?t.colorBandWidth:c,c/2]+")"}).call(x);return b.selectAll(".domain").style({fill:"none",stroke:"none"}),b.selectAll("line").style({fill:"none",stroke:u?t.textColor:"none"}),b.selectAll("text").style({fill:t.textColor,"font-size":t.fontSize}).text((function(e,t){return o[t].name})),n}return n.config=function(t){return arguments.length?(a(e,t),this):e},r.rebind(n,t,"on"),n},o.Legend.defaultConfig=function(e,t){return{data:["a","b","c"],legendConfig:{elements:[{symbol:"line",color:"red"},{symbol:"square",color:"yellow"},{symbol:"diamond",color:"limegreen"}],height:150,colorBandWidth:30,fontSize:12,container:"body",isContinuous:null,textColor:"grey",reverseOrder:!1}}},o.tooltipPanel=function(){var e,t,n,i={container:null,hasTick:!1,fontSize:12,color:"white",padding:5},l="tooltip-"+o.tooltipPanel.uid++,s=10,c=function(){var r=(e=i.container.selectAll("g."+l).data([0])).enter().append("g").classed(l,!0).style({"pointer-events":"none",display:"none"});return n=r.append("path").style({fill:"white","fill-opacity":.9}).attr({d:"M0 0"}),t=r.append("text").attr({dx:i.padding+s,dy:.3*+i.fontSize}),c};return c.text=function(a){var o=r.hsl(i.color).l,l=o>=.5?"#aaa":"white",u=o>=.5?"black":"white",d=a||"";t.style({fill:u,"font-size":i.fontSize+"px"}).text(d);var h=i.padding,f=t.node().getBBox(),p={fill:i.color,stroke:l,"stroke-width":"2px"},g=f.width+2*h+s,v=f.height+2*h;return n.attr({d:"M"+[[s,-v/2],[s,-v/4],[i.hasTick?0:s,0],[s,v/4],[s,v/2],[g,v/2],[g,-v/2]].join("L")+"Z"}).style(p),e.attr({transform:"translate("+[s,-v/2+2*h]+")"}),e.style({display:"block"}),c},c.move=function(t){if(e)return e.attr({transform:"translate("+[t[0],t[1]]+")"}).style({display:"block"}),c},c.hide=function(){if(e)return e.style({display:"none"}),c},c.show=function(){if(e)return e.style({display:"block"}),c},c.config=function(e){return a(i,e),c},c},o.tooltipPanel.uid=1,o.adapter={},o.adapter.plotly=function(){var e={convert:function(e,t){var n={};if(e.data&&(n.data=e.data.map((function(e,n){var r=a({},e);return[[r,["marker","color"],["color"]],[r,["marker","opacity"],["opacity"]],[r,["marker","line","color"],["strokeColor"]],[r,["marker","line","dash"],["strokeDash"]],[r,["marker","line","width"],["strokeSize"]],[r,["marker","symbol"],["dotType"]],[r,["marker","size"],["dotSize"]],[r,["marker","barWidth"],["barWidth"]],[r,["line","interpolation"],["lineInterpolation"]],[r,["showlegend"],["visibleInLegend"]]].forEach((function(e,n){o.util.translator.apply(null,e.concat(t))})),t||delete r.marker,t&&delete r.groupId,t?("LinePlot"===r.geometry?(r.type="scatter",!0===r.dotVisible?(delete r.dotVisible,r.mode="lines+markers"):r.mode="lines"):"DotPlot"===r.geometry?(r.type="scatter",r.mode="markers"):"AreaChart"===r.geometry?r.type="area":"BarChart"===r.geometry&&(r.type="bar"),delete r.geometry):("scatter"===r.type?"lines"===r.mode?r.geometry="LinePlot":"markers"===r.mode?r.geometry="DotPlot":"lines+markers"===r.mode&&(r.geometry="LinePlot",r.dotVisible=!0):"area"===r.type?r.geometry="AreaChart":"bar"===r.type&&(r.geometry="BarChart"),delete r.mode,delete r.type),r})),!t&&e.layout&&"stack"===e.layout.barmode)){var i=o.util.duplicates(n.data.map((function(e,t){return e.geometry})));n.data.forEach((function(e,t){var r=i.indexOf(e.geometry);-1!=r&&(n.data[t].groupId=r)}))}if(e.layout){var l=a({},e.layout);if([[l,["plot_bgcolor"],["backgroundColor"]],[l,["showlegend"],["showLegend"]],[l,["radialaxis"],["radialAxis"]],[l,["angularaxis"],["angularAxis"]],[l.angularaxis,["showline"],["gridLinesVisible"]],[l.angularaxis,["showticklabels"],["labelsVisible"]],[l.angularaxis,["nticks"],["ticksCount"]],[l.angularaxis,["tickorientation"],["tickOrientation"]],[l.angularaxis,["ticksuffix"],["ticksSuffix"]],[l.angularaxis,["range"],["domain"]],[l.angularaxis,["endpadding"],["endPadding"]],[l.radialaxis,["showline"],["gridLinesVisible"]],[l.radialaxis,["tickorientation"],["tickOrientation"]],[l.radialaxis,["ticksuffix"],["ticksSuffix"]],[l.radialaxis,["range"],["domain"]],[l.angularAxis,["showline"],["gridLinesVisible"]],[l.angularAxis,["showticklabels"],["labelsVisible"]],[l.angularAxis,["nticks"],["ticksCount"]],[l.angularAxis,["tickorientation"],["tickOrientation"]],[l.angularAxis,["ticksuffix"],["ticksSuffix"]],[l.angularAxis,["range"],["domain"]],[l.angularAxis,["endpadding"],["endPadding"]],[l.radialAxis,["showline"],["gridLinesVisible"]],[l.radialAxis,["tickorientation"],["tickOrientation"]],[l.radialAxis,["ticksuffix"],["ticksSuffix"]],[l.radialAxis,["range"],["domain"]],[l.font,["outlinecolor"],["outlineColor"]],[l.legend,["traceorder"],["reverseOrder"]],[l,["labeloffset"],["labelOffset"]],[l,["defaultcolorrange"],["defaultColorRange"]]].forEach((function(e,n){o.util.translator.apply(null,e.concat(t))})),t?(void 0!==l.tickLength&&(l.angularaxis.ticklen=l.tickLength,delete l.tickLength),l.tickColor&&(l.angularaxis.tickcolor=l.tickColor,delete l.tickColor)):(l.angularAxis&&void 0!==l.angularAxis.ticklen&&(l.tickLength=l.angularAxis.ticklen),l.angularAxis&&void 0!==l.angularAxis.tickcolor&&(l.tickColor=l.angularAxis.tickcolor)),l.legend&&"boolean"!=typeof l.legend.reverseOrder&&(l.legend.reverseOrder="normal"!=l.legend.reverseOrder),l.legend&&"boolean"==typeof l.legend.traceorder&&(l.legend.traceorder=l.legend.traceorder?"reversed":"normal",delete l.legend.reverseOrder),l.margin&&void 0!==l.margin.t){var s=["t","r","b","l","pad"],c=["top","right","bottom","left","pad"],u={};r.entries(l.margin).forEach((function(e,t){u[c[s.indexOf(e.key)]]=e.value})),l.margin=u}t&&(delete l.needsEndSpacing,delete l.minorTickColor,delete l.minorTicks,delete l.angularaxis.ticksCount,delete l.angularaxis.ticksCount,delete l.angularaxis.ticksStep,delete l.angularaxis.rewriteTicks,delete l.angularaxis.nticks,delete l.radialaxis.ticksCount,delete l.radialaxis.ticksCount,delete l.radialaxis.ticksStep,delete l.radialaxis.rewriteTicks,delete l.radialaxis.nticks),n.layout=l}return n}};return e}},Opyf:function(e,t,n){"use strict";var r=n("DOzC").setGroupPositions;e.exports=function(e,t){var n,a,i=e._fullLayout,o=e._fullData,l=e.calcdata,s=t.xaxis,c=t.yaxis,u=[],d=[],h=[];for(a=0;a<o.length;a++){var f=o[a],p="h"===f.orientation;!0===f.visible&&f.xaxis===s._id&&f.yaxis===c._id&&"funnel"===f.type&&(n=l[a],p?h.push(n):d.push(n),u.push(n))}var g={mode:i.funnelmode,norm:i.funnelnorm,gap:i.funnelgap,groupgap:i.funnelgroupgap};for(r(e,s,c,d,g),r(e,c,s,h,g),a=0;a<u.length;a++){n=u[a];for(var v=0;v<n.length;v++)v+1<n.length&&(n[v].nextP0=n[v+1].p0,n[v].nextS0=n[v+1].s0,n[v].nextP1=n[v+1].p1,n[v].nextS1=n[v+1].s1)}}},OqjQ:function(e,t,n){"use strict";var r=n("GbLo"),a=n("/CZE"),i=n("IVx0").extractOpts;e.exports=function(e,t,n){var o,l=e._fullLayout,s=n.vals,c=n.containerStr,u=c?a.nestedProperty(t,c).get():t,d=i(u),h=!1!==d.auto,f=d.min,p=d.max,g=d.mid,v=function(){return a.aggNums(Math.min,null,s)},m=function(){return a.aggNums(Math.max,null,s)};(void 0===f?f=v():h&&(f=u._colorAx&&r(f)?Math.min(f,v()):v()),void 0===p?p=m():h&&(p=u._colorAx&&r(p)?Math.max(p,m()):m()),h&&void 0!==g&&(p-g>g-f?f=g-(p-g):p-g<g-f&&(p=g+(g-f))),f===p&&(f-=.5,p+=.5),d._sync("min",f),d._sync("max",p),d.autocolorscale)&&(o=f*p<0?l.colorscale.diverging:f>=0?l.colorscale.sequential:l.colorscale.sequentialminus,d._sync("colorscale",o))}},Ov3g:function(e,t,n){var r=n("wX2h");r.register([n("R0av"),n("yA84"),n("Id1X"),n("9yVo"),n("PTBI"),n("Pqs8"),n("bKUU"),n("Pv7J"),n("825b"),n("yA84"),n("bQo4"),n("qixK")]),e.exports=r},OyTQ:function(e,t,n){"use strict";var r=n("4htA"),a=r.drawMode,i=r.openMode,o=n("UtjE"),l=o.i000,s=o.i090,c=o.i180,u=o.i270,d=o.cos45,h=o.sin45,f=n("rDM+"),p=f.p2r,g=f.r2p,v=n("6Ue+").clearSelect,m=n("s02k"),y=m.readPaths,x=m.writePaths,b=m.ellipseOver;e.exports=function(e,t){if(e.length){var n=e[0][0];if(n){var r=n.getAttribute("d"),o=t.gd,f=o._fullLayout.newshape,m=t.plotinfo,w=m.xaxis,_=m.yaxis,k=!!m.domain||!m.xaxis,T=!!m.domain||!m.yaxis,M=t.isActiveShape,A=t.dragmode,S=(o.layout||{}).shapes||[];if(!a(A)&&void 0!==M){var C=o._fullLayout._activeShapeIndex;if(C<S.length)switch(o._fullLayout.shapes[C].type){case"rect":A="drawrect";break;case"circle":A="drawcircle";break;case"line":A="drawline";break;case"path":var L=S[C].path||"";A="Z"===L[L.length-1]?"drawclosedpath":"drawopenpath"}}var I,E=i(A),O=y(r,o,m,M),D={editable:!0,xref:k?"paper":w._id,yref:T?"paper":_._id,layer:f.layer,opacity:f.opacity,line:{color:f.line.color,width:f.line.width,dash:f.line.dash}};if(E||(D.fillcolor=f.fillcolor,D.fillrule=f.fillrule),1===O.length&&(I=O[0]),I&&"drawrect"===A)D.type="rect",D.x0=I[0][1],D.y0=I[0][2],D.x1=I[2][1],D.y1=I[2][2];else if(I&&"drawline"===A)D.type="line",D.x0=I[0][1],D.y0=I[0][2],D.x1=I[1][1],D.y1=I[1][2];else if(I&&"drawcircle"===A){D.type="circle";var P=I[l][1],z=I[s][1],N=I[c][1],j=I[u][1],R=I[l][2],F=I[s][2],B=I[c][2],H=I[u][2],V=m.xaxis&&("date"===m.xaxis.type||"log"===m.xaxis.type),G=m.yaxis&&("date"===m.yaxis.type||"log"===m.yaxis.type);V&&(P=g(m.xaxis,P),z=g(m.xaxis,z),N=g(m.xaxis,N),j=g(m.xaxis,j)),G&&(R=g(m.yaxis,R),F=g(m.yaxis,F),B=g(m.yaxis,B),H=g(m.yaxis,H));var U=(z+j)/2,q=(R+B)/2,Z=b({x0:U,y0:q,x1:U+(j-z+N-P)/2*d,y1:q+(H-F+B-R)/2*h});V&&(Z.x0=p(m.xaxis,Z.x0),Z.x1=p(m.xaxis,Z.x1)),G&&(Z.y0=p(m.yaxis,Z.y0),Z.y1=p(m.yaxis,Z.y1)),D.x0=Z.x0,D.y0=Z.y0,D.x1=Z.x1,D.y1=Z.y1}else D.type="path",w&&_&&function(e,t,n){var r="date"===t.type,a="date"===n.type;if(!r&&!a)return e;for(var i=0;i<e.length;i++)for(var o=0;o<e[i].length;o++)for(var l=0;l+2<e[i][o].length;l+=2)r&&(e[i][o][l+1]=e[i][o][l+1].replace(" ","_")),a&&(e[i][o][l+2]=e[i][o][l+2].replace(" ","_"))}(O,w,_),D.path=x(O),I=null;v(o);for(var W=t.editHelpers,Y=(W||{}).modifyItem,X=[],$=0;$<S.length;$++){var J=o._fullLayout.shapes[$];if(X[$]=J._input,void 0!==M&&$===o._fullLayout._activeShapeIndex){var K=D;switch(J.type){case"line":case"rect":case"circle":Y("x0",K.x0),Y("x1",K.x1),Y("y0",K.y0),Y("y1",K.y1);break;case"path":Y("path",K.path)}}}return void 0===M?(X.push(D),X):W?W.getUpdateObj():{}}}}},"P/XJ":function(e,t,n){"use strict";var r={staticPlot:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are interactive or not.","If *false*, no interactivity, for export or image generation."].join(" ")},plotlyServerURL:{valType:"string",dflt:"",description:["When set it determines base URL for","the 'Edit in Chart Studio' `showEditInChartStudio`/`showSendToCloud` mode bar button","and the showLink/sendData on-graph link.","To enable sending your data to Chart Studio Cloud, you need to","set both `plotlyServerURL` to 'https://chart-studio.plotly.com' and","also set `showSendToCloud` to true."].join(" ")},editable:{valType:"boolean",dflt:!1,description:["Determines whether the graph is editable or not.","Sets all pieces of `edits`","unless a separate `edits` config item overrides individual parts."].join(" ")},edits:{annotationPosition:{valType:"boolean",dflt:!1,description:["Determines if the main anchor of the annotation is editable.","The main anchor corresponds to the","text (if no arrow) or the arrow (which drags the whole thing leaving","the arrow length & direction unchanged)."].join(" ")},annotationTail:{valType:"boolean",dflt:!1,description:["Has only an effect for annotations with arrows.","Enables changing the length and direction of the arrow."].join(" ")},annotationText:{valType:"boolean",dflt:!1,description:"Enables editing annotation text."},axisTitleText:{valType:"boolean",dflt:!1,description:"Enables editing axis title text."},colorbarPosition:{valType:"boolean",dflt:!1,description:"Enables moving colorbars."},colorbarTitleText:{valType:"boolean",dflt:!1,description:"Enables editing colorbar title text."},legendPosition:{valType:"boolean",dflt:!1,description:"Enables moving the legend."},legendText:{valType:"boolean",dflt:!1,description:"Enables editing the trace name fields from the legend"},shapePosition:{valType:"boolean",dflt:!1,description:"Enables moving shapes."},titleText:{valType:"boolean",dflt:!1,description:"Enables editing the global layout title."}},autosizable:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are plotted with respect to","layout.autosize:true and infer its container size."].join(" ")},responsive:{valType:"boolean",dflt:!1,description:["Determines whether to change the layout size when window is resized.","In v2, this option will be removed and will always be true."].join(" ")},fillFrame:{valType:"boolean",dflt:!1,description:["When `layout.autosize` is turned on, determines whether the graph","fills the container (the default) or the screen (if set to *true*)."].join(" ")},frameMargins:{valType:"number",dflt:0,min:0,max:.5,description:["When `layout.autosize` is turned on, set the frame margins","in fraction of the graph size."].join(" ")},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox",description:["Determines whether mouse wheel or two-finger scroll zooms is enable.","Turned on by default for gl3d, geo and mapbox subplots","(as these subplot types do not have zoombox via pan),","but turned off by default for cartesian subplots.","Set `scrollZoom` to *false* to disable scrolling for all subplots."].join(" ")},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize",description:["Sets the double click interaction mode.","Has an effect only in cartesian plots.","If *false*, double click is disable.","If *reset*, double click resets the axis ranges to their initial values.","If *autosize*, double click set the axis ranges to their autorange values.","If *reset+autosize*, the odd double clicks resets the axis ranges","to their initial values and even double clicks set the axis ranges","to their autorange values."].join(" ")},doubleClickDelay:{valType:"number",dflt:300,min:0,description:["Sets the delay for registering a double-click in ms.","This is the time interval (in ms) between first mousedown and","2nd mouseup to constitute a double-click.","This setting propagates to all on-subplot double clicks","(except for geo and mapbox) and on-legend double clicks."].join(" ")},showAxisDragHandles:{valType:"boolean",dflt:!0,description:["Set to *false* to omit cartesian axis pan/zoom drag handles."].join(" ")},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0,description:["Set to *false* to omit direct range entry at the pan/zoom drag points,","note that `showAxisDragHandles` must be enabled to have an effect."].join(" ")},showTips:{valType:"boolean",dflt:!0,description:["Determines whether or not tips are shown while interacting","with the resulting graphs."].join(" ")},showLink:{valType:"boolean",dflt:!1,description:["Determines whether a link to Chart Studio Cloud is displayed","at the bottom right corner of resulting graphs.","Use with `sendData` and `linkText`."].join(" ")},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0,description:["Sets the text appearing in the `showLink` link."].join(" ")},sendData:{valType:"boolean",dflt:!0,description:["If *showLink* is true, does it contain data","just link to a Chart Studio Cloud file?"].join(" ")},showSources:{valType:"any",dflt:!1,description:["Adds a source-displaying function to show sources on","the resulting graphs."].join(" ")},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover",description:["Determines the mode bar display mode.","If *true*, the mode bar is always visible.","If *false*, the mode bar is always hidden.","If *hover*, the mode bar is visible while the mouse cursor","is on the graph container."].join(" ")},showSendToCloud:{valType:"boolean",dflt:!1,description:['Should we include a ModeBar button, labeled "Edit in Chart Studio",',"that sends this chart to chart-studio.plotly.com (formerly plot.ly) or another plotly server","as specified by `plotlyServerURL` for editing, export, etc? Prior to version 1.43.0","this button was included by default, now it is opt-in using this flag.","Note that this button can (depending on `plotlyServerURL` being set) send your data","to an external server. However that server does not persist your data",'until you arrive at the Chart Studio and explicitly click "Save".'].join(" ")},showEditInChartStudio:{valType:"boolean",dflt:!1,description:["Same as `showSendToCloud`, but use a pencil icon instead of a floppy-disk.","Note that if both `showSendToCloud` and `showEditInChartStudio` are turned,","only `showEditInChartStudio` will be honored."].join(" ")},modeBarButtonsToRemove:{valType:"any",dflt:[],description:["Remove mode bar buttons by name.","See ./components/modebar/buttons.js for the list of names."].join(" ")},modeBarButtonsToAdd:{valType:"any",dflt:[],description:["Add mode bar button using config objects","See ./components/modebar/buttons.js for list of arguments."].join(" ")},modeBarButtons:{valType:"any",dflt:!1,description:["Define fully custom mode bar buttons as nested array,","where the outer arrays represents button groups, and","the inner arrays have buttons config objects or names of default buttons","See ./components/modebar/buttons.js for more info."].join(" ")},toImageButtonOptions:{valType:"any",dflt:{},description:["Statically override options for toImage modebar button","allowed keys are format, filename, width, height, scale","see ../components/modebar/buttons.js"].join(" ")},displaylogo:{valType:"boolean",dflt:!0,description:["Determines whether or not the plotly logo is displayed","on the end of the mode bar."].join(" ")},watermark:{valType:"boolean",dflt:!1,description:"watermark the images with the company's logo"},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4,description:["Set the pixel ratio during WebGL image export.","This config option was formerly named `plot3dPixelRatio`","which is now deprecated."].join(" ")},setBackground:{valType:"any",dflt:"transparent",description:["Set function to add the background color (i.e. `layout.paper_color`)","to a different container.","This function take the graph div as first argument and the current background","color as second argument.","Alternatively, set to string *opaque* to ensure there is white behind it."].join(" ")},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/",description:["Set the URL to topojson used in geo charts.","By default, the topojson files are fetched from cdn.plot.ly.","For example, set this option to:","<path-to-plotly.js>/dist/topojson/","to render geographical feature using the topojson files","that ship with the plotly.js module."].join(" ")},mapboxAccessToken:{valType:"string",dflt:null,description:["Mapbox access token (required to plot mapbox trace types)","If using an Mapbox Atlas server, set this option to ''","so that plotly.js won't attempt to authenticate to the public Mapbox server."].join(" ")},logging:{valType:"integer",min:0,max:2,dflt:1,description:["Turn all console logging on or off (errors will be thrown)","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0,description:["Set on-graph logging (notifier) level","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no on-graph logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},queueLength:{valType:"integer",min:0,dflt:0,description:"Sets the length of the undo/redo queue."},globalTransforms:{valType:"any",dflt:[],description:["Set global transform to be applied to all traces with no","specification needed"].join(" ")},locale:{valType:"string",dflt:"en-US",description:["Which localization should we use?","Should be a string like 'en' or 'en-US'."].join(" ")},locales:{valType:"any",dflt:{},description:["Localization definitions","Locales can be provided either here (specific to one chart) or globally","by registering them as modules.","Should be an object of objects {locale: {dictionary: {...}, format: {...}}}","{"," da: {"," dictionary: {'Reset axes': 'Nulstil aksler', ...},"," format: {months: [...], shortMonths: [...]}"," },"," ...","}","All parts are optional. When looking for translation or format fields, we","look first for an exact match in a config locale, then in a registered","module. If those fail, we strip off any regionalization ('en-US' -> 'en')","and try each (config, registry) again. The final fallback for translation","is untranslated (which is US English) and for formats is the base English","(the only consequence being the last fallback date format %x is DD/MM/YYYY","instead of MM/DD/YYYY). Currently `grouping` and `currency` are ignored","for our automatic number formatting, but can be used in custom formats."].join(" ")}},a={};!function e(t,n){for(var r in t){var a=t[r];a.valType?n[r]=a.dflt:(n[r]||(n[r]={}),e(a,n[r]))}}(r,a),e.exports={configAttributes:r,dfltConfig:a}},"P/f8":function(e,t,n){"use strict";e.exports={xaxis:{valType:"subplotid",role:"info",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",role:"info",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(" ")}}},P7Iz:function(e,t,n){"use strict";var r=n("/CZE"),a=n("u3HJ"),i=n("aSHK"),o=n("P/XJ").dfltConfig,l=r.isPlainObject,s=Array.isArray,c=r.isArrayOrTypedArray;function u(e,t,n,a,i,o){o=o||[];for(var d=Object.keys(e),h=0;h<d.length;h++){var f=d[h];if("transforms"!==f){var m=o.slice();m.push(f);var y=e[f],x=t[f],b=v(n,f),w=(b||{}).valType,_="info_array"===w,k="colorscale"===w,T=(b||{}).items;if(g(n,f))if(l(y)&&l(x)&&"any"!==w)u(y,x,b,a,i,m);else if(_&&s(y)){y.length>x.length&&a.push(p("unused",i,m.concat(x.length)));var M,A,S,C,L,I=x.length,E=Array.isArray(T);if(E&&(I=Math.min(I,T.length)),2===b.dimensions)for(A=0;A<I;A++)if(s(y[A])){y[A].length>x[A].length&&a.push(p("unused",i,m.concat(A,x[A].length)));var O=x[A].length;for(M=0;M<(E?Math.min(O,T[A].length):O);M++)S=E?T[A][M]:T,C=y[A][M],L=x[A][M],r.validate(C,S)?L!==C&&L!==+C&&a.push(p("dynamic",i,m.concat(A,M),C,L)):a.push(p("value",i,m.concat(A,M),C))}else a.push(p("array",i,m.concat(A),y[A]));else for(A=0;A<I;A++)S=E?T[A]:T,C=y[A],L=x[A],r.validate(C,S)?L!==C&&L!==+C&&a.push(p("dynamic",i,m.concat(A),C,L)):a.push(p("value",i,m.concat(A),C))}else if(b.items&&!_&&s(y)){var D,P,z=T[Object.keys(T)[0]],N=[];for(D=0;D<x.length;D++){var j=x[D]._index||D;if((P=m.slice()).push(j),l(y[j])&&l(x[D])){N.push(j);var R=y[j],F=x[D];l(R)&&!1!==R.visible&&!1===F.visible?a.push(p("invisible",i,P)):u(R,F,z,a,i,P)}}for(D=0;D<y.length;D++)(P=m.slice()).push(D),l(y[D])?-1===N.indexOf(D)&&a.push(p("unused",i,P)):a.push(p("object",i,P,y[D]))}else!l(y)&&l(x)?a.push(p("object",i,m,y)):c(y)||!c(x)||_||k?f in t?r.validate(y,b)?"enumerated"===b.valType&&(b.coerceNumber&&y!==+x||y!==x)&&a.push(p("dynamic",i,m,y,x)):a.push(p("value",i,m,y)):a.push(p("unused",i,m,y)):a.push(p("array",i,m,y));else a.push(p("schema",i,m))}}return a}function d(e,t){for(var n=e.layout.layoutAttributes,a=0;a<t.length;a++){var i=t[a],o=e.traces[i.type],l=o.layoutAttributes;l&&(i.subplot?r.extendFlat(n[o.attributes.subplot.dflt],l):r.extendFlat(n,l))}return n}e.exports=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={});var n,c,h=i.get(),f=[],g={_context:r.extendFlat({},o)};s(e)?(g.data=r.extendDeep([],e),n=e):(g.data=[],n=[],f.push(p("array","data"))),l(t)?(g.layout=r.extendDeep({},t),c=t):(g.layout={},c={},arguments.length>1&&f.push(p("object","layout"))),a.supplyDefaults(g);for(var v=g._fullData,m=n.length,y=0;y<m;y++){var x=n[y],b=["data",y];if(l(x)){var w=v[y],_=w.type,k=h.traces[_].attributes;k.type={valType:"enumerated",values:[_]},!1===w.visible&&!1!==x.visible&&f.push(p("invisible",b)),u(x,w,k,f,b);var T=x.transforms,M=w.transforms;if(T){s(T)||f.push(p("array",b,["transforms"])),b.push("transforms");for(var A=0;A<T.length;A++){var S=["transforms",A],C=T[A].type;if(l(T[A])){var L=h.transforms[C]?h.transforms[C].attributes:{};L.type={valType:"enumerated",values:Object.keys(h.transforms)},u(T[A],M[A],L,f,b,S)}else f.push(p("object",b,S))}}}else f.push(p("object",b))}var I=g._fullLayout,E=d(h,v);return u(c,I,E,f,"layout"),0===f.length?void 0:f};var h={object:function(e,t){return("layout"===e&&""===t?"The layout argument":"data"===e[0]&&""===t?"Trace "+e[1]+" in the data argument":f(e)+"key "+t)+" must be linked to an object container"},array:function(e,t){return("data"===e?"The data argument":f(e)+"key "+t)+" must be linked to an array container"},schema:function(e,t){return f(e)+"key "+t+" is not part of the schema"},unused:function(e,t,n){var r=l(n)?"container":"key";return f(e)+r+" "+t+" did not get coerced"},dynamic:function(e,t,n,r){return[f(e)+"key",t,"(set to '"+n+"')","got reset to","'"+r+"'","during defaults."].join(" ")},invisible:function(e,t){return(t?f(e)+"item "+t:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,t,n){return[f(e)+"key "+t,"is set to an invalid value ("+n+")"].join(" ")}};function f(e){return s(e)?"In data trace "+e[1]+", ":"In "+e+", "}function p(e,t,n,a,i){var o,l;n=n||"",s(t)?(o=t[0],l=t[1]):(o=t,l=null);var c=function(e){if(!s(e))return String(e);for(var t="",n=0;n<e.length;n++){var r=e[n];"number"==typeof r?t=t.substr(0,t.length-1)+"["+r+"]":t+=r,n<e.length-1&&(t+=".")}return t}(n),u=h[e](t,c,a,i);return r.log(u),{code:e,container:o,trace:l,path:n,astr:c,msg:u}}function g(e,t){var n=y(t),r=n.keyMinusId,a=n.id;return!!(r in e&&e[r]._isSubplotObj&&a)||t in e}function v(e,t){return t in e?e[t]:e[y(t).keyMinusId]}var m=r.counterRegex("([a-z]+)");function y(e){var t=e.match(m);return{keyMinusId:t&&t[1],id:t&&t[2]}}},PBw4:function(e,t,n){"use strict";var r=n("Nx4I"),a=n("0wH6");t.id2name=function(e){if("string"==typeof e&&e.match(a.AX_ID_PATTERN)){var t=e.substr(1);return"1"===t&&(t=""),e.charAt(0)+"axis"+t}},t.name2id=function(e){if(e.match(a.AX_NAME_PATTERN)){var t=e.substr(5);return"1"===t&&(t=""),e.charAt(0)+t}},t.cleanId=function(e,t){if("string"==typeof e&&e.match(a.AX_ID_PATTERN)&&(!t||e.charAt(0)===t)){var n=e.substr(1).replace(/^0+/,"");return"1"===n&&(n=""),e.charAt(0)+n}},t.list=function(e,n,r){var a=e._fullLayout;if(!a)return[];var i,o=t.listIds(e,n),l=new Array(o.length);for(i=0;i<o.length;i++){var s=o[i];l[i]=a[s.charAt(0)+"axis"+s.substr(1)]}if(!r){var c=a._subplots.gl3d||[];for(i=0;i<c.length;i++){var u=a[c[i]];n?l.push(u[n+"axis"]):l.push(u.xaxis,u.yaxis,u.zaxis)}}return l},t.listIds=function(e,t){var n=e._fullLayout;if(!n)return[];var r=n._subplots;return t?r[t+"axis"]:r.xaxis.concat(r.yaxis)},t.getFromId=function(e,n,r){var a=e._fullLayout;return"x"===r?n=n.replace(/y[0-9]*/,""):"y"===r&&(n=n.replace(/x[0-9]*/,"")),a[t.id2name(n)]},t.getFromTrace=function(e,n,a){var i=e._fullLayout,o=null;if(r.traceIs(n,"gl3d")){var l=n.scene;"scene"===l.substr(0,5)&&(o=i[l][a+"axis"])}else o=t.getFromId(e,n[a+"axis"]||a);return o},t.idSort=function(e,t){var n=e.charAt(0),r=t.charAt(0);return n!==r?n>r?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},t.getAxisGroup=function(e,t){for(var n=e._axisMatchGroups,r=0;r<n.length;r++){if(n[r][t])return"g"+r}return t}},PDHv:function(e,t,n){"use strict";function r(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 t=e.type,n=e.symmetric;if("data"===t){var a=e.array||[];if(n)return function(e,t){var n=+a[t];return[n,n]};var i=e.arrayminus||[];return function(e,t){var n=+a[t],r=+i[t];return isNaN(n)&&isNaN(r)?[NaN,NaN]:[r||0,n||0]}}var o=r(t,e.value),l=r(t,e.valueminus);return n||void 0===e.valueminus?function(e){var t=o(e);return[t,t]}:function(e){return[l(e),o(e)]}}},PS76:function(e,t,n){"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:"โผ"}}},PTBI:function(e,t,n){"use strict";e.exports=n("Xo+u")},Po4l:function(e,t,n){"use strict";e.exports={treemapcolorway:{valType:"colorlist",role:"style",editType:"calc",description:["Sets the default treemap 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 `extendtreemapcolors`."].join(" ")},extendtreemapcolors:{valType:"boolean",dflt:!0,role:"style",editType:"calc",description:["If `true`, the treemap slice colors (whether given by `treemapcolorway` 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(" ")}}},Pqs8:function(e,t,n){"use strict";e.exports=n("d655")},Pv7J:function(e,t,n){"use strict";e.exports=n("oYsm")},Q1hF:function(e,t,n){"use strict";var r=n("avjU").isArrayOrTypedArray,a=n("E4V0");e.exports=function e(t,n){for(var i in n){var o=n[i],l=t[i];if(l!==o&&(!t.matches||"_categoriesMap"!==i))if("_"===i.charAt(0)||"function"==typeof o){if(i in t)continue;t[i]=o}else if(r(o)&&r(l)&&a(o[0])){if("customdata"===i||"ids"===i)continue;for(var s=Math.min(o.length,l.length),c=0;c<s;c++)l[c]!==o[c]&&a(o[c])&&a(l[c])&&e(l[c],o[c])}else a(o)&&a(l)&&(e(l,o),Object.keys(l).length||delete t[i])}}},Q9kw:function(e,t,n){"use strict";var r=n("bljh"),a=n("/CZE"),i=n("u3HJ"),o=n("Nx4I"),l=n("h0EB"),s=n("Tv4R"),c=n("g9E0"),u=n("0RW4"),d=n("A3kh"),h=n("hN+Y"),f=n("uvVx"),p=n("Y9zF"),g=p.LINE_SPACING,v=p.FROM_TL,m=p.FROM_BR,y=n("8o4k"),x=n("7ncg"),b=n("efHY");function w(e,t,n,r,a){var i=n.data()[0][0].trace,s={event:a,node:n.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=n.datum()[0].label),!1!==l.triggerHandler(e,"plotly_legendclick",s))if(1===r)t._clickTimeout=setTimeout((function(){h(n,e,r)}),e._context.doubleClickDelay);else if(2===r){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0,!1!==l.triggerHandler(e,"plotly_legenddoubleclick",s)&&h(n,e,r)}}function _(e,t,n){var r,i=e.data()[0][0],l=i.trace,s=o.traceIs(l,"pie-like"),u=l.index,h=n._main&&t._context.edits.legendText&&!s,p=n._maxNameLength;n.entries?r=i.text:(r=s?i.label:l.name,l._meta&&(r=a.templateString(r,l._meta)));var g=a.ensureSingle(e,"text","legendtext");g.attr("text-anchor","start").classed("user-select-none",!0).call(c.font,n.font).text(h?k(r,p):r),d.positionText(g,f.textGap,0),h?g.call(d.makeEditable,{gd:t,text:r}).call(M,e,t,n).on("edit",(function(r){this.text(k(r,p)).call(M,e,t,n);var l=i.trace._fullInput||{},s={};if(o.hasTransform(l,"groupby")){var c=o.getTransformIndices(l,"groupby"),d=c[c.length-1],h=a.keyedContainer(l,"transforms["+d+"].styles","target","value.name");h.set(i.trace._group,r),s=h.constructUpdate()}else s.name=r;return o.call("_guiRestyle",t,s,u)})):M(g,e,t,n)}function k(e,t){var n=Math.max(4,t);if(e&&e.trim().length>=n/2)return e;for(var r=n-(e=e||"").length;r>0;r--)e+=" ";return e}function T(e,t){var n,i=t._context.doubleClickDelay,o=1,l=a.ensureSingle(e,"rect","legendtoggle",(function(e){e.style("cursor","pointer").attr("pointer-events","all").call(u.fill,"rgba(0,0,0,0)")}));l.on("mousedown",(function(){(n=(new Date).getTime())-t._legendMouseDownTime<i?o+=1:(o=1,t._legendMouseDownTime=n)})),l.on("mouseup",(function(){if(!t._dragged&&!t._editing){var n=t._fullLayout.legend;(new Date).getTime()-t._legendMouseDownTime>i&&(o=Math.max(o-1,1)),w(t,n,e,o,r.event)}}))}function M(e,t,n,r){r._main||e.attr("data-notex",!0),d.convertToTspans(e,n,(function(){!function(e,t,n){var r=e.data()[0][0];if(n._main&&r&&!r.trace.showlegend)return void e.remove();var a=e.select("g[class*=math-group]"),i=a.node();n||(n=t._fullLayout.legend);var o,l,s=n.borderwidth,u=(r?n:n.title).font.size*g;if(i){var h=c.bBox(i);o=h.height,l=h.width,r?c.setTranslate(a,0,.25*o):c.setTranslate(a,s,.75*o+s)}else{var p=e.select(r?".legendtext":".legendtitletext"),v=d.lineCount(p),m=p.node();o=u*v,l=m?c.bBox(m).width:0;var y=u*((v-1)/2-.3);r?d.positionText(p,f.textGap,-y):d.positionText(p,f.titlePad+s,u+s)}r?(r.lineHeight=u,r.height=Math.max(o,16)+3,r.width=l):(n._titleWidth=l,n._titleHeight=o)}(t,n,r)}))}function A(e){return a.isRightAnchor(e)?"right":a.isCenterAnchor(e)?"center":"left"}function S(e){return a.isBottomAnchor(e)?"bottom":a.isMiddleAnchor(e)?"middle":"top"}e.exports=function(e,t){var n,l=e._fullLayout,d="legend"+l._uid;if(t?(n=t.layer,d+="-hover"):((t=l.legend||{})._main=!0,n=l._infolayer),n){var h;if(e._legendMouseDownTime||(e._legendMouseDownTime=0),t._main){if(!e.calcdata)return;h=l.showlegend&&y(e.calcdata,t)}else{if(!t.entries)return;h=y(t.entries,t)}var p=l.hiddenlabels||[];if(t._main&&(!l.showlegend||!h.length))return n.selectAll(".legend").remove(),l._topdefs.select("#"+d).remove(),i.autoMargin(e,"legend");var g=a.ensureSingle(n,"g","legend",(function(e){t._main&&e.attr("pointer-events","all")})),k=a.ensureSingleById(l._topdefs,"clipPath",d,(function(e){e.append("rect")})),C=a.ensureSingle(g,"rect","bg",(function(e){e.attr("shape-rendering","crispEdges")}));C.call(u.stroke,t.bordercolor).call(u.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var L=a.ensureSingle(g,"g","scrollbox"),I=t.title;if(t._titleWidth=0,t._titleHeight=0,I.text){var E=a.ensureSingle(L,"text","legendtitletext");E.attr("text-anchor","start").classed("user-select-none",!0).call(c.font,I.font).text(I.text),M(E,L,e,t)}else L.selectAll(".legendtitletext").remove();var O=a.ensureSingle(g,"rect","scrollbar",(function(e){e.attr(f.scrollBarEnterAttrs).call(u.fill,f.scrollBarColor)})),D=L.selectAll("g.groups").data(h);D.enter().append("g").attr("class","groups"),D.exit().remove();var P=D.selectAll("g.traces").data(a.identity);P.enter().append("g").attr("class","traces"),P.exit().remove(),P.style("opacity",(function(e){var t=e[0].trace;return o.traceIs(t,"pie-like")?-1!==p.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1})).each((function(){r.select(this).call(_,e,t)})).call(x,e,t).each((function(){t._main&&r.select(this).call(T,e)})),a.syncOrAsync([i.previousPromises,function(){return function(e,t,n,a){var i=e._fullLayout;a||(a=i.legend);var o=i._size,l=b.isVertical(a),s=b.isGrouped(a),u=a.borderwidth,d=2*u,h=f.textGap,p=f.itemGap,g=2*(u+p),v=S(a),m=a.y<0||0===a.y&&"top"===v,y=a.y>1||1===a.y&&"bottom"===v;a._maxHeight=Math.max(m||y?i.height/2:o.h,30);var x=0;a._width=0,a._height=0;var w=function(e){var t=0,n=0,r=e.title.side;r&&(-1!==r.indexOf("left")&&(t=e._titleWidth),-1!==r.indexOf("top")&&(n=e._titleHeight));return[t,n]}(a);if(l)n.each((function(e){var t=e[0].height;c.setTranslate(this,u+w[0],u+w[1]+a._height+t/2+p),a._height+=t,a._width=Math.max(a._width,e[0].width)})),x=h+a._width,a._width+=p+h+d,a._height+=g,s&&(t.each((function(e,t){c.setTranslate(this,0,t*a.tracegroupgap)})),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var _=A(a),k=a.x<0||0===a.x&&"right"===_,T=a.x>1||1===a.x&&"left"===_,M=y||m,C=i.width/2;a._maxWidth=Math.max(k?M&&"left"===_?o.l+o.w:C:T?M&&"right"===_?o.r+o.w:C:o.w,2*h);var L=0,I=0;n.each((function(e){var t=e[0].width+h;L=Math.max(L,t),I+=t})),x=null;var E=0;if(s){var O=0,D=0,P=0;t.each((function(){var e=0,t=0;r.select(this).selectAll("g.traces").each((function(n){var r=n[0].height;c.setTranslate(this,w[0],w[1]+u+p+r/2+t),t+=r,e=Math.max(e,h+n[0].width)})),O=Math.max(O,t);var n=e+p;n+u+D>a._maxWidth&&(E=Math.max(E,D),D=0,P+=O+a.tracegroupgap,O=t),c.setTranslate(this,D,P),D+=n})),a._width=Math.max(E,D)+u,a._height=P+O+g}else{var z=n.size(),N=I+d+(z-1)*p<a._maxWidth,j=0,R=0,F=0,B=0;n.each((function(e){var t=e[0].height,n=h+e[0].width,r=(N?n:L)+p;r+u+R>a._maxWidth&&(E=Math.max(E,B),R=0,F+=j,a._height+=j,j=0),c.setTranslate(this,w[0]+u+R,w[1]+u+F+t/2+p),B=R+n+p,R+=r,j=Math.max(j,t)})),N?(a._width=R+d,a._height=j+g):(a._width=Math.max(E,B)+d,a._height+=j+g)}}a._width=Math.ceil(Math.max(a._width+w[0],a._titleWidth+2*(u+f.titlePad))),a._height=Math.ceil(Math.max(a._height+w[1],a._titleHeight+2*(u+f.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var H=e._context.edits,V=H.legendText||H.legendPosition;n.each((function(e){var t=r.select(this).select(".legendtoggle"),n=e[0].height,a=V?h:x||h+e[0].width;l||(a+=p/2),c.setRect(t,0,-n/2,a,n)}))}(e,D,P,t)},function(){if(!t._main||!function(e){var t=e._fullLayout.legend,n=A(t),r=S(t);return i.autoMargin(e,"legend",{x:t.x,y:t.y,l:t._width*v[n],r:t._width*m[n],b:t._effHeight*m[r],t:t._effHeight*v[r]})}(e)){var u,h,p,y,x=l._size,b=t.borderwidth,_=x.l+x.w*t.x-v[A(t)]*t._width,T=x.t+x.h*(1-t.y)-v[S(t)]*t._effHeight;if(t._main&&l.margin.autoexpand){var M=_,I=T;_=a.constrain(_,0,l.width-t._width),T=a.constrain(T,0,l.height-t._effHeight),_!==M&&a.log("Constrain legend.x to make legend fit inside graph"),T!==I&&a.log("Constrain legend.y to make legend fit inside graph")}if(t._main&&c.setTranslate(g,_,T),O.on(".drag",null),g.on("wheel",null),!t._main||t._height<=t._maxHeight||e._context.staticPlot){var E=t._effHeight;t._main||(E=t._height),C.attr({width:t._width-b,height:E-b,x:b/2,y:b/2}),c.setTranslate(L,0,0),k.select("rect").attr({width:t._width-2*b,height:E-2*b,x:b,y:b}),c.setClipUrl(L,d,e),c.setRect(O,0,0,0,0),delete t._scrollY}else{var D,P,z,N=Math.max(f.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),j=t._effHeight-N-2*f.scrollBarMargin,R=t._height-t._effHeight,F=j/R,B=Math.min(t._scrollY||0,R);C.attr({width:t._width-2*b+f.scrollBarWidth+f.scrollBarMargin,height:t._effHeight-b,x:b/2,y:b/2}),k.select("rect").attr({width:t._width-2*b+f.scrollBarWidth+f.scrollBarMargin,height:t._effHeight-2*b,x:b,y:b+B}),c.setClipUrl(L,d,e),G(B,N,F),g.on("wheel",(function(){G(B=a.constrain(t._scrollY+r.event.deltaY/j*R,0,R),N,F),0!==B&&B!==R&&r.event.preventDefault()}));var H=r.behavior.drag().on("dragstart",(function(){var e=r.event.sourceEvent;D="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,z=B})).on("drag",(function(){var e=r.event.sourceEvent;2===e.buttons||e.ctrlKey||(P="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,G(B=function(e,t,n){var r=(n-t)/F+e;return a.constrain(r,0,R)}(z,D,P),N,F))}));O.call(H);var V=r.behavior.drag().on("dragstart",(function(){var e=r.event.sourceEvent;"touchstart"===e.type&&(D=e.changedTouches[0].clientY,z=B)})).on("drag",(function(){var e=r.event.sourceEvent;"touchmove"===e.type&&(P=e.changedTouches[0].clientY,G(B=function(e,t,n){var r=(t-n)/F+e;return a.constrain(r,0,R)}(z,D,P),N,F))}));L.call(V)}if(e._context.edits.legendPosition)g.classed("cursor-move",!0),s.init({element:g.node(),gd:e,prepFn:function(){var e=c.getTranslate(g);p=e.x,y=e.y},moveFn:function(e,n){var r=p+e,a=y+n;c.setTranslate(g,r,a),u=s.align(r,0,x.l,x.l+x.w,t.xanchor),h=s.align(a,0,x.t+x.h,x.t,t.yanchor)},doneFn:function(){void 0!==u&&void 0!==h&&o.call("_guiRelayout",e,{"legend.x":u,"legend.y":h})},clickFn:function(t,r){var a=n.selectAll("g.traces").filter((function(){var e=this.getBoundingClientRect();return r.clientX>=e.left&&r.clientX<=e.right&&r.clientY>=e.top&&r.clientY<=e.bottom}));a.size()>0&&w(e,g,a,t,r)}})}function G(n,r,a){t._scrollY=e._fullLayout.legend._scrollY=n,c.setTranslate(L,0,-n),c.setRect(O,t._width,f.scrollBarMargin+n*a,f.scrollBarWidth,r),k.select("rect").attr("y",b+n)}}],e)}}},QIyF:function(e,t,n){var r=n("Kz5y");e.exports=function(){return r.Date.now()}},"QJ+7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("cWyK");t.default=function(e){var t=[1/0,1/0,-1/0,-1/0];return r.coordEach(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])})),t}},QTaS:function(e,t,n){"use strict";var r=n("/CZE");e.exports=function(e,t){r.isArrayOrTypedArray(t.selectedpoints)&&r.tagSelected(e,t)}},QYPY:function(e,t,n){"use strict";var r=n("GbLo"),a=n("/CZE"),i=n("cIkR"),o=n("jyrE"),l=n("SFLx").isValid,s=n("Nx4I").traceIs;function c(e,t){var n=t.slice(0,t.length-1);return t?a.nestedProperty(e,n).get()||{}:e}e.exports=function e(t,n,u,d,h){var f=h.prefix,p=h.cLetter,g="_module"in n,v=c(t,f),m=c(n,f),y=c(n._template||{},f)||{},x=function(){return delete t.coloraxis,delete n.coloraxis,e(t,n,u,d,h)};if(g){var b=u._colorAxes||{},w=d(f+"coloraxis");if(w){var _=s(n,"contour")&&a.nestedProperty(n,"contours.coloring").get()||"heatmap",k=b[w];return void(k?(k[2].push(x),k[0]!==_&&(k[0]=!1,a.warn(["Ignoring coloraxis:",w,"setting","as it is linked to incompatible colorscales."].join(" ")))):b[w]=[_,n,[x]])}}var T=v[p+"min"],M=v[p+"max"],A=r(T)&&r(M)&&T<M;d(f+p+"auto",!A)?d(f+p+"mid"):(d(f+p+"min"),d(f+p+"max"));var S,C,L=v.colorscale,I=y.colorscale;(void 0!==L&&(S=!l(L)),void 0!==I&&(S=!l(I)),d(f+"autocolorscale",S),d(f+"colorscale"),d(f+"reversescale"),"marker.line."!==f)&&(f&&g&&(C=i(v)),d(f+"showscale",C)&&(f&&y&&(m._template=y),o(v,m,u)))}},QeBV:function(e,t,n){"use strict";var r=n("GbLo"),a=n("/CZE"),i=n("Nx4I");function o(e,t){var n=t(e);return"scaled"===(n?t(e+"type","array"):"scaled")&&(t(e+"0"),t("d"+e)),n}e.exports=function(e,t,n,l,s,c){var u,d,h=n("z");if(s=s||"x",c=c||"y",void 0===h||!h.length)return 0;if(a.isArray1D(e.z)){u=n(s),d=n(c);var f=a.minRowLength(u),p=a.minRowLength(d);if(0===f||0===p)return 0;t._length=Math.min(f,p,h.length)}else{if(u=o(s,n),d=o(c,n),!function(e){for(var t,n=!0,i=!1,o=!1,l=0;l<e.length;l++){if(t=e[l],!a.isArrayOrTypedArray(t)){n=!1;break}t.length>0&&(i=!0);for(var s=0;s<t.length;s++)if(r(t[s])){o=!0;break}}return n&&i&&o}(h))return 0;n("transpose"),t._length=null}return i.getComponentMethod("calendars","handleTraceDefaults")(e,t,[s,c],l),!0}},QkhT:function(e,t,n){"use strict";var r=n("Nx4I");t.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("gl2d")||e._has("mapbox"))?500:0},t.getRedrawFunc=function(e){return function(){var t=e._fullLayout||{};!(t._has&&t._has("polar"))&&e.data&&e.data[0]&&e.data[0].r||r.getComponentMethod("colorbar","draw")(e)}},t.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)},t.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var a=window.URL||window.webkitURL;t.createObjectURL=function(e){return a.createObjectURL(e)},t.revokeObjectURL=function(e){return a.revokeObjectURL(e)},t.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 n=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),a=0;a<t;a++)r[a]=e.charCodeAt(a);return n}(window.atob(e));return new window.Blob([n],{type:"image/"+t})},t.octetStream=function(e){document.location.href="data:application/octet-stream"+e},t.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,t.MSG_IE_BAD_FORMAT="Sorry IE does not support downloading from canvas. Try {format:'svg'} instead."},QkuE:function(e,t,n){"use strict";var r=n("/CZE");e.exports=function(e,t){for(var n=0;n<e.length;n++)e[n].i=n;r.mergeArray(t.text,e,"tx"),r.mergeArray(t.hovertext,e,"htx");var a=t.marker;if(a){r.mergeArray(a.opacity,e,"mo",!0),r.mergeArray(a.color,e,"mc");var i=a.line;i&&(r.mergeArray(i.color,e,"mlc"),r.mergeArrayCastPositive(i.width,e,"mlw"))}}},QtxG:function(e,t,n){"use strict";var r=n("mEVB"),a=n("37PH"),i=n("kJIm").extendFlat,o=n("yzSc").overrideAll,l=n("grU7"),s=n("plED").templatedArray,c=s("button",{visible:{valType:"boolean",role:"info",description:"Determines whether or not this button is visible."},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle",role:"info",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",role:"info",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",role:"info",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",role:"info",dflt:"",description:"Sets the text label to appear on the button."},execute:{valType:"boolean",role:"info",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",role:"info",description:["Determines whether or not the update menu is visible."].join(" ")},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown",role:"info",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",role:"info",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",role:"info",min:-1,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},showactive:{valType:"boolean",role:"info",dflt:!0,description:"Highlights active dropdown item or active button if true."},buttons:c,x:{valType:"number",min:-2,max:3,dflt:-.05,role:"style",description:"Sets the x position (in normalized coordinates) of the update menu."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right",role:"info",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,role:"style",description:"Sets the y position (in normalized coordinates) of the update menu."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",role:"info",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:r({description:"Sets the font of the update menu button text."}),bgcolor:{valType:"color",role:"style",description:"Sets the background color of the update menu buttons."},bordercolor:{valType:"color",dflt:a.borderLine,role:"style",description:"Sets the color of the border enclosing the update menu."},borderwidth:{valType:"number",min:0,dflt:1,role:"style",editType:"arraydraw",description:"Sets the width (in px) of the border enclosing the update menu."}}),"arraydraw","from-root")},QySe:function(e,t,n){"use strict";var r=n("cLT0");function a(e,t,n,r,a,i,o){a[r]=!0;var l={i:null,gap:!0,s:0};if(l[o]=n,e.splice(t,0,l),t&&n===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,n,r){var a=e[t-1],i=e[t+1];return i?a?a.s+(i.s-a.s)*(n-a[r])/(i[r]-a[r]):i.s:a.s}(e,t,n,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 n=t.xaxis,i=t.yaxis,o=n._id+i._id,l=e._fullLayout._scatterStackOpts[o];if(l){var s,c,u,d,h,f,p,g,v,m,y,x,b,w,_,k=e.calcdata;for(var T in l){var M=(m=l[T]).traceIndices;if(M.length){for(y="interpolate"===m.stackgaps,x=m.groupnorm,"v"===m.orientation?(b="x",w="y"):(b="y",w="x"),_=new Array(M.length),s=0;s<_.length;s++)_[s]=!1;f=k[M[0]];var A=new Array(f.length);for(s=0;s<f.length;s++)A[s]=f[s][b];for(s=1;s<M.length;s++){for(h=k[M[s]],c=u=0;c<h.length;c++){for(p=h[c][b];p>A[u]&&u<A.length;u++)a(h,c,A[u],s,_,y,b),c++;if(p!==A[u]){for(d=0;d<s;d++)a(k[M[d]],u,p,d,_,y,b);A.splice(u,0,p)}u++}for(;u<A.length;u++)a(h,c,A[u],s,_,y,b),c++}var S=A.length;for(c=0;c<f.length;c++){for(g=f[c][w]=f[c].s,s=1;s<M.length;s++)(h=k[M[s]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=S,g+=h[c].s,h[c][w]=g;if(x)for(v=("fraction"===x?g:g/100)||1,s=0;s<M.length;s++){var C=k[M[s]][c];C[w]/=v,C.sNorm=C.s/v}}for(s=0;s<M.length;s++){var L=(h=k[M[s]])[0].trace,I=r.calcMarkerSize(L,L._rawLength),E=Array.isArray(I);if(I&&_[s]||E){var O=I;for(I=new Array(S),c=0;c<S;c++)I[c]=h[c].gap?0:E?O[h[c].i]:O}var D=new Array(S),P=new Array(S);for(c=0;c<S;c++)D[c]=h[c].x,P[c]=h[c].y;r.calcAxisExpansion(e,L,n,i,D,P,I),h[0].t.orientation=m.orientation}}}}}},R0av:function(e,t,n){"use strict";e.exports=n("SLue")},RBan:function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},"RC9+":function(e,t,n){"use strict";var r=n("teMc");t.plot=r.plot,t.newPlot=r.newPlot,t.restyle=r.restyle,t.relayout=r.relayout,t.redraw=r.redraw,t.update=r.update,t._guiRestyle=r._guiRestyle,t._guiRelayout=r._guiRelayout,t._guiUpdate=r._guiUpdate,t._storeDirectGUIEdit=r._storeDirectGUIEdit,t.react=r.react,t.extendTraces=r.extendTraces,t.prependTraces=r.prependTraces,t.addTraces=r.addTraces,t.deleteTraces=r.deleteTraces,t.moveTraces=r.moveTraces,t.purge=r.purge,t.addFrames=r.addFrames,t.deleteFrames=r.deleteFrames,t.animate=r.animate,t.setPlotConfig=r.setPlotConfig,t.toImage=n("oois"),t.validate=n("P7Iz"),t.downloadImage=n("rZH/");var a=n("LZp3");t.makeTemplate=a.makeTemplate,t.validateTemplate=a.validateTemplate},RIqP:function(e,t,n){var r=n("Ijbi"),a=n("EbDI"),i=n("ZhPi"),o=n("Bnag");e.exports=function(e){return r(e)||a(e)||i(e)||o()}},Rb6W:function(e,t,n){"use strict";var r=n("37PH"),a=n("gfA5").attributes,i=n("CASU"),o=n("yzSc").overrideAll,l={range:{valType:"info_array",role:"info",items:[{valType:"number"},{valType:"number"}],description:["Sets the range of this axis (in degrees),","sets the map's clipped coordinates."].join(" ")},showgrid:{valType:"boolean",role:"info",dflt:!1,description:"Sets whether or not graticule are shown on the map."},tick0:{valType:"number",role:"info",dflt:0,description:["Sets the graticule's starting tick longitude/latitude."].join(" ")},dtick:{valType:"number",role:"info",description:["Sets the graticule's longitude/latitude tick step."].join(" ")},gridcolor:{valType:"color",role:"style",dflt:r.lightLine,description:["Sets the graticule's stroke color."].join(" ")},gridwidth:{valType:"number",role:"style",min:0,dflt:1,description:["Sets the graticule's stroke width (in px)."].join(" ")}};(e.exports=o({domain:a({name:"geo"},{description:["Note that geo subplots are constrained by domain.","In general, when `projection.scale` is set to 1.","a map will fit either its x or y domain, but not both."].join(" ")}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,role:"info",editType:"plot",description:["Determines if this subplot's view settings are auto-computed to fit trace data.","On scoped maps, setting `fitbounds` leads to `center.lon` and `center.lat` getting auto-filled.","On maps with a non-clipped projection, setting `fitbounds` leads to `center.lon`, `center.lat`,","and `projection.rotation.lon` getting auto-filled.","On maps with a clipped projection, setting `fitbounds` leads to `center.lon`, `center.lat`,","`projection.rotation.lon`, `projection.rotation.lat`, `lonaxis.range` and `lonaxis.range`","getting auto-filled.","If *locations*, only the trace's visible locations are considered in the `fitbounds` computations.","If *geojson*, the entire trace input `geojson` (if provided) is considered in the `fitbounds` computations,","Defaults to *false*."].join(" ")},resolution:{valType:"enumerated",values:[110,50],role:"info",dflt:110,coerceNumber:!0,description:["Sets the resolution of the base layers.","The values have units of km/mm","e.g. 110 corresponds to a scale ratio of 1:110,000,000."].join(" ")},scope:{valType:"enumerated",role:"info",values:Object.keys(i.scopeDefaults),dflt:"world",description:"Set the scope of the map."},projection:{type:{valType:"enumerated",role:"info",values:Object.keys(i.projNames),description:"Sets the projection type."},rotation:{lon:{valType:"number",role:"info",description:["Rotates the map along parallels","(in degrees East).","Defaults to the center of the `lonaxis.range` values."].join(" ")},lat:{valType:"number",role:"info",description:["Rotates the map along meridians","(in degrees North)."].join(" ")},roll:{valType:"number",role:"info",description:["Roll the map (in degrees)","For example, a roll of *180* makes the map appear upside down."].join(" ")}},parallels:{valType:"info_array",role:"info",items:[{valType:"number"},{valType:"number"}],description:["For conic projection types only.","Sets the parallels (tangent, secant)","where the cone intersects the sphere."].join(" ")},scale:{valType:"number",role:"info",min:0,dflt:1,description:["Zooms in or out on the map view.","A scale of *1* corresponds to the largest zoom level","that fits the map's lon and lat ranges. "].join(" ")}},center:{lon:{valType:"number",role:"info",description:["Sets the longitude of the map's center.","By default, the map's longitude center lies at the middle of the longitude range","for scoped projection and above `projection.rotation.lon` otherwise."].join(" ")},lat:{valType:"number",role:"info",description:["Sets the latitude of the map's center.","For all projection types, the map's latitude center lies","at the middle of the latitude range by default."].join(" ")}},visible:{valType:"boolean",role:"info",dflt:!0,description:"Sets the default visibility of the base layers."},showcoastlines:{valType:"boolean",role:"info",description:"Sets whether or not the coastlines are drawn."},coastlinecolor:{valType:"color",role:"style",dflt:r.defaultLine,description:"Sets the coastline color."},coastlinewidth:{valType:"number",role:"style",min:0,dflt:1,description:"Sets the coastline stroke width (in px)."},showland:{valType:"boolean",role:"info",dflt:!1,description:"Sets whether or not land masses are filled in color."},landcolor:{valType:"color",role:"style",dflt:i.landColor,description:"Sets the land mass color."},showocean:{valType:"boolean",role:"info",dflt:!1,description:"Sets whether or not oceans are filled in color."},oceancolor:{valType:"color",role:"style",dflt:i.waterColor,description:"Sets the ocean color"},showlakes:{valType:"boolean",role:"info",dflt:!1,description:"Sets whether or not lakes are drawn."},lakecolor:{valType:"color",role:"style",dflt:i.waterColor,description:"Sets the color of the lakes."},showrivers:{valType:"boolean",role:"info",dflt:!1,description:"Sets whether or not rivers are drawn."},rivercolor:{valType:"color",role:"style",dflt:i.waterColor,description:"Sets color of the rivers."},riverwidth:{valType:"number",role:"style",min:0,dflt:1,description:"Sets the stroke width (in px) of the rivers."},showcountries:{valType:"boolean",role:"info",description:"Sets whether or not country boundaries are drawn."},countrycolor:{valType:"color",role:"style",dflt:r.defaultLine,description:"Sets line color of the country boundaries."},countrywidth:{valType:"number",role:"style",min:0,dflt:1,description:"Sets line width (in px) of the country boundaries."},showsubunits:{valType:"boolean",role:"info",description:["Sets whether or not boundaries of subunits within countries","(e.g. states, provinces) are drawn."].join(" ")},subunitcolor:{valType:"color",role:"style",dflt:r.defaultLine,description:"Sets the color of the subunits boundaries."},subunitwidth:{valType:"number",role:"style",min:0,dflt:1,description:"Sets the stroke width (in px) of the subunits boundaries."},showframe:{valType:"boolean",role:"info",description:"Sets whether or not a frame is drawn around the map."},framecolor:{valType:"color",role:"style",dflt:r.defaultLine,description:"Sets the color the frame."},framewidth:{valType:"number",role:"style",min:0,dflt:1,description:"Sets the stroke width (in px) of the frame."},bgcolor:{valType:"color",role:"style",dflt:r.background,description:"Set the background color of the map"},lonaxis:l,lataxis:l},"plot","from-root")).uirevision={valType:"any",role:"info",editType:"none",description:["Controls persistence of user-driven changes in the view","(projection and center). Defaults to `layout.uirevision`."].join(" ")}},Rpvy:function(e,t,n){"use strict";var r=n("Nx4I"),a=n("/CZE");function i(e,t,n){var r,i,o,l=!1;if("data"===t.type)r=e._fullData[null!==t.traces?t.traces[0]:0];else{if("layout"!==t.type)return!1;r=e._fullLayout}return i=a.nestedProperty(r,t.prop).get(),(o=n[t.type]=n[t.type]||{}).hasOwnProperty(t.prop)&&o[t.prop]!==i&&(l=!0),o[t.prop]=i,{changed:l,value:i}}function o(e,t){var n=[],r=t[0],i={};if("string"==typeof r)i[r]=t[1];else{if(!a.isPlainObject(r))return n;i=r}return s(i,(function(e,t,r){n.push({type:"layout",prop:e,value:r})}),"",0),n}function l(e,t){var n,r,i,o,l=[];if(r=t[0],i=t[1],n=t[2],o={},"string"==typeof r)o[r]=i;else{if(!a.isPlainObject(r))return l;o=r,void 0===n&&(n=i)}return void 0===n&&(n=null),s(o,(function(t,r,a){var i,o;if(Array.isArray(a)){o=a.slice();var s=Math.min(o.length,e.data.length);n&&(s=Math.min(s,n.length)),i=[];for(var c=0;c<s;c++)i[c]=n?n[c]:c}else o=a,i=n?n.slice():null;if(null===i)Array.isArray(o)&&(o=o[0]);else if(Array.isArray(i)){if(!Array.isArray(o)){var u=o;o=[];for(var d=0;d<i.length;d++)o[d]=u}o.length=Math.min(i.length,o.length)}l.push({type:"data",prop:t,traces:i,value:o})}),"",0),l}function s(e,t,n,r){Object.keys(e).forEach((function(i){var o=e[i];if("_"!==i[0]){var l=n+(r>0?".":"")+i;a.isPlainObject(o)?s(o,t,l,r+1):t(l,i,o)}}))}t.manageCommandObserver=function(e,n,r,o){var l={},s=!0;n&&n._commandObserver&&(l=n._commandObserver),l.cache||(l.cache={}),l.lookupTable={};var c=t.hasSimpleAPICommandBindings(e,r,l.lookupTable);if(n&&n._commandObserver){if(c)return l;if(n._commandObserver.remove)return n._commandObserver.remove(),n._commandObserver=null,l}if(c){i(e,c,l.cache),l.check=function(){if(s){var t=i(e,c,l.cache);return t.changed&&o&&void 0!==l.lookupTable[t.value]&&(l.disable(),Promise.resolve(o({value:t.value,type:c.type,prop:c.prop,traces:c.traces,index:l.lookupTable[t.value]})).then(l.enable,l.enable)),t.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],d=0;d<u.length;d++)e._internalOn(u[d],l.check);l.remove=function(){for(var t=0;t<u.length;t++)e._removeInternalListener(u[t],l.check)}}else a.log("Unable to automatically bind plot updates to API command"),l.lookupTable={},l.remove=function(){};return l.disable=function(){s=!1},l.enable=function(){s=!0},n&&(n._commandObserver=l),l},t.hasSimpleAPICommandBindings=function(e,n,r){var a,i,o=n.length;for(a=0;a<o;a++){var l,s=n[a],c=s.method,u=s.args;if(Array.isArray(u)||(u=[]),!c)return!1;var d=t.computeAPICommandBindings(e,c,u);if(1!==d.length)return!1;if(i){if((l=d[0]).type!==i.type)return!1;if(l.prop!==i.prop)return!1;if(Array.isArray(i.traces)){if(!Array.isArray(l.traces))return!1;l.traces.sort();for(var h=0;h<i.traces.length;h++)if(i.traces[h]!==l.traces[h])return!1}else if(l.prop!==i.prop)return!1}else i=d[0],Array.isArray(i.traces)&&i.traces.sort();var f=(l=d[0]).value;if(Array.isArray(f)){if(1!==f.length)return!1;f=f[0]}r&&(r[f]=a)}return i},t.executeAPICommand=function(e,t,n){if("skip"===t)return Promise.resolve();var i=r.apiMethodRegistry[t],o=[e];Array.isArray(n)||(n=[]);for(var l=0;l<n.length;l++)o.push(n[l]);return i.apply(null,o).catch((function(e){return a.warn("API call to Plotly."+t+" rejected.",e),Promise.reject(e)}))},t.computeAPICommandBindings=function(e,t,n){var r;switch(Array.isArray(n)||(n=[]),t){case"restyle":r=l(e,n);break;case"relayout":r=o(e,n);break;case"update":r=l(e,[n[0],n[2]]).concat(o(e,[n[1]]));break;case"animate":r=function(e,t){return Array.isArray(t[0])&&1===t[0].length&&-1!==["string","number"].indexOf(typeof t[0][0])?[{type:"layout",prop:"_currentFrame",value:t[0][0].toString()}]:[]}(0,n);break;default:r=[]}return r}},S2oI:function(e,t,n){"use strict";var r=n("/CZE"),a=n("BkK/"),i=n("5azm"),o=n("1y5b");function l(e,t,n){function i(n,a){return r.coerce(e,t,o,n,a)}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:n},c=["x","y"],u=0;u<2;u++){var d=c[u],h=a.coerceRef(e,t,s,d,"paper");if("paper"!==h)a.getFromId(s,h)._imgIndices.push(t._index);a.coercePosition(t,s,i,h,d,0)}return t}e.exports=function(e,t){i(e,t,{name:"images",handleItemDefaults:l})}},S4zj:function(e,t,n){"use strict";e.exports=function(e){function t(e,t){return{type:"Feature",id:e.id,properties:e.properties,geometry:n(e.geometry,t)}}function n(t,r){if(!t)return null;if("GeometryCollection"===t.type)return{type:"GeometryCollection",geometries:object.geometries.map((function(e){return n(e,r)}))};if(!c.hasOwnProperty(t.type))return null;var a=c[t.type];return e.geo.stream(t,r(a)),a.result()}e.geo.project=function(e,t){var a=t.stream;if(!a)throw new Error("not yet supported");return(e&&r.hasOwnProperty(e.type)?r[e.type]:n)(e,a)};var r={Feature:t,FeatureCollection:function(e,n){return{type:"FeatureCollection",features:e.features.map((function(e){return t(e,n)}))}}},a=[],i=[],o={point:function(e,t){a.push([e,t])},result:function(){var e=a.length?a.length<2?{type:"Point",coordinates:a[0]}:{type:"MultiPoint",coordinates:a}:null;return a=[],e}},l={lineStart:u,point:function(e,t){a.push([e,t])},lineEnd:function(){a.length&&(i.push(a),a=[])},result:function(){var e=i.length?i.length<2?{type:"LineString",coordinates:i[0]}:{type:"MultiLineString",coordinates:i}:null;return i=[],e}},s={polygonStart:u,lineStart:u,point:function(e,t){a.push([e,t])},lineEnd:function(){var e=a.length;if(e){do{a.push(a[0].slice())}while(++e<4);i.push(a),a=[]}},polygonEnd:u,result:function(){if(!i.length)return null;var e=[],t=[];return i.forEach((function(n){!function(e){if((t=e.length)<4)return!1;var t,n=0,r=e[t-1][1]*e[0][0]-e[t-1][0]*e[0][1];for(;++n<t;)r+=e[n-1][1]*e[n][0]-e[n-1][0]*e[n][1];return r<=0}(n)?t.push(n):e.push([n])})),t.forEach((function(t){var n=t[0];e.some((function(e){if(function(e,t){for(var n=t[0],r=t[1],a=!1,i=0,o=e.length,l=o-1;i<o;l=i++){var s=e[i],c=s[0],u=s[1],d=e[l],h=d[0],f=d[1];u>r^f>r&&n<(h-c)*(r-u)/(f-u)+c&&(a=!a)}return a}(e[0],n))return e.push(t),!0}))||e.push([t])})),i=[],e.length?e.length>1?{type:"MultiPolygon",coordinates:e}:{type:"Polygon",coordinates:e[0]}:null}},c={Point:o,MultiPoint:o,LineString:l,MultiLineString:l,Polygon:s,MultiPolygon:s,Sphere:s};function u(){}var d=1e-6,h=Math.PI,f=h/2,p=(Math.sqrt(h),h/180),g=180/h;function v(e){return e>1?f:e<-1?-f:Math.asin(e)}function m(e){return e>1?0:e<-1?h:Math.acos(e)}var y=e.geo.projection,x=e.geo.projectionMutator;function b(e,t){var n=(2+f)*Math.sin(t);t/=2;for(var r=0,a=1/0;r<10&&Math.abs(a)>d;r++){var i=Math.cos(t);t-=a=(t+Math.sin(t)*(i+2)-n)/(2*i*(1+i))}return[2/Math.sqrt(h*(4+h))*e*(1+Math.cos(t)),2*Math.sqrt(h/(4+h))*Math.sin(t)]}e.geo.interrupt=function(t){var n,r=[[[[-h,0],[0,f],[h,0]]],[[[-h,0],[0,-f],[h,0]]]];function a(e,n){for(var a=n<0?-1:1,i=r[+(n<0)],o=0,l=i.length-1;o<l&&e>i[o][2][0];++o);var s=t(e-i[o][1][0],n);return s[0]+=t(i[o][1][0],a*n>a*i[o][0][1]?i[o][0][1]:n)[0],s}function i(){n=r.map((function(e){return e.map((function(e){var n,r=t(e[0][0],e[0][1])[0],a=t(e[2][0],e[2][1])[0],i=t(e[1][0],e[0][1])[1],o=t(e[1][0],e[1][1])[1];return i>o&&(n=i,i=o,o=n),[[r,i],[a,o]]}))}))}t.invert&&(a.invert=function(e,i){for(var o=n[+(i<0)],l=r[+(i<0)],s=0,u=o.length;s<u;++s){var d=o[s];if(d[0][0]<=e&&e<d[1][0]&&d[0][1]<=i&&i<d[1][1]){var h=t.invert(e-t(l[s][1][0],0)[0],i);return h[0]+=l[s][1][0],c(a(h[0],h[1]),[e,i])?h:null}}});var o=e.geo.projection(a),l=o.stream;function s(e,t){for(var n,r,a,i=-1,o=e.length,l=e[0],s=[];++i<o;){r=((n=e[i])[0]-l[0])/t,a=(n[1]-l[1])/t;for(var c=0;c<t;++c)s.push([l[0]+c*r,l[1]+c*a]);l=n}return s.push(n),s}function c(e,t){return Math.abs(e[0]-t[0])<d&&Math.abs(e[1]-t[1])<d}return o.stream=function(t){var n=o.rotate(),a=l(t),i=(o.rotate([0,0]),l(t));return o.rotate(n),a.sphere=function(){e.geo.stream(function(){for(var t=1e-6,n=[],a=0,i=r[0].length;a<i;++a){var o=180*(f=r[0][a])[0][0]/h,l=180*f[0][1]/h,c=180*f[1][1]/h,u=180*f[2][0]/h,d=180*f[2][1]/h;n.push(s([[o+t,l+t],[o+t,c-t],[u-t,c-t],[u-t,d+t]],30))}for(a=r[1].length-1;a>=0;--a){var f;o=180*(f=r[1][a])[0][0]/h,l=180*f[0][1]/h,c=180*f[1][1]/h,u=180*f[2][0]/h,d=180*f[2][1]/h;n.push(s([[u-t,d-t],[u-t,c+t],[o+t,c+t],[o+t,l-t]],30))}return{type:"Polygon",coordinates:[e.merge(n)]}}(),i)},a},o.lobes=function(e){return arguments.length?(r=e.map((function(e){return e.map((function(e){return[[e[0][0]*h/180,e[0][1]*h/180],[e[1][0]*h/180,e[1][1]*h/180],[e[2][0]*h/180,e[2][1]*h/180]]}))})),i(),o):r.map((function(e){return e.map((function(e){return[[180*e[0][0]/h,180*e[0][1]/h],[180*e[1][0]/h,180*e[1][1]/h],[180*e[2][0]/h,180*e[2][1]/h]]}))}))},o},b.invert=function(e,t){var n=.5*t*Math.sqrt((4+h)/h),r=v(n),a=Math.cos(r);return[e/(2/Math.sqrt(h*(4+h))*(1+a)),v((r+n*(a+2))/(2+f))]},(e.geo.eckert4=function(){return y(b)}).raw=b;var w=e.geo.azimuthalEqualArea.raw;function _(e,t){if(arguments.length<2&&(t=e),1===t)return w;if(t===1/0)return k;function n(n,r){var a=w(n/t,r);return a[0]*=e,a}return n.invert=function(n,r){var a=w.invert(n/e,r);return a[0]*=t,a},n}function k(e,t){return[e*Math.cos(t)/Math.cos(t/=2),2*Math.sin(t)]}function T(e,t){return[3*e/(2*h)*Math.sqrt(h*h/3-t*t),t]}function M(e,t){return[e,1.25*Math.log(Math.tan(h/4+.4*t))]}function A(e){return function(t){var n,r=e*Math.sin(t),a=30;do{t-=n=(t+Math.sin(t)-r)/(1+Math.cos(t))}while(Math.abs(n)>d&&--a>0);return t/2}}k.invert=function(e,t){var n=2*v(t/2);return[e*Math.cos(n/2)/Math.cos(n),n]},(e.geo.hammer=function(){var e=2,t=x(_),n=t(e);return n.coefficient=function(n){return arguments.length?t(e=+n):e},n}).raw=_,T.invert=function(e,t){return[2/3*h*e/Math.sqrt(h*h/3-t*t),t]},(e.geo.kavrayskiy7=function(){return y(T)}).raw=T,M.invert=function(e,t){return[e,2.5*Math.atan(Math.exp(.8*t))-.625*h]},(e.geo.miller=function(){return y(M)}).raw=M,A(h);var S=function(e,t,n){var r=A(n);function a(n,a){return[e*n*Math.cos(a=r(a)),t*Math.sin(a)]}return a.invert=function(r,a){var i=v(a/t);return[r/(e*Math.cos(i)),v((2*i+Math.sin(2*i))/n)]},a}(Math.SQRT2/f,Math.SQRT2,h);function C(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}(e.geo.mollweide=function(){return y(S)}).raw=S,C.invert=function(e,t){var n,r=t,a=25;do{var i=r*r,o=i*i;r-=n=(r*(1.007226+i*(.015085+o*(.028874*i-.044475-.005916*o)))-t)/(1.007226+i*(.045255+o*(.259866*i-.311325-.005916*11*o)))}while(Math.abs(n)>d&&--a>0);return[e/(.8707+(i=r*r)*(i*(i*i*i*(.003971-.001529*i)-.013791)-.131979)),r]},(e.geo.naturalEarth=function(){return y(C)}).raw=C;var L=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function I(e,t){var n,r=Math.min(18,36*Math.abs(t)/h),a=Math.floor(r),i=r-a,o=(n=L[a])[0],l=n[1],s=(n=L[++a])[0],c=n[1],u=(n=L[Math.min(19,++a)])[0],d=n[1];return[e*(s+i*(u-o)/2+i*i*(u-2*s+o)/2),(t>0?f:-f)*(c+i*(d-l)/2+i*i*(d-2*c+l)/2)]}function E(e,t){return[e*Math.cos(t),t]}function O(e,t){var n,r=Math.cos(t),a=(n=m(r*Math.cos(e/=2)))?n/Math.sin(n):1;return[2*r*Math.sin(e)*a,Math.sin(t)*a]}function D(e,t){var n=O(e,t);return[(n[0]+e/f)/2,(n[1]+t)/2]}L.forEach((function(e){e[1]*=1.0144})),I.invert=function(e,t){var n=t/f,r=90*n,a=Math.min(18,Math.abs(r/5)),i=Math.max(0,Math.floor(a));do{var o=L[i][1],l=L[i+1][1],s=L[Math.min(19,i+2)][1],c=s-o,u=s-2*l+o,d=2*(Math.abs(n)-l)/c,h=u/c,v=d*(1-h*d*(1-2*h*d));if(v>=0||1===i){r=(t>=0?5:-5)*(v+a);var m,y=50;do{v=(a=Math.min(18,Math.abs(r)/5))-(i=Math.floor(a)),o=L[i][1],l=L[i+1][1],s=L[Math.min(19,i+2)][1],r-=(m=(t>=0?f:-f)*(l+v*(s-o)/2+v*v*(s-2*l+o)/2)-t)*g}while(Math.abs(m)>1e-12&&--y>0);break}}while(--i>=0);var x=L[i][0],b=L[i+1][0],w=L[Math.min(19,i+2)][0];return[e/(b+v*(w-x)/2+v*v*(w-2*b+x)/2),r*p]},(e.geo.robinson=function(){return y(I)}).raw=I,E.invert=function(e,t){return[e/Math.cos(t),t]},(e.geo.sinusoidal=function(){return y(E)}).raw=E,O.invert=function(e,t){if(!(e*e+4*t*t>h*h+d)){var n=e,r=t,a=25;do{var i,o=Math.sin(n),l=Math.sin(n/2),s=Math.cos(n/2),c=Math.sin(r),u=Math.cos(r),f=Math.sin(2*r),p=c*c,g=u*u,v=l*l,y=1-g*s*s,x=y?m(u*s)*Math.sqrt(i=1/y):i=0,b=2*x*u*l-e,w=x*c-t,_=i*(g*v+x*u*s*p),k=i*(.5*o*f-2*x*c*l),T=.25*i*(f*l-x*c*g*o),M=i*(p*s+x*v*u),A=k*T-M*_;if(!A)break;var S=(w*k-b*M)/A,C=(b*T-w*_)/A;n-=S,r-=C}while((Math.abs(S)>d||Math.abs(C)>d)&&--a>0);return[n,r]}},(e.geo.aitoff=function(){return y(O)}).raw=O,D.invert=function(e,t){var n=e,r=t,a=25;do{var i,o=Math.cos(r),l=Math.sin(r),s=Math.sin(2*r),c=l*l,u=o*o,h=Math.sin(n),p=Math.cos(n/2),g=Math.sin(n/2),v=g*g,y=1-u*p*p,x=y?m(o*p)*Math.sqrt(i=1/y):i=0,b=.5*(2*x*o*g+n/f)-e,w=.5*(x*l+r)-t,_=.5*i*(u*v+x*o*p*c)+.5/f,k=i*(h*s/4-x*l*g),T=.125*i*(s*g-x*l*u*h),M=.5*i*(c*p+x*v*o)+.5,A=k*T-M*_,S=(w*k-b*M)/A,C=(b*T-w*_)/A;n-=S,r-=C}while((Math.abs(S)>d||Math.abs(C)>d)&&--a>0);return[n,r]},(e.geo.winkel3=function(){return y(D)}).raw=D}},SFLx:function(e,t,n){"use strict";var r=n("Zss7"),a={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},i=a.RdBu;function o(e){var t=0;if(!Array.isArray(e)||e.length<2)return!1;if(!e[0]||!e[e.length-1])return!1;if(0!=+e[0][0]||1!=+e[e.length-1][0])return!1;for(var n=0;n<e.length;n++){var a=e[n];if(2!==a.length||+a[0]<t||!r(a[1]).isValid())return!1;t=+a[0]}return!0}e.exports={scales:a,defaultScale:i,get:function(e,t){if(t||(t=i),!e)return t;function n(){try{e=a[e]||JSON.parse(e)}catch(n){e=t}}return"string"==typeof e&&(n(),"string"==typeof e&&n()),o(e)?e:t},isValid:function(e){return void 0!==a[e]||o(e)}}},SLue:function(e,t,n){"use strict";e.exports={attributes:n("kZ5o"),supplyDefaults:n("qc20").supplyDefaults,supplyLayoutDefaults:n("VrRz"),layoutAttributes:n("eNjM"),calc:n("hriN").calc,crossTraceCalc:n("hriN").crossTraceCalc,plot:n("wK8V").plot,style:n("culP"),styleOne:n("pwgW"),moduleType:"trace",name:"pie",basePlotModule:n("a18v"),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(" ")}}},SbTw:function(e,t,n){"use strict";e.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},SqgR:function(e,t,n){"use strict";var r=n("/CZE"),a=n("Po4l");e.exports=function(e,t){function n(n,i){return r.coerce(e,t,a,n,i)}n("treemapcolorway",t.colorway),n("extendtreemapcolors")}},Sxd8:function(e,t,n){var r=n("ZCgT");e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},TGam:function(e,t,n){"use strict";var r=n("PBw4"),a=n("A3kh"),i=n("IvnK"),o=n("Y9zF").LINE_SPACING,l=i.name;function s(e){var t=e&&e[l];return t&&t.visible}t.isVisible=s,t.makeData=function(e){var t=r.list({_fullLayout:e},"x",!0),n=e.margin,a=[];if(!e._has("gl2d"))for(var i=0;i<t.length;i++){var o=t[i];if(s(o)){a.push(o);var c=o[l];c._id=l+o._id,c._height=(e.height-n.b-n.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}e._rangeSliderData=a},t.autoMarginOpts=function(e,t){var n=e._fullLayout,r=t[l],s=t._id.charAt(0),c=0,u=0;"bottom"===t.side&&(c=t._depth,t.title.text!==n._dfltTitle[s]&&(u=1.5*t.title.font.size+10+r._offsetShift,u+=(t.title.text.match(a.BR_TAG_ALL)||[]).length*t.title.font.size*o));return{x:0,y:t._counterDomainMin,l:0,r:0,t:0,b:r._height+c+Math.max(n.margin.b,u),pad:i.extraPad+2*r._offsetShift}}},TNIG:function(e,t,n){"use strict";var r=n("PBw4").list,a=n("zlYT").getAutoRange,i=n("IvnK");e.exports=function(e){for(var t=r(e,"x",!0),n=0;n<t.length;n++){var o=t[n],l=o[i.name];l&&l.visible&&l.autorange&&(l._input.autorange=!0,l._input.range=l.range=a(e,o))}}},Tr0U:function(e,t,n){"use strict";var r=n("/CZE"),a=n("fiWp").EventEmitter,i=n("QkhT");e.exports=function(e){var t=e.emitter||new a,n=new Promise((function(a,o){var l=window.Image,s=e.svg,c=e.format||"png";if(r.isIE()&&"svg"!==c){var u=new Error(i.MSG_IE_BAD_FORMAT);return o(u),e.promise?n:t.emit("error",u)}var d,h,f=e.canvas,p=e.scale||1,g=e.width||300,v=e.height||150,m=p*g,y=p*v,x=f.getContext("2d"),b=new l;"svg"===c||r.isIE9orBelow()||r.isSafari()?h=i.encodeSVG(s):(d=i.createBlob(s,"svg"),h=i.createObjectURL(d)),f.width=m,f.height=y,b.onload=function(){var n;switch(d=null,i.revokeObjectURL(h),"svg"!==c&&x.drawImage(b,0,0,m,y),c){case"jpeg":n=f.toDataURL("image/jpeg");break;case"png":n=f.toDataURL("image/png");break;case"webp":n=f.toDataURL("image/webp");break;case"svg":n=h;break;default:var r="Image format is not jpeg, png, svg or webp.";if(o(new Error(r)),!e.promise)return t.emit("error",r)}a(n),e.promise||t.emit("success",n)},b.onerror=function(n){if(d=null,i.revokeObjectURL(h),o(n),!e.promise)return t.emit("error",n)},b.src=h}));return e.promise?n:t}},Tv4R:function(e,t,n){"use strict";var r=n("i5jP"),a=n("LI1c"),i=n("FHfC"),o=n("/CZE").removeElement,l=n("0wH6"),s=e.exports={};s.align=n("KW7m"),s.getCursor=n("E6Qf");var c=n("hVte");function u(){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 d(e){return r(e.changedTouches?e.changedTouches[0]:e,document.body)}s.unhover=c.wrapped,s.unhoverRaw=c.raw,s.init=function(e){var t,n,r,c,h,f,p,g,v=e.gd,m=1,y=v._context.doubleClickDelay,x=e.element;v._mouseDownTime||(v._mouseDownTime=0),x.style.pointerEvents="all",x.onmousedown=w,i?(x._ontouchstart&&x.removeEventListener("touchstart",x._ontouchstart),x._ontouchstart=w,x.addEventListener("touchstart",w,{passive:!1})):x.ontouchstart=w;var b=e.clampFn||function(e,t,n){return Math.abs(e)<n&&(e=0),Math.abs(t)<n&&(t=0),[e,t]};function w(i){v._dragged=!1,v._dragging=!0;var o=d(i);t=o[0],n=o[1],p=i.target,f=i,g=2===i.buttons||i.ctrlKey,void 0===i.clientX&&void 0===i.clientY&&(i.clientX=t,i.clientY=n),(r=(new Date).getTime())-v._mouseDownTime<y?m+=1:(m=1,v._mouseDownTime=r),e.prepFn&&e.prepFn(i,t,n),a&&!g?(h=u()).style.cursor=window.getComputedStyle(x).cursor:a||(h=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(x).cursor),document.addEventListener("mouseup",k),document.addEventListener("touchend",k),!1!==e.dragmode&&(i.preventDefault(),document.addEventListener("mousemove",_),document.addEventListener("touchmove",_,{passive:!1}))}function _(r){r.preventDefault();var a=d(r),i=e.minDrag||l.MINDRAG,o=b(a[0]-t,a[1]-n,i),c=o[0],u=o[1];(c||u)&&(v._dragged=!0,s.unhover(v)),v._dragged&&e.moveFn&&!g&&(v._dragdata={element:x,dx:c,dy:u},e.moveFn(c,u))}function k(t){if(delete v._dragdata,!1!==e.dragmode&&(t.preventDefault(),document.removeEventListener("mousemove",_),document.removeEventListener("touchmove",_)),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",k),a?o(h):c&&(h.documentElement.style.cursor=c,c=null),v._dragging){if(v._dragging=!1,(new Date).getTime()-v._mouseDownTime>y&&(m=Math.max(m-1,1)),v._dragged)e.doneFn&&e.doneFn();else if(e.clickFn&&e.clickFn(m,f),!g){var n;try{n=new MouseEvent("click",t)}catch(e){var r=d(t);(n=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,r[0],r[1],t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}p.dispatchEvent(n)}v._dragging=!1,v._dragged=!1}else v._dragged=!1}},s.coverSlip=u},U4zm:function(e,t,n){"use strict";var r=n("bljh"),a=n("/CZE"),i=n("CRlY"),o=n("xAC+").getTopojsonFeatures,l=n("zlYT").findExtremes,s=n("56vX").style;e.exports={calcGeoJSON:function(e,t){for(var n=e[0].trace,r=t[n.geo],a=r._subplot,s=n.locationmode,c=n._length,u="geojson-id"===s?i.extractTraceFeature(e):o(n,a.topojson),d=[],h=[],f=0;f<c;f++){var p=e[f],g="geojson-id"===s?p.fOut:i.locationToFeature(s,p.loc,u);if(g){p.geojson=g,p.ct=g.properties.ct,p._polygons=i.feature2polygons(g);var v=i.computeBbox(g);d.push(v[0],v[2]),h.push(v[1],v[3])}else p.geojson=null}if("geojson"===r.fitbounds&&"geojson-id"===s){var m=i.computeBbox(i.getTraceGeojson(n));d=[m[0],m[2]],h=[m[1],m[3]]}var y={padded:!0};n._extremes.lon=l(r.lonaxis._ax,d,y),n._extremes.lat=l(r.lataxis._ax,h,y)},plot:function(e,t,n){var i=t.layers.backplot.select(".choroplethlayer");a.makeTraceGroups(i,n,"trace choropleth").each((function(t){var n=r.select(this).selectAll("path.choroplethlocation").data(a.identity);n.enter().append("path").classed("choroplethlocation",!0),n.exit().remove(),s(e,t)}))}}},UAgb:function(e,t,n){"use strict";var r=n("/CZE"),a=n("15jM"),i=n("5azm");function o(e){var t=["showexponent","showtickprefix","showticksuffix"].filter((function(t){return void 0!==e[t]}));if(t.every((function(n){return e[n]===e[t[0]]}))||1===t.length)return e[t[0]]}function l(e,t){function n(n,i){return r.coerce(e,t,a.tickformatstops,n,i)}n("enabled")&&(n("dtickrange"),n("value"))}e.exports=function(e,t,n,s,c,u){u&&1!==u.pass||function(e,t,n,r,a){var i=o(e);n("tickprefix")&&n("showtickprefix",i);n("ticksuffix",a.tickSuffixDflt)&&n("showticksuffix",i)}(e,0,n,0,c),u&&2!==u.pass||function(e,t,n,s,c){var u=o(e);n("tickprefix")&&n("showtickprefix",u);n("ticksuffix",c.tickSuffixDflt)&&n("showticksuffix",u);if(n("showticklabels")){var d=c.font||{},h=t.color,f=h&&h!==a.color.dflt?h:d.color;if(r.coerceFont(n,"tickfont",{family:d.family,size:d.size,color:f}),n("tickangle"),"category"!==s){var p=n("tickformat");i(e,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:l}),t.tickformatstops.length||delete t.tickformatstops,p||"date"===s||(n("showexponent",u),n("exponentformat"),n("separatethousands"))}}}(e,t,n,s,c)}},UEdZ:function(e,t,n){"use strict";var r=n("0RW4"),a=n("IVx0").hasColorscale,i=n("QYPY"),o=n("3oHU");e.exports=function(e,t,n,l,s,c){var u=o.isBubble(e),d=(e.line||{}).color;(c=c||{},d&&(n=d),s("marker.symbol"),s("marker.opacity",u?.7:1),s("marker.size"),s("marker.color",n),a(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",d&&!Array.isArray(d)&&t.marker.color!==d?d:u?r.background:r.defaultLine),a(e,"marker.line")&&i(e,t,l,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",u?1:0)),u&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),c.gradient)&&("none"!==s("marker.gradient.type")&&s("marker.gradient.color"))}},UtjE:function(e,t,n){"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)}},UuhF:function(e,t,n){"use strict";var r=n("bljh"),a=n("g9E0"),i=n("Nx4I");function o(e,t,n){a.pointStyle(e.selectAll("path.point"),t,n)}function l(e,t,n){a.textPointStyle(e.selectAll("text"),t,n)}e.exports={style:function(e){var t=r.select(e).selectAll("g.trace.scatter");t.style("opacity",(function(e){return e[0].trace.opacity})),t.selectAll("g.points").each((function(t){o(r.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.text").each((function(t){l(r.select(this),t.trace||t[0].trace,e)})),t.selectAll("g.trace path.js-line").call(a.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(a.fillGroupStyle),i.getComponentMethod("errorbars","style")(t)},stylePoints:o,styleText:l,styleOnSelect:function(e,t,n){var r=t[0].trace;r.selectedpoints?(a.selectedPointStyle(n.selectAll("path.point"),r),a.selectedTextStyle(n.selectAll("text"),r)):(o(n,r,e),l(n,r,e))}}},V9qq:function(e,t,n){"use strict";var r=n("bljh"),a=n("+1bK"),i=n("/CZE"),o=n("Gl7E").TEXTPAD,l=n("x5FY").toMoveInsideBar,s=n("k6aH"),c=s.recordMinTextSize,u=s.clearMinTextSize,d=n("LfN2").resizeText,h=n("I8wg"),f=n("v7ZX"),p=n("IjzS");function g(e){return a.isHierarchyRoot(e)?"":a.getPtId(e)}function v(e,t,n,s){var u=e._fullLayout,d=t[0],v=d.trace,m=d.hierarchy,y=a.findEntryWithLevel(m,v.level),x=r.select(n),b=x.selectAll("g.pathbar"),w=x.selectAll("g.slice");if(!y)return b.remove(),void w.remove();var _=a.isHierarchyRoot(y),k=!u.uniformtext.mode&&a.hasTransition(s),T=a.getMaxDepth(v),M=u._size,A=v.domain,S=M.w*(A.x[1]-A.x[0]),C=M.h*(A.y[1]-A.y[0]),L=S,I=v.pathbar.thickness,E=v.marker.line.width+h.gapWithPathbar,O=v.pathbar.visible?v.pathbar.side.indexOf("bottom")>-1?C+E:-(I+E):0,D={x0:L,x1:L,y0:O,y1:O+I},P=function(e,t,n){var r=v.tiling.pad,a=function(e){return e-r<=t.x0},i=function(e){return e+r>=t.x1},o=function(e){return e-r<=t.y0},l=function(e){return e+r>=t.y1};return{x0:a(e.x0-r)?0:i(e.x0-r)?n[0]:e.x0,x1:a(e.x1+r)?0:i(e.x1+r)?n[0]:e.x1,y0:o(e.y0-r)?0:l(e.y0-r)?n[1]:e.y0,y1:o(e.y1+r)?0:l(e.y1+r)?n[1]:e.y1}},z=null,N={},j={},R=null,F=function(e,t){return t?N[g(e)]:j[g(e)]},B=function(e,t,n,r){if(t)return N[g(m)]||D;var a=j[v.level]||n;return function(e){return e.data.depth-y.data.depth<T}(e)?P(e,a,r):{}};d.hasMultipleRoots&&_&&T++,v._maxDepth=T,v._backgroundColor=u.paper_bgcolor,v._entryDepth=y.data.depth,v._atRootLevel=_;var H=-S/2+M.l+M.w*(A.x[1]+A.x[0])/2,V=-C/2+M.t+M.h*(1-(A.y[1]+A.y[0])/2),G=function(e){return H+e},U=function(e){return V+e},q=U(0),Z=G(0),W=function(e){return Z+e},Y=function(e){return q+e};function X(e,t){return e+","+t}var $=W(0),J=function(e){e.x=Math.max($,e.x)},K=v.pathbar.edgeshape,Q=function(e,t){var n=e.x0,r=e.x1,a=e.y0,i=e.y1,s=e.textBB,d=function(e){return-1!==v.textposition.indexOf(e)},h=d("bottom"),f=d("top")||t.isHeader&&!h?"start":h?"end":"middle",p=d("right"),g=d("left")||t.onPathbar?-1:p?1:0,m=v.marker.pad;if(t.isHeader){if((n+=m.l-o)>=(r-=m.r-o)){var y=(n+r)/2;n=y,r=y}var x;h?a<(x=i-m.b)&&x<i&&(a=x):a<(x=a+m.t)&&x<i&&(i=x)}var b=l(n,r,a,i,s,{isHorizontal:!1,constrained:!0,angle:0,anchor:f,leftToRight:g});return b.fontSize=t.fontSize,b.targetX=G(b.targetX),b.targetY=U(b.targetY),isNaN(b.targetX)||isNaN(b.targetY)?{}:(n!==r&&a!==i&&c(v.type,b,u),{scale:b.scale,rotate:b.rotate,textX:b.textX,textY:b.textY,anchorX:b.anchorX,anchorY:b.anchorY,targetX:b.targetX,targetY:b.targetY})},ee=function(e,t){for(var n,r=0,a=e;!n&&r<T;)r++,(a=a.parent)?n=F(a,t):r=T;return n||{}},te=function(e,t,n,a){var o,l=F(e,t);if(l)o=l;else if(t)o=D;else if(z)if(e.parent){var s=R||n;s&&!t?o=P(e,s,a):(o={},i.extendFlat(o,ee(e,t)))}else o=e;else o={};return r.interpolate(o,{x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1})},ne=function(e,t,n,o){var l=F(e,t),s={},d=B(e,t,n,o);i.extendFlat(s,{transform:Q({x0:d.x0,x1:d.x1,y0:d.y0,y1:d.y1,textBB:e.textBB,_text:e._text},{isHeader:a.isHeader(e,v)})}),l?s=l:e.parent&&i.extendFlat(s,ee(e,t));var h=e.transform;return e.x0!==e.x1&&e.y0!==e.y1&&c(v.type,h,u),r.interpolate(s,{transform:{scale:h.scale,rotate:h.rotate,textX:h.textX,textY:h.textY,anchorX:h.anchorX,anchorY:h.anchorY,targetX:h.targetX,targetY:h.targetY}})},re=function(e,t,n,a,i){var o=a[0],l=a[1];k?e.exit().transition().each((function(){var e=r.select(this);e.select("path.surface").transition().attrTween("d",(function(e){var n=function(e,t,n,a){var i,o=F(e,t);if(t)i=D;else{var l=F(y,t);i=l?P(e,l,a):{}}return r.interpolate(o,i)}(e,t,0,[o,l]);return function(e){return i(n(e))}})),e.select("g.slicetext").attr("opacity",0)})).remove():e.exit().remove()},ae=function(e){var t=e.transform;return e.x0!==e.x1&&e.y0!==e.y1&&c(v.type,t,u),i.getTextTransform({textX:t.textX,textY:t.textY,anchorX:t.anchorX,anchorY:t.anchorY,targetX:t.targetX,targetY:t.targetY,scale:t.scale,rotate:t.rotate})};k&&(b.each((function(e){N[g(e)]={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1},e.transform&&(N[g(e)].transform={textX:e.transform.textX,textY:e.transform.textY,anchorX:e.transform.anchorX,anchorY:e.transform.anchorY,targetX:e.transform.targetX,targetY:e.transform.targetY,scale:e.transform.scale,rotate:e.transform.rotate})})),w.each((function(e){j[g(e)]={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1},e.transform&&(j[g(e)].transform={textX:e.transform.textX,textY:e.transform.textY,anchorX:e.transform.anchorX,anchorY:e.transform.anchorY,targetX:e.transform.targetX,targetY:e.transform.targetY,scale:e.transform.scale,rotate:e.transform.rotate}),!z&&a.isEntry(e)&&(z=e)}))),R=f(e,t,y,w,{width:S,height:C,viewX:G,viewY:U,pathSlice:function(e){var t=G(e.x0),n=G(e.x1),r=U(e.y0),a=U(e.y1),i=n-t,o=a-r;if(!i||!o)return"";return"M"+X(t,r+0)+"L"+X(n-0,r)+"L"+X(n,a-0)+"L"+X(t+0,a)+"Z"},toMoveInsideSlice:Q,prevEntry:z,makeUpdateSliceInterpolator:te,makeUpdateTextInterpolator:ne,handleSlicesExit:re,hasTransition:k,strTransform:ae}),v.pathbar.visible?p(e,t,y,b,{barDifY:O,width:L,height:I,viewX:W,viewY:Y,pathSlice:function(e){var t=W(Math.max(Math.min(e.x0,e.x0),0)),n=W(Math.min(Math.max(e.x1,e.x1),L)),r=Y(e.y0),a=Y(e.y1),i=I/2,o={},l={};o.x=t,l.x=n,o.y=l.y=(r+a)/2;var s={x:t,y:r},c={x:n,y:r},u={x:n,y:a},d={x:t,y:a};return">"===K?(s.x-=i,c.x-=i,u.x-=i,d.x-=i):"/"===K?(u.x-=i,d.x-=i,o.x-=i/2,l.x-=i/2):"\\"===K?(s.x-=i,c.x-=i,o.x-=i/2,l.x-=i/2):"<"===K&&(o.x-=i,l.x-=i),J(s),J(d),J(o),J(c),J(u),J(l),"M"+X(s.x,s.y)+"L"+X(c.x,c.y)+"L"+X(l.x,l.y)+"L"+X(u.x,u.y)+"L"+X(d.x,d.y)+"L"+X(o.x,o.y)+"Z"},toMoveInsideSlice:Q,makeUpdateSliceInterpolator:te,makeUpdateTextInterpolator:ne,handleSlicesExit:re,hasTransition:k,strTransform:ae}):b.remove()}e.exports=function(e,t,n,i){var o,l,s=e._fullLayout,c=s._treemaplayer,h=!n;(u("treemap",s),(o=c.selectAll("g.trace.treemap").data(t,(function(e){return e[0].trace.uid}))).enter().append("g").classed("trace",!0).classed("treemap",!0),o.order(),!s.uniformtext.mode&&a.hasTransition(n))?(i&&(l=i()),r.transition().duration(n.duration).ease(n.easing).each("end",(function(){l&&l()})).each("interrupt",(function(){l&&l()})).each((function(){c.selectAll("g.trace").each((function(t){v(e,t,this,n)}))}))):(o.each((function(t){v(e,t,this,n)})),s.uniformtext.mode&&d(e,s._treemaplayer.selectAll(".trace"),"treemap"));h&&o.exit().remove()}},VCwm:function(e,t,n){},VNna:function(e,t,n){"use strict";var r=n("/CZE"),a=n("kn30");e.exports=function(e,t,n){function i(n,i){return void 0!==t[n]?t[n]:r.coerce(e,t,a,n,i)}var o,l=i("clickmode");return t._has("cartesian")?l.indexOf("select")>-1?o="closest":(t._isHoriz=function(e,t){for(var n=t._scatterStackOpts||{},r=0;r<e.length;r++){var a=e[r],i=a.xaxis+a.yaxis,o=(n[i]||{})[a.stackgroup]||{};if("h"!==a.orientation&&"h"!==o.orientation)return!1}return!0}(n,t),o=t._isHoriz?"y":"x"):o="closest",i("hovermode",o)}},VQYE:function(e,t,n){"use strict";(e.exports=n("OpmZ")).manager=n("I4E5")},VTo0:function(e,t,n){"use strict";var r=n("bljh"),a=n("GbLo"),i=n("g9E0"),o=n("3oHU");e.exports=function(e,t,n,l){var s=n.xaxis,c=n.yaxis,u=l&&l.duration>0;t.each((function(t){var d,h=t[0].trace,f=h.error_x||{},p=h.error_y||{};h.ids&&(d=function(e){return e.id});var g=o.hasMarkers(h)&&h.marker.maxdisplayed>0;p.visible||f.visible||(t=[]);var v=r.select(this).selectAll("g.errorbar").data(t,d);if(v.exit().remove(),t.length){f.visible||v.selectAll("path.xerror").remove(),p.visible||v.selectAll("path.yerror").remove(),v.style("opacity",1);var m=v.enter().append("g").classed("errorbar",!0);u&&m.style("opacity",0).transition().duration(l.duration).style("opacity",1),i.setClipUrl(v,n.layerClipId,e),v.each((function(e){var t=r.select(this),n=function(e,t,n){var r={x:t.c2p(e.x),y:n.c2p(e.y)};void 0!==e.yh&&(r.yh=n.c2p(e.yh),r.ys=n.c2p(e.ys),a(r.ys)||(r.noYS=!0,r.ys=n.c2p(e.ys,!0)));void 0!==e.xh&&(r.xh=t.c2p(e.xh),r.xs=t.c2p(e.xs),a(r.xs)||(r.noXS=!0,r.xs=t.c2p(e.xs,!0)));return r}(e,s,c);if(!g||e.vis){var i,o=t.select("path.yerror");if(p.visible&&a(n.x)&&a(n.yh)&&a(n.ys)){var d=p.width;i="M"+(n.x-d)+","+n.yh+"h"+2*d+"m-"+d+",0V"+n.ys,n.noYS||(i+="m-"+d+",0h"+2*d),!o.size()?o=t.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0):u&&(o=o.transition().duration(l.duration).ease(l.easing)),o.attr("d",i)}else o.remove();var h=t.select("path.xerror");if(f.visible&&a(n.y)&&a(n.xh)&&a(n.xs)){var v=(f.copy_ystyle?p:f).width;i="M"+n.xh+","+(n.y-v)+"v"+2*v+"m0,-"+v+"H"+n.xs,n.noXS||(i+="m0,-"+v+"v"+2*v),!h.size()?h=t.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0):u&&(h=h.transition().duration(l.duration).ease(l.easing)),h.attr("d",i)}else h.remove()}}))}}))}},VWeM:function(e,t,n){"use strict";e.exports=function(e){for(var t={},n=[],r=0,a=0;a<e.length;a++){var i=e[a];1!==t[i]&&(t[i]=1,n[r++]=i)}return n}},VeuS:function(e,t,n){"use strict";e.exports={eventDataKeys:["initial","delta","final"]}},Vn7P:function(e,t,n){"use strict";var r=n("/CZE"),a=n("BkK/"),i=n("5azm"),o=n("pcxQ"),l=n("/cea");function s(e,t,n){function i(n,a){return r.coerce(e,t,o,n,a)}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 u=i("xsizemode"),d=i("ysizemode"),h=["x","y"],f=0;f<2;f++){var p,g,v,m=h[f],y=m+"anchor",x="x"===m?u:d,b={_fullLayout:n},w=a.coerceRef(e,t,b,m,"","paper");if("paper"!==w?((p=a.getFromId(b,w))._shapeIndices.push(t._index),v=l.rangeToShapePosition(p),g=l.shapePositionToRange(p)):g=v=r.identity,"path"!==c){var _=m+"0",k=m+"1",T=e[_],M=e[k];e[_]=g(e[_],!0),e[k]=g(e[k],!0),"pixel"===x?(i(_,0),i(k,10)):(a.coercePosition(t,b,i,w,_,.25),a.coercePosition(t,b,i,w,k,.75)),t[_]=v(t[_]),t[k]=v(t[k]),e[_]=T,e[k]=M}if("pixel"===x){var A=e[y];e[y]=g(e[y],!0),a.coercePosition(t,b,i,w,y,.25),t[y]=v(t[y]),e[y]=A}}"path"===c?i("path"):r.noneOrAll(e,t,["x0","x1","y0","y1"])}}e.exports=function(e,t){i(e,t,{name:"shapes",handleItemDefaults:s})}},VrRz:function(e,t,n){"use strict";var r=n("/CZE"),a=n("eNjM");e.exports=function(e,t){function n(n,i){return r.coerce(e,t,a,n,i)}n("hiddenlabels"),n("piecolorway",t.colorway),n("extendpiecolors")}},VvME:function(e,t,n){"use strict";var r=n("lNV6").hovertemplateAttrs,a=n("lNV6").texttemplateAttrs,i=n("EHyX"),o=n("qHYo"),l=n("9Okp"),s=n("21T9").dash,c=n("kJIm").extendFlat,u=n("yzSc").overrideAll,d=i.marker,h=i.line,f=d.line;e.exports=u({lon:{valType:"data_array",description:"Sets the longitude coordinates (in degrees East)."},lat:{valType:"data_array",description:"Sets the latitude coordinates (in degrees North)."},locations:{valType:"data_array",description:["Sets the coordinates via location IDs or names.","Coordinates correspond to the centroid of each location given.","See `locationmode` for more info."].join(" ")},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],role:"info",dflt:"ISO-3",description:["Determines the set of locations used to match entries in `locations`","to regions on the map.","Values *ISO-3*, *USA-states*, *country names* correspond to features on","the base map and value *geojson-id* corresponds to features from a custom","GeoJSON linked to the `geojson` attribute."].join(" ")},geojson:{valType:"any",role:"info",editType:"calc",description:["Sets optional GeoJSON data associated with this trace.","If not given, the features on the base map are used when `locations` is set.","It can be set as a valid GeoJSON object or as a URL string.","Note that we only accept GeoJSONs of type *FeatureCollection* or *Feature*","with geometries of type *Polygon* or *MultiPolygon*."].join(" ")},featureidkey:{valType:"string",role:"info",editType:"calc",dflt:"id",description:["Sets the key in GeoJSON features which is used as id to match the items","included in the `locations` array.","Only has an effect when `geojson` is set.","Support nested property, for example *properties.name*."].join(" ")},mode:c({},i.mode,{dflt:"markers"}),text:c({},i.text,{description:["Sets text elements associated with each (lon,lat) pair","or item in `locations`.","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 (lon,lat) or `locations` coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")}),texttemplate:a({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:c({},i.hovertext,{description:["Sets hover text elements associated with each (lon,lat) pair","or item in `locations`.","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 (lon,lat) or `locations` coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")}),textfont:i.textfont,textposition:i.textposition,line:{color:h.color,width:h.width,dash:s},connectgaps:i.connectgaps,marker:c({symbol:d.symbol,opacity:d.opacity,size:d.size,sizeref:d.sizeref,sizemin:d.sizemin,sizemode:d.sizemode,colorbar:d.colorbar,line:c({width:f.width},l("marker.line")),gradient:d.gradient},l("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none",role:"style",description:["Sets the area to fill with a solid color.","Use with `fillcolor` if not *none*.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape."].join(" ")},fillcolor:i.fillcolor,selected:i.selected,unselected:i.unselected,hoverinfo:c({},o.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:r()},"calc","nested")},"W+yT":function(e,t,n){"use strict";e.exports=function(e,t){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,"initial"in t&&(e.initial=t.initial),"delta"in t&&(e.delta=t.delta),"final"in t&&(e.final=t.final),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e}},W0H3:function(e,t,n){"use strict";t.version="1.54.5"},W2jp:function(e,t,n){"use strict";e.exports={mode:{valType:"enumerated",dflt:"afterall",role:"info",values:["immediate","next","afterall"],description:["Describes how a new animate call interacts with currently-running","animations. If `immediate`, current animations are interrupted and","the new animation is started. If `next`, the current frame is allowed","to complete, after which the new animation is started. If `afterall`","all existing frames are animated to completion before the new animation","is started."].join(" ")},direction:{valType:"enumerated",role:"info",values:["forward","reverse"],dflt:"forward",description:["The direction in which to play the frames triggered by the animation call"].join(" ")},fromcurrent:{valType:"boolean",dflt:!1,role:"info",description:["Play frames starting at the current frame instead of the beginning."].join(" ")},frame:{duration:{valType:"number",role:"info",min:0,dflt:500,description:["The duration in milliseconds of each frame. If greater than the frame","duration, it will be limited to the frame duration."].join(" ")},redraw:{valType:"boolean",role:"info",dflt:!0,description:["Redraw the plot at completion of the transition. This is desirable","for transitions that include properties that cannot be transitioned,","but may significantly slow down updates that do not require a full","redraw of the plot"].join(" ")}},transition:{duration:{valType:"number",role:"info",min:0,dflt:500,editType:"none",description:["The duration of the transition, in milliseconds. If equal to zero,","updates are synchronous."].join(" ")},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],role:"info",editType:"none",description:"The easing function used for the transition"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",role:"info",editType:"none",description:["Determines whether the figure's layout or traces smoothly transitions","during updates that make both traces and layout change."].join(" ")}}}},WEQY:function(e,t,n){"use strict";e.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",role:"style",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",role:"style",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot",description:["Sets the range of this axis for the rangeslider."].join(" ")},editType:"calc"}},WFqU:function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("yLpj"))},WRPy:function(e,t,n){"use strict";var r=n("6AZA"),a=r.ONEAVGYEAR,i=r.ONEAVGMONTH,o=r.ONEDAY,l=r.ONEHOUR,s=r.ONEMIN,c=r.ONESEC,u=n("BkK/").tickIncrement;function d(e,t,n,r){if(e*t<=0)return 1/0;for(var a=Math.abs(t-e),i="date"===n.type,o=h(a,i),l=0;l<10;l++){var s=h(80*o,i);if(o===s)break;if(!f(s,e,t,i,n,r))break;o=s}return o}function h(e,t){return t&&e>c?e>o?e>1.1*a?a:e>1.1*i?i:o:e>l?l:e>s?s:c:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function f(e,t,n,r,i,l){if(r&&e>o){var s=p(t,i,l),c=p(n,i,l),u=e===a?0:1;return s[u]!==c[u]}return Math.floor(n/e)-Math.floor(t/e)>.1}function p(e,t,n){var r=t.c2d(e,a,n).split("-");return""===r[0]&&(r.unshift(),r[0]="-"+r[0]),r}e.exports=function(e,t,n,r,i){var l,s,c=-1.1*t,h=-.1*t,f=e-h,p=n[0],g=n[1],v=Math.min(d(p+h,p+f,r,i),d(g+h,g+f,r,i)),m=Math.min(d(p+c,p+h,r,i),d(g+c,g+h,r,i));if(v>m&&m<Math.abs(g-p)/4e3?(l=v,s=!1):(l=Math.min(v,m),s=!0),"date"===r.type&&l>o){var y=l===a?1:6,x=l===a?"M12":"M1";return function(t,n){var o=r.c2d(t,a,i),l=o.indexOf("-",y);l>0&&(o=o.substr(0,l));var c=r.d2c(o,0,i);if(c<t){var d=u(c,x,!1,i);(c+d)/2<t+e&&(c=d)}return n&&s?u(c,x,!0,i):c}}return function(t,n){var r=l*Math.round(t/l);return r+l/10<t&&r+.9*l<t+e&&(r+=l),n&&s&&(r-=l),r}}},WSjQ:function(e,t){e.exports=function(e,t){var n=t[0],r=t[1],a=t[2],i=t[3],o=n+n,l=r+r,s=a+a,c=n*o,u=r*o,d=r*l,h=a*o,f=a*l,p=a*s,g=i*o,v=i*l,m=i*s;return e[0]=1-d-p,e[1]=u+m,e[2]=h-v,e[3]=0,e[4]=u-m,e[5]=1-c-p,e[6]=f+g,e[7]=0,e[8]=h+v,e[9]=f-g,e[10]=1-c-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}},Wb4T:function(e,t,n){"use strict";var r=n("/CZE").isArrayOrTypedArray,a=n("IVx0").hasColorscale,i=n("QYPY");e.exports=function(e,t,n,o,l,s){var c=(e.marker||{}).color;(l("line.color",n),a(e,"line"))?i(e,t,o,l,{prefix:"line.",cLetter:"c"}):l("line.color",!r(c)&&c||n);l("line.width"),(s||{}).noDash||l("line.dash")}},WeBh:function(e,t,n){"use strict";var r=n("/CZE");t.formatPiePercent=function(e,t){var n=(100*e).toPrecision(3);return-1!==n.lastIndexOf(".")&&(n=n.replace(/[.]?0+$/,"")),r.numSeparate(n,t)+"%"},t.formatPieValue=function(e,t){var n=e.toPrecision(10);return-1!==n.lastIndexOf(".")&&(n=n.replace(/[.]?0+$/,"")),r.numSeparate(n,t)},t.getFirstFilled=function(e,t){if(Array.isArray(e))for(var n=0;n<t.length;n++){var r=e[t[n]];if(r||0===r||""===r)return r}},t.castOption=function(e,n){return Array.isArray(e)?t.getFirstFilled(e,n):e||void 0}},Wh6P:function(e,t,n){"use strict";var r=n("bljh"),a=n("0RW4"),i=n("qTWP");e.exports=function(e,t,n){var o,l,s,c,u=e.node(),d=i[n.arrowhead||0],h=i[n.startarrowhead||0],f=(n.arrowwidth||1)*(n.arrowsize||1),p=(n.arrowwidth||1)*(n.startarrowsize||1),g=t.indexOf("start")>=0,v=t.indexOf("end")>=0,m=d.backoff*f+n.standoff,y=h.backoff*p+n.startstandoff;if("line"===u.nodeName){o={x:+e.attr("x1"),y:+e.attr("y1")},l={x:+e.attr("x2"),y:+e.attr("y2")};var x=o.x-l.x,b=o.y-l.y;if(c=(s=Math.atan2(b,x))+Math.PI,m&&y&&m+y>Math.sqrt(x*x+b*b))return void E();if(m){if(m*m>x*x+b*b)return void E();var w=m*Math.cos(s),_=m*Math.sin(s);l.x+=w,l.y+=_,e.attr({x2:l.x,y2:l.y})}if(y){if(y*y>x*x+b*b)return void E();var k=y*Math.cos(s),T=y*Math.sin(s);o.x-=k,o.y-=T,e.attr({x1:o.x,y1:o.y})}}else if("path"===u.nodeName){var M=u.getTotalLength(),A="";if(M<m+y)return void E();var S=u.getPointAtLength(0),C=u.getPointAtLength(.1);s=Math.atan2(S.y-C.y,S.x-C.x),o=u.getPointAtLength(Math.min(y,M)),A="0px,"+y+"px,";var L=u.getPointAtLength(M),I=u.getPointAtLength(M-.1);c=Math.atan2(L.y-I.y,L.x-I.x),l=u.getPointAtLength(Math.max(0,M-m)),A+=M-(A?y+m:m)+"px,"+M+"px",e.style("stroke-dasharray",A)}function E(){e.style("stroke-dasharray","0px,100px")}function O(t,i,o,l){t.path&&(t.noRotate&&(o=0),r.select(u.parentNode).append("path").attr({class:e.attr("class"),d:t.path,transform:"translate("+i.x+","+i.y+")"+(o?"rotate("+180*o/Math.PI+")":"")+"scale("+l+")"}).style({fill:a.rgb(n.arrowcolor),"stroke-width":0}))}g&&O(h,o,s,p),v&&O(d,l,c,f)}},Whu6:function(e,t,n){"use strict";e.exports=function(e,t){if(t instanceof RegExp){for(var n=t.toString(),r=0;r<e.length;r++)if(e[r]instanceof RegExp&&e[r].toString()===n)return e;e.push(t)}else!t&&0!==t||-1!==e.indexOf(t)||e.push(t);return e}},WkPL:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},"WtF/":function(e,t,n){"use strict";e.exports={calc:function(e,t){var n=[],r=t.value;"number"!=typeof t._lastValue&&(t._lastValue=t.value);var a=t._lastValue,i=a;return t._hasDelta&&"number"==typeof t.delta.reference&&(i=t.delta.reference),n[0]={y:r,lastY:a,delta:r-i,relativeDelta:(r-i)/i},n}}},"Xe/Q":function(e,t,n){"use strict";var r=n("dNZO"),a=/^\w*$/;e.exports=function(e,t,n,i){var o,l,s;n=n||"name",i=i||"value";var c={};t&&t.length?(s=r(e,t),l=s.get()):l=e,t=t||"";var u={};if(l)for(o=0;o<l.length;o++)u[l[o][n]]=o;var d=a.test(i),h={set:function(e,t){var a=null===t?4:0;if(!l){if(!s||4===a)return;l=[],s.set(l)}var o=u[e];if(void 0===o){if(4===a)return;a|=3,o=l.length,u[e]=o}else t!==(d?l[o][i]:r(l[o],i).get())&&(a|=2);var f=l[o]=l[o]||{};return f[n]=e,d?f[i]=t:r(f,i).set(t),null!==t&&(a&=-5),c[o]=c[o]|a,h},get:function(e){if(l){var t=u[e];return void 0===t?void 0:d?l[t][i]:r(l[t],i).get()}},rename:function(e,t){var r=u[e];return void 0===r||(c[r]=1|c[r],u[t]=r,delete u[e],l[r][n]=t),h},remove:function(e){var t=u[e];if(void 0===t)return h;var a=l[t];if(Object.keys(a).length>2)return c[t]=2|c[t],h.set(e,null);if(d){for(o=t;o<l.length;o++)c[o]=3|c[o];for(o=t;o<l.length;o++)u[l[o][n]]--;l.splice(t,1),delete u[e]}else r(a,i).set(null),c[t]=6|c[t];return h},constructUpdate:function(){for(var e,a,o={},s=Object.keys(c),u=0;u<s.length;u++)a=s[u],e=t+"["+a+"]",l[a]?(1&c[a]&&(o[e+"."+n]=l[a][n]),2&c[a]&&(o[e+"."+i]=d?4&c[a]?null:l[a][i]:4&c[a]?null:r(l[a],i).get())):o[e]=null;return o}};return h}},"Xo+u":function(e,t,n){"use strict";var r=n("3oHU");e.exports={hasLines:r.hasLines,hasMarkers:r.hasMarkers,hasText:r.hasText,isBubble:r.isBubble,attributes:n("EHyX"),supplyDefaults:n("DrdO"),crossTraceDefaults:n("AySM"),calc:n("cLT0").calc,crossTraceCalc:n("QySe"),arraysToCalcdata:n("EGun"),plot:n("8RjX"),colorbar:n("88/Y"),formatLabels:n("fpYS"),style:n("UuhF").style,styleOnSelect:n("UuhF").styleOnSelect,hoverPoints:n("ORvi"),selectPoints:n("IUxZ"),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:n("kc20"),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(" ")}}},Y9zF:function(e,t,n){"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"}}},YXRs:function(e,t,n){"use strict";var r=n("GbLo"),a=n("9rBw");e.exports=function(e,t,n,i){t=t||{};var o="log"===n&&"linear"===t.type,l="linear"===n&&"log"===t.type;if(o||l)for(var s,c,u=e._fullLayout.images,d=t._id.charAt(0),h=0;h<u.length;h++)if(c="images["+h+"].",(s=u[h])[d+"ref"]===t._id){var f=s[d],p=s["size"+d],g=null,v=null;if(o){g=a(f,t.range);var m=p/Math.pow(10,g)/2;v=2*Math.log(m+Math.sqrt(1+m*m))/Math.LN10}else v=(g=Math.pow(10,f))*(Math.pow(10,p/2)-Math.pow(10,-p/2));r(g)?r(v)||(v=null):(g=null,v=null),i(c+d,g),i(c+"size"+d,v)}}},Z8TU:function(e,t,n){"use strict";var r=n("15jM"),a=n("mEVB"),i=n("kJIm").extendFlat,o=n("yzSc").overrideAll;e.exports=o({thicknessmode:{valType:"enumerated",values:["fraction","pixels"],role:"style",dflt:"pixels",description:["Determines whether this color bar's thickness","(i.e. the measure in the constant color direction)","is set in units of plot *fraction* or in *pixels*.","Use `thickness` to set the value."].join(" ")},thickness:{valType:"number",role:"style",min:0,dflt:30,description:["Sets the thickness of the color bar","This measure excludes the size of the padding, ticks and labels."].join(" ")},lenmode:{valType:"enumerated",values:["fraction","pixels"],role:"info",dflt:"fraction",description:["Determines whether this color bar's length","(i.e. the measure in the color variation direction)","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the length of the color bar","This measure excludes the padding of both ends.","That is, the color bar length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",dflt:1.02,min:-2,max:3,role:"style",description:["Sets the x position of the color bar (in plot fraction)."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"style",description:["Sets this color bar's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the color bar."].join(" ")},xpad:{valType:"number",role:"style",min:0,dflt:10,description:"Sets the amount of padding (in px) along the x direction."},y:{valType:"number",role:"style",dflt:.5,min:-2,max:3,description:["Sets the y position of the color bar (in plot fraction)."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],role:"style",dflt:"middle",description:["Sets this color bar's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the color bar."].join(" ")},ypad:{valType:"number",role:"style",min:0,dflt:10,description:"Sets the amount of padding (in px) along the y direction."},outlinecolor:r.linecolor,outlinewidth:r.linewidth,bordercolor:r.linecolor,borderwidth:{valType:"number",role:"style",min:0,dflt:0,description:["Sets the width (in px) or the border enclosing this color bar."].join(" ")},bgcolor:{valType:"color",role:"style",dflt:"rgba(0,0,0,0)",description:"Sets the color of padded area."},tickmode:r.tickmode,nticks:r.nticks,tick0:r.tick0,dtick:r.dtick,tickvals:r.tickvals,ticktext:r.ticktext,ticks:i({},r.ticks,{dflt:""}),ticklen:r.ticklen,tickwidth:r.tickwidth,tickcolor:r.tickcolor,showticklabels:r.showticklabels,tickfont:a({description:"Sets the color bar's tick label font"}),tickangle:r.tickangle,tickformat:r.tickformat,tickformatstops:r.tickformatstops,tickprefix:r.tickprefix,showtickprefix:r.showtickprefix,ticksuffix:r.ticksuffix,showticksuffix:r.showticksuffix,separatethousands:r.separatethousands,exponentformat:r.exponentformat,showexponent:r.showexponent,title:{text:{valType:"string",role:"info",description:["Sets the title of the color bar.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:a({description:["Sets this color bar's title font.","Note that the title's font used to be set","by the now deprecated `titlefont` attribute."].join(" ")}),side:{valType:"enumerated",values:["right","top","bottom"],role:"style",dflt:"top",description:["Determines the location of color bar's title","with respect to the color bar.","Note that the title's location used to be set","by the now deprecated `titleside` attribute."].join(" ")}},_deprecated:{title:{valType:"string",role:"info",description:["Deprecated in favor of color bar's `title.text`.","Note that value of color bar's `title` is no longer a simple","*string* but a set of sub-attributes."].join(" ")},titlefont:a({description:"Deprecated in favor of color bar's `title.font`."}),titleside:{valType:"enumerated",values:["right","top","bottom"],role:"style",dflt:"top",description:"Deprecated in favor of color bar's `title.side`."}}},"colorbars","from-root")},ZCgT:function(e,t,n){var r=n("tLB3");e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},ZDyq:function(e,t,n){"use strict";var r=n("u3HJ");t.name="indicator",t.plot=function(e,n,a,i){r.plotBasePlot(t.name,e,n,a,i)},t.clean=function(e,n,a,i){r.cleanBasePlot(t.name,e,n,a,i)}},ZeYI:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("Ov3g"),a=n.n(r);const i={data:()=>({graphConf:{Geo:{},Column:{name:"column",type:"bar",barmode:"group"},Line:{name:"line",type:"scatter",mode:"lines"},Scatter:{name:"scatter",type:"scatter",mode:"markers"},Pie:{name:"pie",type:"pie",hole:0},Donut:{name:"donut",type:"pie",hole:.4},StackedBar:{name:"stackedbar",type:"bar",barmode:"stack"},Bar:{name:"bar",type:"bar",orientation:"h"},HorizontalStackedBar:{name:"horizontalStackedbar",type:"bar",orientation:"h",barmode:"stack"},Bubble:{name:"bubble",mode:"markers"},StackedArea:{name:"stackedarea",stackgroup:"one"},Gauge:{name:"gauge"}},icon:{width: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",ascent:850,descent:-150},back:{width:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",ascent:850,descent:-150,color:"#000000"},drillLabels:[{text:"All",depth:0,node:{},points:"0,0 33,0 43,8.5 33,17 0,17",x:"16.5",y:"8.5",width:"43"}],graphSettings:{showCurrency:!1,showSearch:!1,showlegends:!0,showpointlabels:!1,reporttitle:"",isComparison:!1,desiredValueTendency:"incr",legendorientation:"v",legendposition:{x:1,y:1,anchor:"left"}},axesprops:{showmultiaxes:!1,showxzeroline:!1,showxgridline:!1,autotick:!1},measureprops:{tracetype:"",showmeasure:!0,selectedMeasureIndex:0,ismeasurepropsapplied:!1,layout:{},color:"",showygridline:!1,showyzeroline:!1}}),computed:{},methods:{getTotals:function(e,t,n){var r=new Array,a=0,i=[],o=[];for(meas in n)o.push(n[meas].AggFunction),i.push(n[meas].Format);r[0]="Grand Total or Average";for(var l=t;l<e[0].length;l++){a=0;for(var s=1;s<e.length;s++)a+=parseFloat(e[s][l]);"Average"==o[l-t]||"avg"==o[l-t]?a/=e.length:"Minimum"==o[l-t]||"Min"==o[l-t]?a=this.getMinMaxValues(l,e,"min"):"Maximum"!=o[l-t]&&"Max"!=o[l-t]||(a=this.getMinMaxValues(l,e,"max")),r[l]=a}return r},getMinMaxValues:function(e,t,n){for(var r=[],a=1;a<t.length;a++)r.push(t[a][e]);var i=Math.max.apply(Math,r),o=Math.min.apply(Math,r);return"min"==n?o:"max"==n?i:void 0},drawPlotlyCharts:function(e,t,n,r,a,i,o,l){if(null==i)i={showCurrency:!1,showSearch:!1,showlegends:!0,showpointlabels:!1,reporttitle:"",isComparison:!1,desiredValueTendency:"incr",legendorientation:"v",legendposition:{x:1,y:1,anchor:"left"}};if(null==l)l={showmultiaxes:!1,showxzeroline:!1,showxgridline:!1,autotick:!1};if(null==o||""==o)o={tracetype:"",showmeasure:!0,selectedMeasureIndex:0,ismeasurepropsapplied:!1,layout:{},color:"",showygridline:!1,showyzeroline:!1};if("DataTable"!=a){var s={RD:{}};s.RD.General={};var c=makeJsonFromArrayNew(t,n,r,"",s);makeParentsJson(c),this.plotCharts(a,e,c,r,this.graphConf[a],i,o,l)}},plotCharts:function(e,t,n,r,a,i,o,l){"HorizontalStackedBar"==e||"Column"==e||"Bar"==e||"Scatter"==e||"StackedBar"==e||"Bubble"==e||"StackedArea"==e?this.drawPlotlyChart(t,n,r,this.graphConf[e],i,o,l):"Waterfall"==e?this.drawPlotlyWaterFallChart(t,n,r,"waterfall",i,o,l):"Line"==e?this.drawPlotlyLineChart(t,n,r,this.graphConf[e],i,o,l):"HVLine"==e?this.drawPlotlyHVLineChart(t,n,r,this.graphConf[e],i,o,l):"Pie"==e||"Donut"==e?this.drawPlotlyPieChart(t,n,this.graphConf[e],r,i,o,l):"Sunburst"==e?this.drawPlotlySunburstChart(t,n,"sunburst",r,i,o,l):"Treemap"==e?this.drawPlotlyTreemap(t,n,"Treemap",r,i,o,l):"Funnel"==e?this.drawPlotlyFunnelChart(t,n,r,"funnel",i,o,l):"StackedFunnel"==e?this.drawPlotlyStackedFunnelChart(t,n,r,"stackedfunnel",i,o,l):"Heatmap"==e?this.drawPlotlyHeatChart(t,n,"heatmap",r,i,o,l):"Radar"==e?this.drawPlotlyRadarChart(t,n,r,"scatterpolar",i,o,l):"Gauge"==e?this.drawPlotlyGaugeChart(t,n,this.graphConf[e],r):"Geo"==e&&this.drawPlotlyGeoChart(t,n,this.graphConf[e],r,i,o,l)},drawPlotlyChart:function(e,t,n,r,i,o,l){var s,c=document.getElementById(e),u=t,d=[],h=0;function f(e){var t=new Array;for(y=0;y<u.children.length;y++)t.push(u.children[y].name);return t}function p(e){var t=new Array;for(s=0;s<u.children.length;s++)t.push(u.children[s].size[e]);return t}function g(e){return u.measName[e]}for(u.parent?u.parent:u;h<n;)d[h]={orientation:r.orientation,x:"h"==r.orientation?p(h):f(),y:"h"==r.orientation?f():p(h),yaxis:1==l.showmultiaxes&&0!=h?"y"+(h+1):"",name:g(h),mode:r.mode,type:null!=o&&null!=o.layout[h]&&1==o.layout[h].ismeasurepropsapplied&&""!=o.layout[h].tracetype?o.layout[h].tracetype:r.type,text:"h"==r.orientation?f().map(String):p(h).map(String),textposition:1==i.showpointlabels?"auto":"none",line:{color:null!=o&&null!=o.layout[h]?o.layout[h].color:""},marker:"bubble"==r.name?{size:this.getMarkerSize(p(h)),opacity:.9,color:this.getRandomLightColorCodes(p(h).length)}:{color:null!=o&&null!=o.layout[h]?o.layout[h].color:""},stackgroup:"stackedarea"==r.name?g(h):""},h++;var v={autosize:!0,barmode:r.barmode,hovermode:"closest",yaxis:{autotick:!0,automargin:!0,showgrid:null==o||null==o.layout[h]||o.layout[0].showygridline,zeroline:null!=o&&null!=o.layout[h]&&o.layout[0].showyzeroline},xaxis:{autotick:null!=l&&l.autotick,automargin:!0,title:u.children[0].dimName,showgrid:null!=l&&l.showxgridline,zeroline:null!=l&&l.showxzeroline},margin:{t:20,l:20},showlegend:i.showlegends,legend:{orientation:"h"==i.legendorientation?"h":"v",x:i.legendposition?i.legendposition.x:1,xanchor:i.legendposition?i.legendposition.anchor:"left",y:i.legendposition?i.legendposition.y:1}};if(l.showmultiaxes){var m=.1;n>=10&&(m=.05);for(var y=0;y<n-1;y++){var x={title:g(y+1),overlaying:"y",showgrid:null!=o&&null!=o.layout[y+1]&&o.layout[y+1].showygridline,zeroline:null!=o&&null!=o.layout[y+1]&&o.layout[y+1].showyzeroline,gridcolor:"#bdbdbd",gridwidth:2,showline:!0,zerolinecolor:"#969696",zerolinewidth:4,side:"left",position:(n-(y+1))*m};v["yaxis"+(y+2)]=x}var b={autotick:null!=l&&l.autotick,automargin:!0,domain:[m*n,1],showgrid:null!=l&&l.showxgridline,zeroline:null!=l&&l.showxzeroline};v.xaxis=b}"bar"!=r.name&&"horizontalStackedbar"!=r.name||(v.xaxis.autotick=!0,v.yaxis.autotick=!1),a.a.newPlot(e,d,v,{displaylogo:!1,responsive:!0});var w=this;c.on("plotly_click",(function(t){var a,s="h"==r.orientation?t.points[0].y:t.points[0].x,c=u.children,d=new Array;for(a=0;a<c.length;a++)s==c[a].name&&(d=c[a]);var h={h:17,t:10},f=new Array;f[-1]=0,f[0]=33;var p=w.breadcrumbPoints(d.name,d.depth,h,f,0),g=p.split(",")[2].split(" ")[1];d.children?w.drillLabels.push({text:d.name,depth:d.depth,node:d,points:p,x:0+f[d.depth]/2+h.t*d.depth,y:h.h/2,width:g}):(w.$store.commit("setSnackbarStatus",!0),w.$store.commit("setSnackbarCode","INVALID_DIMENSIONS")),w.drawPlotlyChart(e,d,n,r,i,o,l)}))},breadcrumbPoints:function(e,t,n,r,a){var i=[];return r[t]=6*e.replace("'","'").length+15,a+=r[t],i.push(a-r[t]+n.t*t+",0"),i.push(a+n.t*t+",0"),i.push(n.t*(t+1)+a+","+n.h/2),i.push(a+n.t*t+","+n.h),i.push(n.t*t+(t?a-r[t]:0)+","+n.h),t>0&&i.push(n.t+n.t*t+(t?a-r[t]:0)+","+n.h/2),i.join(" ")},plotAnyChart:function(e,t,n,r,a,i,o,l,s){null==o&&(o=this.graphSettings),null==s&&(s=this.axesprops),null==l&&(l=this.measureprops);var c=this.graphConf[i],u=n,d=new Array;t==u.depth?d=u:(json1=json1.parent,this.plotAnyChart(e,t)),this.plotCharts(i,r,d,a,c,o,l,s)},drawPlotlyLineChart:function(e,t,n,r,i,o,l){var s,c=document.getElementById(e),u=t,d=[],h=0;function f(e){var t=new Array;for(y=0;y<u.children.length;y++)t.push(u.children[y].name);return t}function p(e){var t=new Array;for(s=0;s<u.children.length;s++)t.push(u.children[s].size[e]);return t}function g(e){return u.measName[e]}for(u.parent?u.parent:u;h<n;)d[h]={orientation:r.orientation,x:"h"==r.orientation?p(h):f(),y:"h"==r.orientation?f():p(h),yaxis:null!=l&&1==l.showmultiaxes&&0!=h?"y"+(h+1):"",name:g(h),mode:null!=i&&1==i.showpointlabels?"lines+markers+text":"lines+markers",type:null!=o&&null!=o.layout[h]&&1==o.layout[h].ismeasurepropsapplied&&""!=o.layout[h].tracetype?o.layout[h].tracetype:r.type,text:"h"==r.orientation?f().map(String):p(h).map(String),textposition:null!=i&&1==i.showpointlabels?"top":"none",line:{color:null!=o&&null!=o.layout[h]?o.layout[h].color:""},stackgroup:""},h++;var v={autosize:!0,hovermode:"closest",yaxis:{automargin:!0,showgrid:null==o||null==o.layout[h]||o.layout[0].showygridline,zeroline:null!=o&&null!=o.layout[h]&&o.layout[0].showyzeroline},xaxis:{autotick:null!=l&&l.autotick,automargin:!0,title:u.children[0].dimName,showgrid:null!=l&&l.showxgridline,zeroline:null!=l&&l.showxzeroline},margin:{t:20,l:20},showlegend:i.showlegends,legend:{orientation:"h"==i.legendorientation?"h":"v",x:i.legendposition?i.legendposition.x:1,xanchor:i.legendposition?i.legendposition.anchor:"left",y:i.legendposition?i.legendposition.y:1}};if(l.showmultiaxes){var m=.1;n>=10&&(m=.05);for(var y=0;y<n-1;y++){var x={title:g(y+1),overlaying:"y",showgrid:null!=o&&null!=o.layout[y+1]&&o.layout[y+1].showygridline,zeroline:null!=o&&null!=o.layout[y+1]&&o.layout[y+1].showyzeroline,gridcolor:"#bdbdbd",gridwidth:2,showline:!0,zerolinecolor:"#969696",zerolinewidth:4,side:"left",position:(n-(y+1))*m};v["yaxis"+(y+2)]=x}var b={autotick:null!=l&&l.autotick,automargin:!0,domain:[m*n,1],showgrid:null!=l&&l.showxgridline,zeroline:null!=l&&l.showxzeroline};v.xaxis=b}a.a.newPlot(e,d,v,{displaylogo:!1,responsive:!0});var w=this;c.on("plotly_click",(function(t){var a,s="h"==r.orientation?t.points[0].y:t.points[0].x,c=u.children,d=new Array;for(a=0;a<c.length;a++)s==c[a].name&&(d=c[a]);d.children?w.drillLabels.push({text:d.name,depth:d.depth,node:d}):(w.$store.commit("setSnackbarStatus",!0),w.$store.commit("setSnackbarCode","INVALID_DIMENSIONS")),w.drawPlotlyLineChart(e,d,n,r,i,o,l)}))},drawPlotlyPieChart:function(e,t,n,r,i,o,l){var s,c,u,d=document.getElementById(e),h=t,f=[],p=1;p=(r=r)<=3?1:2,u=Math.ceil(r/p);var g=0,v=0,m=0;function y(e){var t=new Array;for(s=0;s<h.children.length;s++)t.push(h.children[s].name);return t}function x(e){var t=new Array;for(c=0;c<h.children.length;c++)t.push(h.children[c].size[e]);return t}for(h.parent?h.parent:h;g<r;)f[g]={labels:y(),values:x(g),hole:n.hole,type:n.type,name:h.measName[g],domain:{row:v,column:m}},g++,++m>=u&&(m=0,v++);var b={title:h.children[0].dimName,titleposition:"bottom center",showlegend:i.showlegends,grid:{rows:p,columns:u},margin:{t:30,b:20,l:20},legend:{orientation:"h"==i.legendorientation?"h":"v",x:i.legendposition?i.legendposition.x:1,xanchor:i.legendposition?i.legendposition.anchor:"left",y:i.legendposition?i.legendposition.y:1}};a.a.newPlot(e,f,b,{responsive:!0,displaylogo:!1});var w=this;d.on("plotly_click",(function(t){var a,s=h.children,c=new Array;for(a=0;a<s.length;a++)t.points[0].label==s[a].name&&(c=s[a]);c.children?w.drillLabels.push({text:c.name,depth:c.depth,node:c}):(w.$store.commit("setSnackbarStatus",!0),w.$store.commit("setSnackbarCode","INVALID_DIMENSIONS")),w.drawPlotlyPieChart(e,c,n,r,i,o,l)}))},drawPlotlySunburstChart:function(e,t,n,r,i,o,l){document.getElementById(e);var s=t,c=(r=r,[]),u=0;function d(e,t=""){if(!e.children)return[];for(var n=new Array,r=0;r<e.children.length;r++){var a="";a=t?t+" ~ "+e.children[r].name:e.children[r].name,n.push(a),n=n.concat(d(e.children[r],a))}return n}function h(e,t=""){if(!e.children)return[];for(var n=new Array,r=0;r<e.children.length;r++){var a="";a=t?t+" ~ "+e.children[r].name:e.children[r].name,n.push(t),n=n.concat(h(e.children[r],a))}return n}function f(e){if(!e.children)return[];for(var t=new Array,n=0;n<e.children.length;n++){var r=e.children[n].size[0];t.push(r),t=t.concat(f(e.children[n]))}return t}function p(e){if(!e.children)return[];for(var t=new Array,n=0;n<e.children.length;n++){var r=e.children[n].name;t.push(r),t=t.concat(p(e.children[n]))}return t}for(s.parent?s.parent:s;u<r;)c[u]={ids:d(t),labels:p(t),parents:h(t),values:f(t),type:"sunburst",textposition:"inside",insidetextorientation:"radial",marker:{line:{width:2}}},u++;var g={showlegend:i.showlegends,margin:{t:20,b:20,l:20},legend:{orientation:"h"==i.legendorientation?"h":"v",x:i.legendposition?i.legendposition.x:1,xanchor:i.legendposition?i.legendposition.anchor:"left",y:i.legendposition?i.legendposition.y:1}};a.a.newPlot(e,c,g,{responsive:!0,displaylogo:!1})},drawPlotlyTreemap:function(e,t,n,r,i,o,l){document.getElementById(e);var s=t,c=(r=r,[]),u=0;function d(e,t=""){if(!e.children)return[];for(var n=new Array,r=0;r<e.children.length;r++){var a="";a=t?t+" ~ "+e.children[r].name:e.children[r].name,n.push(a),n=n.concat(d(e.children[r],a))}return n}function h(e,t=""){if(!e.children)return[];for(var n=new Array,r=0;r<e.children.length;r++){var a="";a=t?t+" ~ "+e.children[r].name:e.children[r].name,n.push(t),n=n.concat(h(e.children[r],a))}return n}function f(e){if(!e.children)return[];for(var t=new Array,n=0;n<e.children.length;n++){var r=e.children[n].size[0];t.push(r),t=t.concat(f(e.children[n]))}return t}function p(e){if(!e.children)return[];for(var t=new Array,n=0;n<e.children.length;n++){var r=e.children[n].name;t.push(r),t=t.concat(p(e.children[n]))}return t}for(s.parent?s.parent:s;u<r;)c[u]={ids:d(t),labels:p(t),parents:h(t),values:f(t),type:"treemap",textinfo:"label+value",outsidetextfont:{size:20,color:"#377eb8"},marker:{line:{width:2}},pathbar:{visible:!1}},u++;a.a.newPlot(e,c,{margin:{l:0,r:0,t:0,b:0},annotations:[{showarrow:!1,text:"",x:.25,xanchor:"center",y:1.1,yanchor:"bottom"}]},{responsive:!0,displaylogo:!1})},drawPlotlyGaugeChart:function(e,t,n,r){for(var i=document.getElementById(e),o=t,l=o.children.length,s=0,c=0,u=1,d=new Array(o.children.length);s<l;){var h=o.children[s].percent[0];h=h.replace(/% ?/g,""),d[s]={domain:{row:u,column:c},value:h,title:{text:o.children[s].name},type:"indicator",number:{suffix:"%"},mode:"gauge+number",gauge:{axis:{range:[null,100]}}},++c>3&&(u++,c=0),s++}if(0==c)var f=4;else f=c;var p={margin:{t:0,b:0},grid:{rows:u,columns:f,pattern:"independent"}},g=this;a.a.newPlot(e,d,p,{displaylogo:!1,showSendToCloud:!0}),i.on("plotly_click",(function(a){var i,l=o.children,s=new Array;for(i=0;i<l.length;i++)a.points[0].label==l[i].name&&(s=l[i]);s.children?g.drillLabels.push({text:s.name,depth:s.depth,node:s}):(g.$store.commit("setSnackbarStatus",!0),g.$store.commit("setSnackbarCode","INVALID_DIMENSIONS")),g.drawPlotlyGaugeChart(e,t,n,r)}))},drawPlotlyGeoChart:function(e,t,n,r,i,o,l){var s,c,u=t,d=1;function h(e){var t=new Array;for(s=0;s<u.children.length;s++)t.push(u.children[s].name);return t}d=(r=r)<=3?1:2,Math.ceil(r/d),u.parent&&u.parent;var f=[{type:"choropleth",locationmode:"country names",locations:h(),z:function(e){var t=new Array;for(c=0;c<u.children.length;c++)t.push(u.children[c].size[e]);return t}(0),text:h(),autocolorscale:!0}];a.a.newPlot(e,f,{autosize:!0,margin:{l:0,r:0,t:12,b:0},geo:{projection:{type:"natural earth"}}},{responsive:!0,displaylogo:!1})},drawPlotlyFunnelChart:function(e,t,n,r,i,o,l){var s,c=document.getElementById(e),u=t;u.parent&&u.parent;var d=function(e){for(var t=[],n=0;n<u.children.length;n++){var r={};r.x=u.children[n].name,r.y=u.children[n].size[e],t.push(r)}return t.sort((function(e,t){return t.y-e.y})),t}(0),h=new Array;d.forEach((function(e){h.push(e.x)}));var f=new Array;d.forEach((function(e){f.push(e.y)})),s=[{labels:h,values:f,type:"funnelarea",title:u.measName[0],hoverinfo:"x+percent previous+percent initial",textinfo:"value",domain:{x:[0,1],y:[0,1]}}];var p={showlegend:i.showlegends,shapes:[],margin:{l:0,r:0,t:0,b:0},legend:{orientation:"h"==i.legendorientation?"h":"v",x:i.legendposition?i.legendposition.x:1,xanchor:i.legendposition?i.legendposition.anchor:"left",y:i.legendposition?i.legendposition.y:1}};a.a.newPlot(e,s,p,{responsive:!0,displaylogo:!1});var g=this;c.on("plotly_click",(function(t){var a,s=u.children,c=new Array;for(a=0;a<s.length;a++)t.points[0].label==s[a].name&&(c=s[a]);c.children?g.drillLabels.push({text:c.name,depth:c.depth,node:c}):(g.$store.commit("setSnackbarStatus",!0),g.$store.commit("setSnackbarCode","INVALID_DIMENSIONS")),g.drawPlotlyFunnelChart(e,c,n,r,i,o,l)}))},drawPlotlyStackedFunnelChart:function(e,t,n,r,i,o,l){var s=document.getElementById(e),c=t,u=[],d=0;function h(e){for(var t=[],r=0;r<c.children.length;r++){var a={};a.x=c.children[r].name,a.y=c.children[r].size[e],a.sum=0;for(var i=0;i<n;i++)a.sum+=c.children[r].size[i];t.push(a)}return t.sort((function(e,t){return t.sum-e.sum})),t}for(c.parent?c.parent:c;d<n;){var f=h(d),p=new Array;f.forEach((function(e){p.push(e.x)}));var g=new Array;f.forEach((function(e){g.push(e.y)})),u[d]={y:p,x:g,type:"funnel",name:c.measName[d],textposition:"outside",textinfo:"value+percent total"},d++}var v={margin:{l:0,r:0,t:0,b:0},funnelmode:"stack",showlegend:i.showlegends,legend:{orientation:"h"==i.legendorientation?"h":"v",x:i.legendposition?i.legendposition.x:1,xanchor:i.legendposition?i.legendposition.anchor:"left",y:i.legendposition?i.legendposition.y:1}};a.a.newPlot(e,u,v,{responsive:!0,displaylogo:!1});var m=this;s.on("plotly_click",(function(t){var a,s=c.children,u=new Array;for(a=0;a<s.length;a++)t.points[0].y==s[a].name&&(u=s[a]);u.children?m.drillLabels.push({text:u.name,depth:u.depth,node:u}):(m.$store.commit("setSnackbarStatus",!0),m.$store.commit("setSnackbarCode","INVALID_DIMENSIONS")),m.drawPlotlyStackedFunnelChart(e,u,n,r,i,o,l)}))},drawPlotlyFunnelAreaChart:function(e,t,n,r,i,o,l){var s=0,c=.5,u=0,d=0;var h=0,f=document.getElementById(e),p=t,g=[],v=0;function m(e){for(var t=[],n=0;n<p.children.length;n++){var r={};r.x=p.children[n].name,r.y=p.children[n].size[e],t.push(r)}return t.sort((function(e,t){return t.y-e.y})),t}for(p.parent?p.parent:p;v<n;){var y=m(v),x=new Array;y.forEach((function(e){x.push(e.x)}));var b=new Array;y.forEach((function(e){b.push(e.y)})),g[v]={labels:x,values:b,type:"funnelarea",title:p.measName[v],hoverinfo:"x+percent previous+percent initial",domain:{x:[s,c],y:[u,d]}},v++,u+=.5,d+=.5,++h>=1&&(u=0,d=.5,s+=.5,c+=.5)}for(var w=[],_=0;_<g.length;_++){var k={};k.x0=g[_].domain.x[0],k.x1=g[_].domain.x[1],k.y0=g[_].domain.y[0],k.y1=g[_].domain.y[1],w.push(k)}var T={margin:{l:150},shapes:w,showlegend:i.showlegends};a.a.newPlot(f,g,T)},drawPlotlyHeatChart:function(e,t,n,r,i,o,l){for(var s=[],c=[],u={},d=[],h=0;h<t.children.length;h++){var f=t.children[h].name;s.push(f),u[f]={};for(var p=0;p<t.children[h].children.length;p++){var g=t.children[h].children[p].name;u[f][g]=t.children[h].children[p].size[0],c.includes(g)||c.push(g)}}for(h=0;h<s.length;h++){var v=new Array(c.length);for(p=0;p<c.length;p++)u[s[h]][c[p]]&&(v[p]=u[s[h]][c[p]]);d.push(v)}var m=[{type:"heatmap",x:c,y:s,z:d,hoverongaps:!1}],y={xaxis:{autotick:null!=l&&l.autotick},yaxis:{autotick:!1},autosize:!0,automargin:!0,margin:{t:24}};a.a.newPlot(e,m,y,{responsive:!0,displaylogo:!1})},drawPlotlyHVLineChart:function(e,t,n,r,i,o,l){var s,c=document.getElementById(e),u=t,d=[],h=0;function f(e){var t=new Array;for(y=0;y<u.children.length;y++)t.push(u.children[y].name);return t}function p(e){var t=new Array;for(s=0;s<u.children.length;s++)t.push(u.children[s].size[e]);return t}function g(e){return u.measName[e]}for(u.parent?u.parent:u;h<n;)d[h]={x:f(),y:p(h),yaxis:null!=l&&1==l.showmultiaxes&&0!=h?"y"+(h+1):"",name:g(h),mode:null!=i&&1==i.showpointlabels?"lines+markers+text":"lines+markers",type:"scatter",text:p(h).map(String),textposition:null!=i&&1==i.showpointlabels?"top":"none",line:{color:null!=o&&null!=o.layout[h]?o.layout[h].color:"",shape:"hv"},stackgroup:""},h++;var v={autosize:!0,hovermode:"closest",yaxis:{automargin:!0,showgrid:null==o||null==o.layout[h]||o.layout[0].showygridline,zeroline:null!=o&&null!=o.layout[h]&&o.layout[0].showyzeroline},xaxis:{autotick:null!=l&&l.autotick,automargin:!0,title:u.children[0].dimName,showgrid:null!=l&&l.showxgridline,zeroline:null!=l&&l.showxzeroline},margin:{t:20,l:20},showlegend:i.showlegends,legend:{orientation:"h"==i.legendorientation?"h":"v",x:i.legendposition?i.legendposition.x:1,xanchor:i.legendposition?i.legendposition.anchor:"left",y:i.legendposition?i.legendposition.y:1}};if(l.showmultiaxes){var m=.1;n>=10&&(m=.05);for(var y=0;y<n-1;y++){var x={title:g(y+1),overlaying:"y",showgrid:null!=o&&null!=o.layout[y+1]&&o.layout[y+1].showygridline,zeroline:null!=o&&null!=o.layout[y+1]&&o.layout[y+1].showyzeroline,gridcolor:"#bdbdbd",gridwidth:2,showline:!0,zerolinecolor:"#969696",zerolinewidth:4,side:"left",position:(n-(y+1))*m};v["yaxis"+(y+2)]=x}var b={autotick:null!=l&&l.autotick,automargin:!0,domain:[m*n,1],showgrid:null!=l&&l.showxgridline,zeroline:null!=l&&l.showxzeroline};v.xaxis=b}a.a.newPlot(e,d,v,{displaylogo:!1,responsive:!0});var w=this;c.on("plotly_click",(function(t){var a,s="h"==r.orientation?t.points[0].y:t.points[0].x,c=u.children,d=new Array;for(a=0;a<c.length;a++)s==c[a].name&&(d=c[a]);d.children?w.drillLabels.push({text:d.name,depth:d.depth,node:d}):(w.$store.commit("setSnackbarStatus",!0),w.$store.commit("setSnackbarCode","INVALID_DIMENSIONS")),w.drawPlotlyHVLineChart(e,d,n,r,i,o,l)}))},drawPlotlyRadarChart:function(e,t,n,r,i,o,l){var s,c,u=document.getElementById(e),d=t,h=[],f=0;function p(e){var t=new Array;for(s=0;s<d.children.length;s++)t.push(d.children[s].name);return t}function g(e){var t=new Array;for(c=0;c<d.children.length;c++)t.push(d.children[c].size[e]);return t}function v(e){return d.measName[e]}for(d.parent?d.parent:d;f<n;)h[f]={r:g(f),theta:p(),type:"scatterpolar",name:v(f),fill:"toself"},f++;console.log(h);var m={margin:{l:0,r:0,t:0,b:0},polar:{radialaxis:{visible:!0}},showlegend:i.showlegends};a.a.newPlot(e,h,m,{responsive:!0,displaylogo:!1});var y=this;u.on("plotly_click",(function(t){var a,s=d.children,c=new Array;for(a=0;a<s.length;a++)t.points[0].theta==s[a].name&&(c=s[a]);c.children?y.drillLabels.push({text:c.name,depth:c.depth,node:c}):(y.$store.commit("setSnackbarStatus",!0),y.$store.commit("setSnackbarCode","INVALID_DIMENSIONS")),y.drawPlotlyRadarChart(e,c,n,r,i,o,l)}))},drawPlotlyWaterFallChart:function(e,t,n,r,i,o,l){var s,c,u=document.getElementById(e),d=t,h=[],f=0;function p(e){var t=new Array;for(s=0;s<d.children.length;s++)t.push(d.children[s].name);return t}function g(e){var t=new Array;for(c=0;c<d.children.length;c++)t.push(d.children[c].size[e]);return t}function v(e){return d.measName[e]}for(d.parent?d.parent:d;f<n;)h[f]={orientation:"v",x:"h"==r.orientation?g(f):p(),y:"h"==r.orientation?p():g(f),name:v(f),mode:r.mode,type:"waterfall",text:"h"==r.orientation?p().map(String):g(f).map(String),textposition:"outside",connector:{line:{color:"rgb(63, 63, 63)"}}},f++;var m={xaxis:{type:"category"},yaxis:{type:"linear"},autosize:!0,showlegend:i.showlegends};a.a.newPlot(e,h,m,{displaylogo:!1,responsive:!0});var y=this;u.on("plotly_click",(function(t){var a,s="h"==r.orientation?t.points[0].y:t.points[0].x,c=d.children,u=new Array;for(a=0;a<c.length;a++)s==c[a].name&&(u=c[a]);u.children?y.drillLabels.push({text:u.name,depth:u.depth,node:u}):(y.$store.commit("setSnackbarStatus",!0),y.$store.commit("setSnackbarCode","INVALID_DIMENSIONS")),y.drawPlotlyWaterFallChart(e,u,n,r,i,o,l)}))},getRandomLightColorCodes:function(e){for(var t=[],n="ABCDEF".split(""),r=0;t.length<e;r++){for(var a="#",i=0;i<6;i++)a+=n[Math.floor(Math.random()*n.length)];t.includes(a)||t.push(a)}return t},getMarkerSize:function(e){var t=[],n=Math.max.apply(Math,e);for(var r in e){var a=100*e[r]/n;t.push(Math.max(2,a))}return t}}}},ZhPi:function(e,t,n){var r=n("WkPL");e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},Zhzs:function(e,t,n){"use strict";var r,a,i=n("bljh"),o=n("GbLo"),l=n("rhNM"),s=n("09xr").mod,c=n("6AZA"),u=c.BADNUM,d=c.ONEDAY,h=c.ONEHOUR,f=c.ONEMIN,p=c.ONESEC,g=c.EPOCHJD,v=n("Nx4I"),m=i.time.format.utc,y=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d:?\d\d)?)?)?)?)?\s*$/m,x=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d:?\d\d)?)?)?)?)?\s*$/m,b=(new Date).getFullYear()-70;function w(e){return e&&v.componentsRegistry.calendars&&"string"==typeof e&&"gregorian"!==e}function _(e,t){return String(e+Math.pow(10,t)).substr(1)}t.dateTick0=function(e,t){return w(e)?t?v.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:v.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"},t.dfltRange=function(e){return w(e)?v.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]},t.isJSDate=function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.getTime},t.dateTime2ms=function(e,n){if(t.isJSDate(e)){var i=e.getTimezoneOffset()*f,o=(e.getUTCMinutes()-e.getMinutes())*f+(e.getUTCSeconds()-e.getSeconds())*p+(e.getUTCMilliseconds()-e.getMilliseconds());if(o){var l=3*f;i=i-l/2+s(o-i+l/2,l)}return(e=Number(e)-i)>=r&&e<=a?e:u}if("string"!=typeof e&&"number"!=typeof e)return u;e=String(e);var c=w(n),m=e.charAt(0);!c||"G"!==m&&"g"!==m||(e=e.substr(1),n="");var _=c&&"chinese"===n.substr(0,7),k=e.match(_?x:y);if(!k)return u;var T=k[1],M=k[3]||"1",A=Number(k[5]||1),S=Number(k[7]||0),C=Number(k[9]||0),L=Number(k[11]||0);if(c){if(2===T.length)return u;var I;T=Number(T);try{var E=v.getComponentMethod("calendars","getCal")(n);if(_){var O="i"===M.charAt(M.length-1);M=parseInt(M,10),I=E.newDate(T,E.toMonthIndex(T,M,O),A)}else I=E.newDate(T,Number(M),A)}catch(e){return u}return I?(I.toJD()-g)*d+S*h+C*f+L*p:u}T=2===T.length?(Number(T)+2e3-b)%100+b:Number(T),M-=1;var D=new Date(Date.UTC(2e3,M,A,S,C));return D.setUTCFullYear(T),D.getUTCMonth()!==M||D.getUTCDate()!==A?u:D.getTime()+L*p},r=t.MIN_MS=t.dateTime2ms("-9999"),a=t.MAX_MS=t.dateTime2ms("9999-12-31 23:59:59.9999"),t.isDateTime=function(e,n){return t.dateTime2ms(e,n)!==u};var k=90*d,T=3*h,M=5*f;function A(e,t,n,r,a){if((t||n||r||a)&&(e+=" "+_(t,2)+":"+_(n,2),(r||a)&&(e+=":"+_(r,2),a))){for(var i=4;a%10==0;)i-=1,a/=10;e+="."+_(a,i)}return e}t.ms2DateTime=function(e,t,n){if("number"!=typeof e||!(e>=r&&e<=a))return u;t||(t=0);var i,o,l,c,y,x,b=Math.floor(10*s(e+.05,1)),_=Math.round(e-b/10);if(w(n)){var S=Math.floor(_/d)+g,C=Math.floor(s(e,d));try{i=v.getComponentMethod("calendars","getCal")(n).fromJD(S).formatDate("yyyy-mm-dd")}catch(e){i=m("G%Y-%m-%d")(new Date(_))}if("-"===i.charAt(0))for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=t<k?Math.floor(C/h):0,l=t<k?Math.floor(C%h/f):0,c=t<T?Math.floor(C%f/p):0,y=t<M?C%p*10+b:0}else x=new Date(_),i=m("%Y-%m-%d")(x),o=t<k?x.getUTCHours():0,l=t<k?x.getUTCMinutes():0,c=t<T?x.getUTCSeconds():0,y=t<M?10*x.getUTCMilliseconds()+b:0;return A(i,o,l,c,y)},t.ms2DateTimeLocal=function(e){if(!(e>=r+d&&e<=a-d))return u;var t=Math.floor(10*s(e+.05,1)),n=new Date(Math.round(e-t/10));return A(i.time.format("%Y-%m-%d")(n),n.getHours(),n.getMinutes(),n.getSeconds(),10*n.getUTCMilliseconds()+t)},t.cleanDate=function(e,n,r){if(e===u)return n;if(t.isJSDate(e)||"number"==typeof e&&isFinite(e)){if(w(r))return l.error("JS Dates and milliseconds are incompatible with world calendars",e),n;if(!(e=t.ms2DateTimeLocal(+e))&&void 0!==n)return n}else if(!t.isDateTime(e,r))return l.error("unrecognized date",e),n;return e};var S=/%\d?f/g;function C(e,t,n,r){e=e.replace(S,(function(e){var n=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(n).substr(2).replace(/0+$/,"")||"0"}));var a=new Date(Math.floor(t+.05));if(w(r))try{e=v.getComponentMethod("calendars","worldCalFmt")(e,t,r)}catch(e){return"Invalid"}return n(e)(a)}var L=[59,59.9,59.99,59.999,59.9999];t.formatDate=function(e,t,n,r,a,i){if(a=w(a)&&a,!t)if("y"===n)t=i.year;else if("m"===n)t=i.month;else{if("d"!==n)return function(e,t){var n=s(e+.05,d),r=_(Math.floor(n/h),2)+":"+_(s(Math.floor(n/f),60),2);if("M"!==t){o(t)||(t=0);var a=(100+Math.min(s(e/p,60),L[t])).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),r+=":"+a}return r}(e,n)+"\n"+C(i.dayMonthYear,e,r,a);t=i.dayMonth+"\n"+i.year}return C(t,e,r,a)};var I=3*d;t.incrementMonth=function(e,t,n){n=w(n)&&n;var r=s(e,d);if(e=Math.round(e-r),n)try{var a=Math.round(e/d)+g,i=v.getComponentMethod("calendars","getCal")(n),o=i.fromJD(a);return t%12?i.add(o,t,"m"):i.add(o,t/12,"y"),(o.toJD()-g)*d+r}catch(t){l.error("invalid ms "+e+" in calendar "+n)}var c=new Date(e+I);return c.setUTCMonth(c.getUTCMonth()+t)+r-I},t.findExactDates=function(e,t){for(var n,r,a=0,i=0,l=0,s=0,c=w(t)&&v.getComponentMethod("calendars","getCal")(t),u=0;u<e.length;u++)if(r=e[u],o(r)){if(!(r%d))if(c)try{1===(n=c.fromJD(r/d+g)).day()?1===n.month()?a++:i++:l++}catch(e){}else 1===(n=new Date(r)).getUTCDate()?0===n.getUTCMonth()?a++:i++:l++}else s++;l+=i+=a;var h=e.length-s;return{exactYears:a/h,exactMonths:i/h,exactDays:l/h}}},ZnKQ:function(e,t,n){"use strict";var r=n("GbLo"),a=n("Zss7"),i=n("qHYo"),o=n("SFLx"),l=n("cqRZ").DESELECTDIM,s=n("dNZO"),c=n("BVrX").counter,u=n("09xr").modHalf,d=n("avjU").isArrayOrTypedArray;function h(e,n,r,a,i,o){var l=(o||{}).shouldValidate,c=s(r,a).get();void 0===i&&(i=c.dflt);var u=!1,h=s(e,a),p=s(n,a),g=h.get(),v=n._template;if(void 0===g&&v&&(u=void 0!==(g=s(v,a).get()),v=0),c.arrayOk&&d(g))return p.set(g),{inp:g,val:g,src:!0};var m=t.valObjectMeta[c.valType].coerceFunction;m(g,p,i,c);var y=p.get();return u=void 0!==y&&l&&f(g,c),v&&y===i&&!f(g,c)&&(m(g=s(v,a).get(),p,i,c),u=void 0!==(y=p.get())&&l&&f(g,c)),{inp:g,val:y,src:u}}function f(e,n){var r=t.valObjectMeta[n.valType];if(n.arrayOk&&d(e))return!0;if(r.validateFunction)return r.validateFunction(e,n);var a={},i=a,o={set:function(e){i=e}};return r.coerceFunction(e,o,a,n),i!==a}t.valObjectMeta={data_array:{description:["An {array} of data.","The value MUST be an {array}, or we ignore it.","Note that typed arrays (e.g. Float32Array) are supported."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){d(e)?t.set(e):void 0!==n&&t.set(n)}},enumerated:{description:["Enumerated value type. The available values are listed","in `values`."].join(" "),requiredOpts:["values"],otherOpts:["dflt","coerceNumber","arrayOk"],coerceFunction:function(e,t,n,r){r.coerceNumber&&(e=+e),-1===r.values.indexOf(e)?t.set(n):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var n=t.values,r=0;r<n.length;r++){var a=String(n[r]);if("/"===a.charAt(0)&&"/"===a.charAt(a.length-1)){if(new RegExp(a.substr(1,a.length-2)).test(e))return!0}else if(e===n[r])return!0}return!1}},boolean:{description:"A boolean (true/false) value.",requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){!0===e||!1===e?t.set(e):t.set(n)}},number:{description:["A number or a numeric value","(e.g. a number inside a string).","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(e,t,n,a){!r(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?t.set(n):t.set(+e)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(e,t,n,a){e%1||!r(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?t.set(n):t.set(+e)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(e,t,n,r){if("string"!=typeof e){var a="number"==typeof e;!0!==r.strict&&a?t.set(String(e)):t.set(n)}else r.noBlank&&!e?t.set(n):t.set(e)}},color:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,n){a(e).isValid()?t.set(e):t.set(n)}},colorlist:{description:["A list of colors.","Must be an {array} containing valid colors."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){Array.isArray(e)&&e.length&&e.every((function(e){return a(e).isValid()}))?t.set(e):t.set(n)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",Object.keys(o.scales).join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){t.set(o.get(e,n))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){"auto"===e?t.set("auto"):r(e)?t.set(u(+e,360)):t.set(n)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:["regex"],coerceFunction:function(e,t,n,r){var a=r.regex||c(n);"string"==typeof e&&a.test(e)?t.set(e):t.set(n)},validateFunction:function(e,t){var n=t.dflt;return e===n||"string"==typeof e&&!!c(n).test(e)}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(e,t,n,r){if("string"==typeof e)if(-1===(r.extras||[]).indexOf(e)){for(var a=e.split("+"),i=0;i<a.length;){var o=a[i];-1===r.flags.indexOf(o)||a.indexOf(o)<i?a.splice(i,1):i++}a.length?t.set(a.join("+")):t.set(n)}else t.set(e);else t.set(n)}},any:{description:"Any type.",requiredOpts:[],otherOpts:["dflt","values","arrayOk"],coerceFunction:function(e,t,n){void 0===e?t.set(n):t.set(e)}},info_array:{description:["An {array} of plot information."].join(" "),requiredOpts:["items"],otherOpts:["dflt","freeLength","dimensions"],coerceFunction:function(e,n,r,a){function i(e,n,r){var a,i={set:function(e){a=e}};return void 0===r&&(r=n.dflt),t.valObjectMeta[n.valType].coerceFunction(e,i,r,n),a}var o=2===a.dimensions||"1-2"===a.dimensions&&Array.isArray(e)&&Array.isArray(e[0]);if(Array.isArray(e)){var l,s,c,u,d,h,f=a.items,p=[],g=Array.isArray(f),v=g&&o&&Array.isArray(f[0]),m=o&&g&&!v,y=g&&!m?f.length:e.length;if(r=Array.isArray(r)?r:[],o)for(l=0;l<y;l++)for(p[l]=[],c=Array.isArray(e[l])?e[l]:[],d=m?f.length:g?f[l].length:c.length,s=0;s<d;s++)u=m?f[s]:g?f[l][s]:f,void 0!==(h=i(c[s],u,(r[l]||[])[s]))&&(p[l][s]=h);else for(l=0;l<y;l++)void 0!==(h=i(e[l],g?f[l]:f,r[l]))&&(p[l]=h);n.set(p)}else n.set(r)},validateFunction:function(e,t){if(!Array.isArray(e))return!1;var n=t.items,r=Array.isArray(n),a=2===t.dimensions;if(!t.freeLength&&e.length!==n.length)return!1;for(var i=0;i<e.length;i++)if(a){if(!Array.isArray(e[i])||!t.freeLength&&e[i].length!==n[i].length)return!1;for(var o=0;o<e[i].length;o++)if(!f(e[i][o],r?n[i][o]:n))return!1}else if(!f(e[i],r?n[i]:n))return!1;return!0}}},t.coerce=function(e,t,n,r,a){return h(e,t,n,r,a).val},t.coerce2=function(e,t,n,r,a){var i=h(e,t,n,r,a,{shouldValidate:!0});return!(!i.src||void 0===i.inp)&&i.val},t.coerceFont=function(e,t,n){var r={};return n=n||{},r.family=e(t+".family",n.family),r.size=e(t+".size",n.size),r.color=e(t+".color",n.color),r},t.coerceHoverinfo=function(e,n,r){var a,o=n._module.attributes,l=o.hoverinfo?o:i,s=l.hoverinfo;if(1===r._dataLength){var c="all"===s.dflt?s.flags.slice():s.dflt.split("+");c.splice(c.indexOf("name"),1),a=c.join("+")}return t.coerce(e,n,l,"hoverinfo",a)},t.coerceSelectionMarkerOpacity=function(e,t){if(e.marker){var n,r,a=e.marker.opacity;if(void 0!==a)d(a)||e.selected||e.unselected||(n=a,r=l*a),t("selected.marker.opacity",n),t("unselected.marker.opacity",r)}},t.validate=f},Zss7:function(e,t,n){var r;!function(a){var i=/^\s+/,o=/\s+$/,l=0,s=a.round,c=a.min,u=a.max,d=a.random;function h(e,t){if(t=t||{},(e=e||"")instanceof h)return e;if(!(this instanceof h))return new h(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,l=null,s=null,d=!1,h=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,n=!1;if(I[e])e=I[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=G.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=G.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=G.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=G.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=G.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=G.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=G.hex8.exec(e))return{r:z(t[1]),g:z(t[2]),b:z(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=G.hex6.exec(e))return{r:z(t[1]),g:z(t[2]),b:z(t[3]),format:n?"name":"hex"};if(t=G.hex4.exec(e))return{r:z(t[1]+""+t[1]),g:z(t[2]+""+t[2]),b:z(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=G.hex3.exec(e))return{r:z(t[1]+""+t[1]),g:z(t[2]+""+t[2]),b:z(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(U(e.r)&&U(e.g)&&U(e.b)?(f=e.r,p=e.g,g=e.b,t={r:255*D(f,255),g:255*D(p,255),b:255*D(g,255)},d=!0,h="%"===String(e.r).substr(-1)?"prgb":"rgb"):U(e.h)&&U(e.s)&&U(e.v)?(r=j(e.s),l=j(e.v),t=function(e,t,n){e=6*D(e,360),t=D(t,100),n=D(n,100);var r=a.floor(e),i=e-r,o=n*(1-t),l=n*(1-i*t),s=n*(1-(1-i)*t),c=r%6;return{r:255*[n,l,o,o,s,n][c],g:255*[s,n,n,l,o,o][c],b:255*[o,o,s,n,n,l][c]}}(e.h,r,l),d=!0,h="hsv"):U(e.h)&&U(e.s)&&U(e.l)&&(r=j(e.s),s=j(e.l),t=function(e,t,n){var r,a,i;function o(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=D(e,360),t=D(t,100),n=D(n,100),0===t)r=a=i=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=o(s,l,e+1/3),a=o(s,l,e),i=o(s,l,e-1/3)}return{r:255*r,g:255*a,b:255*i}}(e.h,r,s),d=!0,h="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,p,g;return n=O(n),{ok:d,format:e.format||h,r:c(255,u(t.r,0)),g:c(255,u(t.g,0)),b:c(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=l++}function f(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,a,i=u(e,t,n),o=c(e,t,n),l=(i+o)/2;if(i==o)r=a=0;else{var s=i-o;switch(a=l>.5?s/(2-i-o):s/(i+o),i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:a,l:l}}function p(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,a,i=u(e,t,n),o=c(e,t,n),l=i,s=i-o;if(a=0===i?0:s/i,i==o)r=0;else{switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:a,v:l}}function g(e,t,n,r){var a=[N(s(e).toString(16)),N(s(t).toString(16)),N(s(n).toString(16))];return r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function v(e,t,n,r){return[N(R(r)),N(s(e).toString(16)),N(s(t).toString(16)),N(s(n).toString(16))].join("")}function m(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.s-=t/100,n.s=P(n.s),h(n)}function y(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.s+=t/100,n.s=P(n.s),h(n)}function x(e){return h(e).desaturate(100)}function b(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.l+=t/100,n.l=P(n.l),h(n)}function w(e,t){t=0===t?0:t||10;var n=h(e).toRgb();return n.r=u(0,c(255,n.r-s(-t/100*255))),n.g=u(0,c(255,n.g-s(-t/100*255))),n.b=u(0,c(255,n.b-s(-t/100*255))),h(n)}function _(e,t){t=0===t?0:t||10;var n=h(e).toHsl();return n.l-=t/100,n.l=P(n.l),h(n)}function k(e,t){var n=h(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,h(n)}function T(e){var t=h(e).toHsl();return t.h=(t.h+180)%360,h(t)}function M(e){var t=h(e).toHsl(),n=t.h;return[h(e),h({h:(n+120)%360,s:t.s,l:t.l}),h({h:(n+240)%360,s:t.s,l:t.l})]}function A(e){var t=h(e).toHsl(),n=t.h;return[h(e),h({h:(n+90)%360,s:t.s,l:t.l}),h({h:(n+180)%360,s:t.s,l:t.l}),h({h:(n+270)%360,s:t.s,l:t.l})]}function S(e){var t=h(e).toHsl(),n=t.h;return[h(e),h({h:(n+72)%360,s:t.s,l:t.l}),h({h:(n+216)%360,s:t.s,l:t.l})]}function C(e,t,n){t=t||6,n=n||30;var r=h(e).toHsl(),a=360/n,i=[h(e)];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(h(r));return i}function L(e,t){t=t||6;for(var n=h(e).toHsv(),r=n.h,a=n.s,i=n.v,o=[],l=1/t;t--;)o.push(h({h:r,s:a,v:i})),i=(i+l)%1;return o}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:a.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=O(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,a){var i=[N(s(e).toString(16)),N(s(t).toString(16)),N(s(n).toString(16)),N(R(r))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*D(this._r,255))+"%",g:s(100*D(this._g,255))+"%",b:s(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*D(this._r,255))+"%, "+s(100*D(this._g,255))+"%, "+s(100*D(this._b,255))+"%)":"rgba("+s(100*D(this._r,255))+"%, "+s(100*D(this._g,255))+"%, "+s(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var a=h(e);n="#"+v(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(k,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(T,arguments)},monochromatic:function(){return this._applyCombination(L,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(M,arguments)},tetrad:function(){return this._applyCombination(A,arguments)}},h.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:j(e[r]));e=n}return h(e,t)},h.equals=function(e,t){return!(!e||!t)&&h(e).toRgbString()==h(t).toRgbString()},h.random=function(){return h.fromRatio({r:d(),g:d(),b:d()})},h.mix=function(e,t,n){n=0===n?0:n||50;var r=h(e).toRgb(),a=h(t).toRgb(),i=n/100;return h({r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a})},h.readability=function(e,t){var n=h(e),r=h(t);return(a.max(n.getLuminance(),r.getLuminance())+.05)/(a.min(n.getLuminance(),r.getLuminance())+.05)},h.isReadable=function(e,t,n){var r,a,i=h.readability(e,t);switch(a=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},h.mostReadable=function(e,t,n){var r,a,i,o,l=null,s=0;a=(n=n||{}).includeFallbackColors,i=n.level,o=n.size;for(var c=0;c<t.length;c++)(r=h.readability(e,t[c]))>s&&(s=r,l=h(t[c]));return h.isReadable(e,l,{level:i,size:o})||!a?l:(n.includeFallbackColors=!1,h.mostReadable(e,["#fff","#000"],n))};var I=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E=h.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(I);function O(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function P(e){return c(1,u(0,e))}function z(e){return parseInt(e,16)}function N(e){return 1==e.length?"0"+e:""+e}function j(e){return e<=1&&(e=100*e+"%"),e}function R(e){return a.round(255*parseFloat(e)).toString(16)}function F(e){return z(e)/255}var B,H,V,G=(H="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",V="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(e){return!!G.CSS_UNIT.exec(e)}e.exports?e.exports=h:void 0===(r=function(){return h}.call(t,n,t,e))||(e.exports=r)}(Math)},a18v:function(e,t,n){"use strict";var r=n("u3HJ");t.name="pie",t.plot=function(e,n,a,i){r.plotBasePlot(t.name,e,n,a,i)},t.clean=function(e,n,a,i){r.cleanBasePlot(t.name,e,n,a,i)}},a3ij:function(e,t,n){"use strict";var r=["orientation","groupnorm","stackgaps"];e.exports=function(e,t,n,a){var i=n._scatterStackOpts,o=a("stackgroup");if(o){var l=t.xaxis+t.yaxis,s=i[l];s||(s=i[l]={});var c=s[o],u=!1;c?c.traces.push(t):(c=s[o]={traceIndices:[],traces:[t]},u=!0);for(var d={orientation:t.x&&!t.y?"h":"v"},h=0;h<r.length;h++){var f=r[h],p=f+"Found";if(!c[p]){var g=void 0!==e[f],v="orientation"===f;if((g||u)&&(c[f]=a(f,d[f]),v&&(c.fillDflt="h"===c[f]?"tonextx":"tonexty"),g&&(c[p]=!0,!u&&(delete c.traces[0][f],v))))for(var m=0;m<c.traces.length-1;m++){var y=c.traces[m];y._input.fill!==y.fill&&(y.fill=c.fillDflt)}}}return c}}},aDMI:function(e,t,n){"use strict";var r=n("GbLo"),a=n("Zss7"),i=n("/CZE").isArrayOrTypedArray;t.coerceString=function(e,t,n){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!==n?n:e.dflt},t.coerceNumber=function(e,t,n){if(r(t)){t=+t;var a=e.min,i=e.max;if(!(void 0!==a&&t<a||void 0!==i&&t>i))return t}return void 0!==n?n:e.dflt},t.coerceColor=function(e,t,n){return a(t).isValid()?t:void 0!==n?n:e.dflt},t.coerceEnumerated=function(e,t,n){return e.coerceNumber&&(t=+t),-1!==e.values.indexOf(t)?t:void 0!==n?n:e.dflt},t.getValue=function(e,t){var n;return Array.isArray(e)?t<e.length&&(n=e[t]):n=e,n},t.getLineWidth=function(e,t){return 0<t.mlw?t.mlw:i(e.marker.line.width)?0:e.marker.line.width}},aSHK:function(e,t,n){"use strict";var r=n("Nx4I"),a=n("/CZE"),i=n("qHYo"),o=n("poX/"),l=n("qcty"),s=n("W2jp"),c=n("P/XJ").configAttributes,u=n("+gYs"),d=n("t7il"),h=n("yzSc"),f=a.extendFlat,p=a.extendDeepAll,g=a.isPlainObject,v=a.isArrayOrTypedArray,m=a.nestedProperty,y=a.valObjectMeta,x=["_isSubplotObj","_isLinkedToArray","_arrayAttrRegexps","_deprecated"];function b(e,t,n){if(!e)return!1;if(e._isLinkedToArray)if(w(t[n]))n++;else if(n<t.length)return!1;for(;n<t.length;n++){var r=e[t[n]];if(!g(r))break;if(e=r,n===t.length-1)break;if(e._isLinkedToArray){if(!w(t[++n]))return!1}else if("info_array"===e.valType){var a=t[++n];if(!w(a))return!1;var i=e.items;if(Array.isArray(i)){if(a>=i.length)return!1;if(2===e.dimensions){if(n++,t.length===n)return e;var o=t[n];if(!w(o))return!1;e=i[a][o]}else e=i[a]}else e=i}}return e}function w(e){return e===Math.round(e)&&e>=0}function _(){var e,t,n={};for(e in p(n,o),r.subplotsRegistry){if((t=r.subplotsRegistry[e]).layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)M(n,t,t.attr[a]);else M(n,t,"subplot"===t.attr?t.name:t.attr)}for(e in n=function(e){return f(e,{radialaxis:d.radialaxis,angularaxis:d.angularaxis}),f(e,d.layout),e}(n),r.componentsRegistry){var i=(t=r.componentsRegistry[e]).schema;if(i&&(i.subplots||i.layout)){var l=i.subplots;if(l&&l.xaxis&&!l.yaxis)for(var s in l.xaxis)delete n.yaxis[s]}else"colorscale"===t.name?p(n,t.layoutAttributes):t.layoutAttributes&&A(n,t.layoutAttributes,t.name)}return{layoutAttributes:T(n)}}function k(){var e={frames:p({},l)};return T(e),e.frames}function T(e){return function(e){function n(e){return{valType:"string",role:"info",description:["Sets the source reference on Chart Studio Cloud for ",e,"."].join(" "),editType:"none"}}t.crawl(e,(function(e,r,a){t.isValObject(e)?"data_array"===e.valType?(e.role="data",a[r+"src"]=n(r)):!0===e.arrayOk&&(a[r+"src"]=n(r)):g(e)&&(e.role="object")}))}(e),function(e){t.crawl(e,(function(e,t,n){if(e){var r=e._isLinkedToArray;r&&(delete e._isLinkedToArray,n[t]={items:{}},n[t].items[r]=e,n[t].role="object")}}))}(e),function(e){!function e(t){for(var n in t)if(g(t[n]))e(t[n]);else if(Array.isArray(t[n]))for(var r=0;r<t[n].length;r++)e(t[n][r]);else t[n]instanceof RegExp&&(t[n]=t[n].toString())}(e)}(e),e}function M(e,t,n){var r=m(e,n),a=p({},t.layoutAttributes);a._isSubplotObj=!0,r.set(a)}function A(e,t,n){var r=m(e,n);r.set(p(r.get()||{},t))}t.IS_SUBPLOT_OBJ="_isSubplotObj",t.IS_LINKED_TO_ARRAY="_isLinkedToArray",t.DEPRECATED="_deprecated",t.UNDERSCORE_ATTRS=x,t.get=function(){var e={};r.allTypes.concat("area").forEach((function(n){e[n]=function(e){var n,a;"area"===e?(n={attributes:u},a={}):(n=r.modules[e]._module,a=n.basePlotModule);var o={type:null},l=p({},i),s=p({},n.attributes);t.crawl(s,(function(e,t,n,r,a){m(l,a).set(void 0),void 0===e&&m(s,a).set(void 0)})),p(o,l),r.traceIs(e,"noOpacity")&&delete o.opacity;r.traceIs(e,"showLegend")||(delete o.showlegend,delete o.legendgroup);r.traceIs(e,"noHover")&&(delete o.hoverinfo,delete o.hoverlabel);n.selectPoints||delete o.selectedpoints;p(o,s),a.attributes&&p(o,a.attributes);o.type=e;var c={meta:n.meta||{},categories:n.categories||{},animatable:Boolean(n.animatable),type:e,attributes:T(o)};if(n.layoutAttributes){var d={};p(d,n.layoutAttributes),c.layoutAttributes=T(d)}n.animatable||t.crawl(c,(function(e){t.isValObject(e)&&"anim"in e&&delete e.anim}));return c}(n)}));var n={};return Object.keys(r.transformsRegistry).forEach((function(e){n[e]=function(e){var t=r.transformsRegistry[e],n=p({},t.attributes);return Object.keys(r.componentsRegistry).forEach((function(t){var a=r.componentsRegistry[t];a.schema&&a.schema.transforms&&a.schema.transforms[e]&&Object.keys(a.schema.transforms[e]).forEach((function(t){A(n,a.schema.transforms[e][t],t)}))})),{attributes:T(n)}}(e)})),{defs:{valObjects:y,metaKeys:x.concat(["description","role","editType","impliedEdits"]),editType:{traces:h.traces,layout:h.layout},impliedEdits:{description:["Sometimes when an attribute is changed, other attributes","must be altered as well in order to achieve the intended","result. For example, when `range` is specified, it is","important to set `autorange` to `false` or the new `range`","value would be lost in the redraw. `impliedEdits` is the","mechanism to do this: `impliedEdits: {autorange: false}`.","Each key is a relative paths to the attribute string to","change, using *^* to ascend into the parent container,","for example `range[0]` has `impliedEdits: {*^autorange*: false}`.","A value of `undefined` means that the attribute will not be","changed, but its previous value should be recorded in case","we want to reverse this change later. For example, `autorange`","has `impliedEdits: {*range[0]*: undefined, *range[1]*:undefined}","because the range will likely be changed by redraw."].join(" ")}},traces:e,layout:_(),transforms:n,frames:k(),animation:T(s),config:T(c)}},t.crawl=function(e,n,r,a){var i=r||0;a=a||"",Object.keys(e).forEach((function(r){var o=e[r];if(-1===x.indexOf(r)){var l=(a?a+".":"")+r;n(o,r,e,i,l),t.isValObject(o)||g(o)&&"impliedEdits"!==r&&t.crawl(o,n,i+1,l)}}))},t.isValObject=function(e){return e&&void 0!==e.valType},t.findArrayAttributes=function(e){var n,r,a=[],o=[],l=[];function s(e,t,i,s){o=o.slice(0,s).concat([t]),l=l.slice(0,s).concat([e&&e._isLinkedToArray]),e&&("data_array"===e.valType||!0===e.arrayOk)&&!("colorbar"===o[s-1]&&("ticktext"===t||"tickvals"===t))&&function e(t,n,i){var s=t[o[n]],c=i+o[n];if(n===o.length-1)v(s)&&a.push(r+c);else if(l[n]){if(Array.isArray(s))for(var u=0;u<s.length;u++)g(s[u])&&e(s[u],n+1,c+"["+u+"].")}else g(s)&&e(s,n+1,c+".")}(n,0,"")}n=e,r="",t.crawl(i,s),e._module&&e._module.attributes&&t.crawl(e._module.attributes,s);var c=e.transforms;if(c)for(var u=0;u<c.length;u++){var d=c[u],h=d._module;h&&(r="transforms["+u+"].",n=d,t.crawl(h.attributes,s))}return a},t.getTraceValObject=function(e,t){var n,a,o=t[0],l=1;if("transforms"===o){if(1===t.length)return i.transforms;var s=e.transforms;if(!Array.isArray(s)||!s.length)return!1;var c=t[1];if(!w(c)||c>=s.length)return!1;a=(n=(r.transformsRegistry[s[c].type]||{}).attributes)&&n[t[2]],l=3}else if("area"===e.type)a=u[o];else{var d=e._module;if(d||(d=(r.modules[e.type||i.type.dflt]||{})._module),!d)return!1;if(!(a=(n=d.attributes)&&n[o])){var h=d.basePlotModule;h&&h.attributes&&(a=h.attributes[o])}a||(a=i[o])}return b(a,t,l)},t.getLayoutValObject=function(e,t){return b(function(e,t){var n,a,i,l,s=e._basePlotModules;if(s){var c;for(n=0;n<s.length;n++){if((i=s[n]).attrRegex&&i.attrRegex.test(t)){if(i.layoutAttrOverrides)return i.layoutAttrOverrides;!c&&i.layoutAttributes&&(c=i.layoutAttributes)}var u=i.baseLayoutAttrOverrides;if(u&&t in u)return u[t]}if(c)return c}var h=e._modules;if(h)for(n=0;n<h.length;n++)if((l=h[n].layoutAttributes)&&t in l)return l[t];for(a in r.componentsRegistry){if("colorscale"===(i=r.componentsRegistry[a]).name&&0===t.indexOf("coloraxis"))return i.layoutAttributes[t];if(!i.schema&&t===i.name)return i.layoutAttributes}if(t in o)return o[t];if("radialaxis"===t||"angularaxis"===t)return d[t];return d.layout[t]||!1}(e,t[0]),t,1)}},aWIO:function(e,t,n){"use strict";var r=n("bljh"),a=n("Nx4I"),i=n("xMdC").appendArrayPointValue,o=n("pcRN"),l=n("/CZE"),s=n("h0EB"),c=n("+1bK"),u=n("WeBh").formatPieValue;function d(e,t,n){for(var r=e.data.data,a={curveNumber:t.index,pointNumber:r.i,data:t._input,fullData:t},o=0;o<n.length;o++){var l=n[o];l in e&&(a[l]=e[l])}return"parentString"in e&&!c.isHierarchyRoot(e)&&(a.parent=e.parentString),i(a,t,r.i),a}e.exports=function(e,t,n,i,h){var f=i[0],p=f.trace,g=f.hierarchy,v="sunburst"===p.type,m="treemap"===p.type;"_hasHoverLabel"in p||(p._hasHoverLabel=!1),"_hasHoverEvent"in p||(p._hasHoverEvent=!1);e.on("mouseover",(function(a){var i=n._fullLayout;if(!n._dragging&&!1!==i.hovermode){var s=n._fullData[p.index],y=a.data.data,x=y.i,b=c.isHierarchyRoot(a),w=c.getParent(g,a),_=c.getValue(a),k=function(e){return l.castOption(s,x,e)},T=k("hovertemplate"),M=o.castHoverinfo(s,i,x),A=i.separators;if(T||M&&"none"!==M&&"skip"!==M){var S,C;v&&(S=f.cx+a.pxmid[0]*(1-a.rInscribed),C=f.cy+a.pxmid[1]*(1-a.rInscribed)),m&&(S=a._hoverX,C=a._hoverY);var L,I={},E=[],O=[],D=function(e){return-1!==E.indexOf(e)};M&&(E="all"===M?s._module.attributes.hoverinfo.flags:M.split("+")),I.label=y.label,D("label")&&I.label&&O.push(I.label),y.hasOwnProperty("v")&&(I.value=y.v,I.valueLabel=u(I.value,A),D("value")&&O.push(I.valueLabel)),I.currentPath=a.currentPath=c.getPath(a.data),D("current path")&&!b&&O.push(I.currentPath);var P=[],z=function(){-1===P.indexOf(L)&&(O.push(L),P.push(L))};I.percentParent=a.percentParent=_/c.getValue(w),I.parent=a.parentString=c.getPtLabel(w),D("percent parent")&&(L=c.formatPercent(I.percentParent,A)+" of "+I.parent,z()),I.percentEntry=a.percentEntry=_/c.getValue(t),I.entry=a.entry=c.getPtLabel(t),!D("percent entry")||b||a.onPathbar||(L=c.formatPercent(I.percentEntry,A)+" of "+I.entry,z()),I.percentRoot=a.percentRoot=_/c.getValue(g),I.root=a.root=c.getPtLabel(g),D("percent root")&&!b&&(L=c.formatPercent(I.percentRoot,A)+" of "+I.root,z()),I.text=k("hovertext")||k("text"),D("text")&&(L=I.text,l.isValidTextValue(L)&&O.push(L));var N={trace:s,y:C,text:O.join("<br>"),name:T||D("name")?s.name:void 0,color:k("hoverlabel.bgcolor")||y.color,borderColor:k("hoverlabel.bordercolor"),fontFamily:k("hoverlabel.font.family"),fontSize:k("hoverlabel.font.size"),fontColor:k("hoverlabel.font.color"),nameLength:k("hoverlabel.namelength"),textAlign:k("hoverlabel.align"),hovertemplate:T,hovertemplateLabels:I,eventData:[d(a,s,h.eventDataKeys)]};v&&(N.x0=S-a.rInscribed*a.rpx1,N.x1=S+a.rInscribed*a.rpx1,N.idealAlign=a.pxmid[0]<0?"left":"right"),m&&(N.x=S,N.idealAlign=S<0?"left":"right"),o.loneHover(N,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:n}),p._hasHoverLabel=!0}if(m){var j=e.select("path.surface");h.styleOne(j,a,s,{hovered:!0})}p._hasHoverEvent=!0,n.emit("plotly_hover",{points:[d(a,s,h.eventDataKeys)],event:r.event})}})),e.on("mouseout",(function(t){var a=n._fullLayout,i=n._fullData[p.index],l=r.select(this).datum();if(p._hasHoverEvent&&(t.originalEvent=r.event,n.emit("plotly_unhover",{points:[d(l,i,h.eventDataKeys)],event:r.event}),p._hasHoverEvent=!1),p._hasHoverLabel&&(o.loneUnhover(a._hoverlayer.node()),p._hasHoverLabel=!1),m){var s=e.select("path.surface");h.styleOne(s,l,i,{hovered:!1})}})),e.on("click",(function(e){var t=n._fullLayout,i=n._fullData[p.index],l=v&&(c.isHierarchyRoot(e)||c.isLeaf(e)),u=c.getPtId(e),f=c.isEntry(e)?c.findEntryWithChild(g,u):c.findEntryWithLevel(g,u),m=c.getPtId(f),y={points:[d(e,i,h.eventDataKeys)],event:r.event};l||(y.nextLevel=m);var x=s.triggerHandler(n,"plotly_"+p.type+"click",y);if(!1!==x&&t.hovermode&&(n._hoverdata=[d(e,i,h.eventDataKeys)],o.click(n,r.event)),!l&&!1!==x&&!n._dragging&&!n._transitioning){a.call("_storeDirectGUIEdit",i,t._tracePreGUI[i.uid],{level:i.level});var b={data:[{level:m}],traces:[p.index]},w={frame:{redraw:!1,duration:h.transitionTime},transition:{duration:h.transitionTime,easing:h.transitionEasing},mode:"immediate",fromcurrent:!0};o.loneUnhover(t._hoverlayer.node()),a.call("animate",n,b,w)}}))}},al3m:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("EUZL"),a=n.n(r),i=n("L2JU");const o={data:()=>({monthNames:["JAN","FEB","MAR","APR","MAY","JUNE","JULY","AUG","SEP","OCT","NOV","DEC"]}),computed:{...Object(i.b)(["getItemMetaById","getMetaNameById"])},methods:{filterStringToArray:function(e){if(!e)return[];var t=[],n=e.split(/[\[\]]/);n=n.filter(Boolean);for(var r=0;r<n.length;r++){var a={},i=n[r].split(/[()]/);a.FilterItemId=i[0],a.FilterOper=i[1],a.FilterValues=i[2].split(":"),t.push(a)}return t},getPseudoHeader:function(e,t){var n=[];0==t&&(t=1);for(var r=0;r<e.length;r++){for(var a=[],i=r!=e.length-1?1:t;i<e[r].length;i++)for(var o=e[r][i].colspan,l=e[r][i].value,s=0;s<o;s++)a.push(l);n.push(a)}return n},getDataValue:function(e,t,n,r,a,i){for(var o=e.pop(),l=i.indexOf(o),s=0;s<t.length;s++)if(this.arraysEqual(e,t[s].slice(0,n+r-a)))return t[s][n+r-a+l];return 0},arraysEqual:function(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(e.length!=t.length)return!1;for(var n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0},getTransposedPseudoHeader:function(e){for(var t=new Array,n=0;n<e[0].length;n++){for(var r=new Array,a=0;a<e.length;a++)r.push(e[a][n]);t.push(r)}return t},getAllValues:function(e,t,n,r,a,i,o){o&&t.sort((function(e,t){if("date"==o.DataType.toLowerCase()||"number"==o.DataType.toLowerCase())return new Date(e[0])-new Date(t[0]);if("char"==o.DataType.toLowerCase()||"string"==o.DataType.toLowerCase()){if(e[0]<t[0])return-1;if(e[0]>t[0])return 1}}));var l=[],s=t.map((function(e){return e.slice(0,n)}));s=this.normalize(s);for(var c=this.getPseudoHeader(e,n),u=this.getTransposedPseudoHeader(c),d=0;d<s.length;d++){var h=new Array;h=h.concat(s[d]);for(var f=0;f<u.length;f++){var p=s[d].concat(u[f]),g=this.getDataValue(p,t,n,r,a,i);h.push(g)}0==n&&h.splice(0,0,""),l.push(h)}return l},getDistinctValues:function(e,t){var n=[];n.push(t[0].slice(0,e.length));for(var r=1;r<t.length;r++){for(var a=!1,i=0;i<n.length&&!a;i++)a=this.arraysEqual(t[r].slice(0,e.length),n[i]);a||n.push(t[r].slice(0,e.length))}return n},normalize:function(e){for(var t=[],n=0;n<e.length;++n)this.contains(t,e[n])||t.push(e[n]);return t},contains:function(e,t){for(var n=0;n<e.length;n++)if(this.arraysEqual(e[n],t))return!0;return!1},getDistinctChildCounts:function(e,t){for(var n=t.map((function(t){return t.slice(0,e.length)})),r=0,a=0;a<n.length;a++)this.arraysEqual(e,n[a])&&r++;return r},sortCTData:function(e,t,n,r,a){for(var i=n;i<n+r-a;i++){if(e[i]<t[i])return-1;if(e[i]>t[i])return 1}return 0},getHeader:function(e,t,n,r,a,i,o,l,s,c,u){c=a.length;for(var d="",h=[],f=0;f<i.length;f++)i[f]<1e4?d=i[f]:h.push(i[f]);u=this.getItemMetaById(d),e.sort((function(e,t){if("date"==u.DataType.toLowerCase()||"number"==u.DataType.toLowerCase())return new Date(e[c])-new Date(t[c]);if("char"==u.DataType.toLowerCase()||"string"==u.DataType.toLowerCase()){if(e[c]<t[c])return-1;if(e[c]>t[c])return 1}}));var p=[],g=e.map((function(e){return e.slice(t,t+n-r)})),v=this.normalize(g),m=[];for(f=0;f<i.length;f++)+i[f]<1e4&&m.push(o[f]);for(f=0;f<m.length;f++){var y=[];(T=new Object).value=m[f],T.colspan=0==t?1:t,T.itemId=u.Id,T.text=m[f],y.push(T);for(var x=this.getDistinctValues(m.slice(0,f+1),g),b=0;b<x.length;b++){var w=this.getDistinctChildCounts(x[b],v);(T=new Object).value=x[b][x[b].length-1],T.colspan=w*r,u&&(T.itemId=u.Id),T.text=x[b][x[b].length-1],y.push(T)}p.push(y)}var _=p[p.length-1].length-1;y=[];0==t&&((T=new Object).itemId="",T.value="",T.colspan=1,y.push(T));for(var k=0;k<t;k++){(T=new Object).itemId=a[k],T.value=l[k],T.colspan=1,y.push(T)}for(f=0;f<_;f++)for(b=0;b<r;b++){var T;(T=new Object).itemId=h[b],T.value=s[b],T.colspan=1,y.push(T)}return p.push(y),p},getHeaderForGraph:function(e,t,n,r,a,i,o,l,s,c,u){c=a.length;for(var d="",h=[],f=0;f<i.length;f++)i[f]<1e4?d=i[f]:h.push(i[f]);u=this.getItemMetaById(d),e.sort((function(e,t){if("date"==u.DataType.toLowerCase()||"number"==u.DataType.toLowerCase())return new Date(e[c])-new Date(t[c]);if("char"==u.DataType.toLowerCase()||"string"==u.DataType.toLowerCase()){if(e[c]<t[c])return-1;if(e[c]>t[c])return 1}}));var p=e.map((function(e){return e.slice(t,t+n-r)})),g=this.normalize(p),v=[];for(f=0;f<g.length;f++)for(var m=0;m<s.length;m++)v=v.concat(g[f]+"_"+s[m]);var y=l.concat(v),x={};return x.nmeas=v.length,x.header=y,x.ndims=t,x},exportToExcelCrossTab_SheetJS:function(e,t,n,r,i){for(var o=i.concat(r[r.length-1]),l=new Array,s=0;s<r.length-1;s++)l.push(r[s]);var c=new Array;for(s=0;s<o.length;s++)c.push(this.getItemMetaById(o[s]));var u=new Array;for(s=0;s<r.length-1;s++)u.push(this.getItemMetaById(r[s]));var d=new Array;for(s=0;s<i.length;s++)d.push(this.getItemMetaById(i[s]));var h=new Array,f=new Array,p=new Array,g=new Array,v=new Array;for(s=0;s<d.length;s++)f.push(d[s].Name);for(s=0;s<c.length;s++)v.push(c[s].Id),h.push(c[s].Name);for(s=0;s<u.length;s++)g.push(u[s].Id),p.push(u[s].Name);var m=e.slice(1),y=this.getHeader(m,u.length,c.length,d.length,g,v,h,p,f,"",""),x=getAllValues(y,m,u.length,c.length,d.length,f),b=y[y.length-1],w=[];for(s=0;s<b.length;s++)if(b[s].itemId>1e4){var _=this.getItemMetaById(b[s].itemId);if(x.length){for(var k=0,T=0,M=0,A=Number(x[0][s]),S=Number(x[0][s]),C=0;C<x.length;C++)M+=T=Number(x[C][s]),A=A<T?A:T,S=S>T?S:T;k="Min"==_.AggFunction?A:"Max"==_.AggFunction?S:"avg"==_.AggFunction?M/x.length:M,w.push(k)}}var L=[],I=[],E=0;t&&(L.push([t]),I.push({s:{r:E,c:0},e:{r:E,c:24}}),E++),n&&(L.push([n]),I.push({s:{r:E,c:0},e:{r:E,c:24}}),E++),(t||n)&&(L.push([""]),I.push({s:{r:E,c:0},e:{r:E,c:24}}),E++);for(s=0;s<y.length;s++){var O=[],D=0;for(C=0;C<y[s].length;C++){O.push(y[s][C].value),I.push({s:{r:E,c:D},e:{r:E,c:D+y[s][C].colspan-1}}),D+=y[s][C].colspan;for(var P=0;P<y[s][C].colspan-1;P++)O.push("")}L.push(O),E++}for(s=0;s<x.length;s++){var z=[];for(C=0;C<b.length;C++){if((R={}).v=x[s][C],b[C].itemId>1e4)R.t="n",R.z="#,##0";else{var N=this.getItemMetaById(b[C].itemId);"time"==N.Table&&"month"==N.Column&&(R.v=this.monthNames[R.v-1]),"Date"==N.DataSubType?R.t="d":R.t="s"}z.push(R)}L.push(z)}z=[{v:"Grand Total",t:"s"}];E+=x.length;var j=b.length-w.length-1;for(s=0,C=0;s<b.length;s++){var R;if(b[s].itemId<1e4)s>0&&z.push("");else(R={}).v=w[C],b[s].itemId>1e4&&(R.t="n",R.z="#,##0"),z.push(R),C++}L.push(z),I.push({s:{r:E,c:0},e:{r:E,c:j}});var F=a.a.utils.aoa_to_sheet(L);F["!merges"]=I;var B=a.a.utils.book_new();a.a.utils.book_append_sheet(B,F,"Sheet1");var H=(new Date).getTime();return t.trim()&&(H=t.trim()),a.a.writeFile(B,H+".xlsx")},drawCrossTabGraph(e,t,n,r,a,i){this.itemList=this.$store.state.itemList;for(var o=t.DimensionIds.split(":"),l=t.MeasureIds.split(":"),s=l.concat(o[o.length-1]),c=new Array,u=0;u<o.length-1;u++)c.push(o[u]);var d=new Array;for(u=0;u<s.length;u++)s.length,d.push(this.getItemMetaById(s[u]));var h=new Array;for(u=0;u<o.length-1;u++)h.push(this.getItemMetaById(o[u]));var f=new Array;for(u=0;u<l.length;u++)f.push(this.getItemMetaById(l[u]));var p=new Array,g=new Array,v=new Array,m=new Array,y=new Array;for(u=0;u<f.length;u++)g.push(f[u].Name);for(u=0;u<d.length;u++)y.push(d[u].Id),p.push(d[u].Name);for(u=0;u<h.length;u++)m.push(h[u].Id),v.push(h[u].Name);var x=e.data.slice(1),b=this.getHeaderForGraph(x,h.length,d.length,f.length,m,y,p,v,g,"","");this.crossTabHeader=b;var w=this.getHeader(x,h.length,d.length,f.length,m,y,p,v,g,"",""),_=this.getAllValues(w,x,h.length,d.length,f.length,g);console.log(b);var k=[b.header].concat(_);this.drawPlotlyCharts(e.Target,k,b.ndims,b.nmeas,n,r,a,i)},exportToExcel_SheetJS:function(e,t,n,r,i){var o=[],l=[],s=0;t&&(o.push([t]),l.push({s:{r:s,c:0},e:{r:s,c:24}}),s++),n&&(o.push([n]),l.push({s:{r:s,c:0},e:{r:s,c:24}}),s++),(t||n)&&(o.push([]),l.push({s:{r:s,c:0},e:{r:s,c:24}}),s++),o.push(e[0]);for(var c=1;c<e.length;c++){for(var u=[],d=0;d<e[c].length;d++){if((p={}).v=e[c][d],r[d]>1e4)p.t="n",p.z="#,##0";else{var h=this.getItemMetaById(r[d]);"time"==h.Table&&"month"==h.Column&&(p.v=this.monthNames[p.v-1]),"Date"==h.DataSubType?p.t="d":p.t="s"}u.push(p)}o.push(u)}u=[{v:"Grand Total",t:"s"}];s+=e.length;var f=-1;for(c=0;c<i.length;c++){var p;if(r[c]<1e4)f++,c>0&&u.push("");else(p={}).v=i[c],r[c]>1e4&&(p.t="n",p.z="#,##0"),u.push(p)}o.push(u),l.push({s:{r:s,c:0},e:{r:s,c:f}});var g=a.a.utils.aoa_to_sheet(o);g["!merges"]=l;var v=a.a.utils.book_new();a.a.utils.book_append_sheet(v,g,"Sheet1");var m=(new Date).getTime();return t.trim()&&(m=t.trim()),a.a.writeFile(v,m+".xlsx")}}}},at2O:function(e,t,n){"use strict";var r=n("/CZE"),a=n("PBw4").id2name,i=n("l1mV"),o=n("zlYT").makePadFn,l=n("zlYT").concatExtremes,s=n("6AZA").ALMOST_EQUAL,c=n("Y9zF").FROM_BL;function u(e,t,n,r,i){var o,l,s,c,u="range"!==i,d=r[a(t)].type,h=[];for(l=0;l<n.length;l++)if((s=n[l])!==t&&(c=r[a(s)]).type===d)if(c.fixedrange){if(u&&c.anchor){r[a(c.anchor)].fixedrange&&h.push(s)}}else h.push(s);for(o=0;o<e.length;o++)if(e[o][t]){var f=e[o],p=[];for(l=0;l<h.length;l++)f[s=h[l]]||p.push(s);return{linkableAxes:p,thisGroup:f}}return{linkableAxes:h,thisGroup:null}}function d(e,t,n,r,a){var i,o,l,s,c;null===t?((t={})[n]=1,c=e.length,e.push(t)):c=e.indexOf(t);var u=Object.keys(t);for(i=0;i<e.length;i++)if(l=e[i],i!==c&&l[r]){var d=l[r];for(o=0;o<u.length;o++)l[s=u[o]]=d*a*t[s];return void e.splice(c,1)}if(1!==a)for(o=0;o<u.length;o++)t[u[o]]*=a;t[r]=1}function h(e,t){var n=e._inputDomain,r=c[e.constraintoward],a=n[0]+(n[1]-n[0])*r;e.domain=e._input.domain=[a+(n[0]-a)/t,a+(n[1]-a)/t],e.setScale()}t.handleConstraintDefaults=function(e,t,n,a){var i,o,l,s,c=a.allAxisIds,h=a.layoutOut,f=a.scaleanchorDflt,p=a.constrainDflt,g=h._axisConstraintGroups,v=h._axisMatchGroups,m=t._id,y=m.charAt(0),x=((h._splomAxes||{})[y]||{})[m]||{},b=t._id,w=b.charAt(0),_=n("constrain",p);if(r.coerce(e,t,{constraintoward:{valType:"enumerated",values:"x"===w?["left","center","right"]:["bottom","middle","top"],dflt:"x"===w?"center":"middle"}},"constraintoward"),!e.matches&&!x.matches||t.fixedrange||(o=u(v,b,c,h),i=r.coerce(e,t,{matches:{valType:"enumerated",values:o.linkableAxes||[],dflt:x.matches}},"matches")),i||t.fixedrange&&"domain"!==_||!e.scaleanchor&&!f||(s=u(g,b,c,h,_),l=r.coerce(e,t,{scaleanchor:{valType:"enumerated",values:s.linkableAxes||[]}},"scaleanchor",f)),i?(delete t.constrain,d(v,o.thisGroup,b,i,1)):-1!==c.indexOf(e.matches)&&r.warn("ignored "+t._name+'.matches: "'+e.matches+'" to avoid either an infinite loop or because the target axis has fixed range.'),l){var k=n("scaleratio");k||(k=t.scaleratio=1),d(g,s.thisGroup,b,l,k)}else-1!==c.indexOf(e.scaleanchor)&&r.warn("ignored "+t._name+'.scaleanchor: "'+e.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because the target axis has fixed range or this axis declares a *matches* constraint.')},t.enforce=function(e){var t,n,r,c,u,d,f,p=e._fullLayout,g=p._axisConstraintGroups||[];for(t=0;t<g.length;t++){var v=g[t],m=Object.keys(v),y=1/0,x=0,b=1/0,w={},_={},k=!1;for(n=0;n<m.length;n++)_[r=m[n]]=c=p[a(r)],c._inputDomain?c.domain=c._inputDomain.slice():c._inputDomain=c.domain.slice(),c._inputRange||(c._inputRange=c.range.slice()),c.setScale(),w[r]=u=Math.abs(c._m)/v[r],y=Math.min(y,u),"domain"!==c.constrain&&c._constraintShrinkable||(b=Math.min(b,u)),delete c._constraintShrinkable,x=Math.max(x,u),"domain"===c.constrain&&(k=!0);if(!(y>s*x)||k)for(n=0;n<m.length;n++)if(u=w[r=m[n]],d=(c=_[r]).constrain,u!==b||"domain"===d)if(f=u/b,"range"===d)i(c,f);else{var T=c._inputDomain,M=(c.domain[1]-c.domain[0])/(T[1]-T[0]),A=(c.r2l(c.range[1])-c.r2l(c.range[0]))/(c.r2l(c._inputRange[1])-c.r2l(c._inputRange[0]));if((f/=M)*A<1){c.domain=c._input.domain=T.slice(),i(c,f);continue}if(A<1&&(c.range=c._input.range=c._inputRange.slice(),f*=A),c.autorange){var S=c.r2l(c.range[0]),C=c.r2l(c.range[1]),L=(S+C)/2,I=L,E=L,O=Math.abs(C-L),D=L-O*f*1.0001,P=L+O*f*1.0001,z=o(c);h(c,f);var N,j,R=Math.abs(c._m),F=l(e,c),B=F.min,H=F.max;for(j=0;j<B.length;j++)(N=B[j].val-z(B[j])/R)>D&&N<I&&(I=N);for(j=0;j<H.length;j++)(N=H[j].val+z(H[j])/R)<P&&N>E&&(E=N);f/=(E-I)/(2*O),I=c.l2r(I),E=c.l2r(E),c.range=c._input.range=S<C?[I,E]:[E,I]}h(c,f)}}},t.clean=function(e,t){if(t._inputDomain){for(var n=!1,r=t._id,a=e._fullLayout._axisConstraintGroups,i=0;i<a.length;i++)if(a[i][r]){n=!0;break}n&&"domain"===t.constrain||(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}}},avjU:function(e,t,n){"use strict";var r=Array.isArray,a="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},i="undefined"==typeof DataView?function(){}:DataView;function o(e){return a.isView(e)&&!(e instanceof i)}function l(e){return r(e)||o(e)}function s(e,t,n){if(l(e)){if(l(e[0])){for(var r=n,a=0;a<e.length;a++)r=t(r,e[a].length);return r}return e.length}return 0}t.isTypedArray=o,t.isArrayOrTypedArray=l,t.isArray1D=function(e){return!l(e[0])},t.ensureArray=function(e,t){return r(e)||(e=[]),e.length=t,e},t.concat=function(){var e,t,n,a,i,o,l,s,c=[],u=!0,d=0;for(n=0;n<arguments.length;n++)(o=(a=arguments[n]).length)&&(t?c.push(a):(t=a,i=o),r(a)?e=!1:(u=!1,d?e!==a.constructor&&(e=!1):e=a.constructor),d+=o);if(!d)return[];if(!c.length)return t;if(u)return t.concat.apply(t,c);if(e){for((l=new e(d)).set(t),n=0;n<c.length;n++)a=c[n],l.set(a,i),i+=a.length;return l}for(l=new Array(d),s=0;s<t.length;s++)l[s]=t[s];for(n=0;n<c.length;n++){for(a=c[n],s=0;s<a.length;s++)l[i+s]=a[s];i+=s}return l},t.maxRowLength=function(e){return s(e,Math.max,0)},t.minRowLength=function(e){return s(e,Math.min,1/0)}},axA2:function(e,t,n){"use strict";var r=n("/CZE"),a=n("plED"),i=n("PBw4"),o=n("jzia"),l=n("WEQY");e.exports=function(e,t,n){var s=e[n],c=t[n];if(s.rangeslider||t._requestRangeslider[c._id]){r.isPlainObject(s.rangeslider)||(s.rangeslider={});var u,d,h=s.rangeslider,f=a.newContainer(c,"rangeslider");if(w("visible")){w("bgcolor",t.plot_bgcolor),w("bordercolor"),w("borderwidth"),w("thickness"),w("autorange",!c.isValidRange(h.range)),w("range");var p=t._subplots;if(p)for(var g=p.cartesian.filter((function(e){return e.substr(0,e.indexOf("y"))===i.name2id(n)})).map((function(e){return e.substr(e.indexOf("y"),e.length)})),v=r.simpleMap(g,i.id2name),m=0;m<v.length;m++){var y=v[m];u=h[y]||{},d=a.newContainer(f,y,"yaxis");var x,b=t[y];u.range&&b.isValidRange(u.range)&&(x="fixed"),"match"!==_("rangemode",x)&&_("range",b.range.slice())}f._input=h}}function w(e,t){return r.coerce(h,f,o,e,t)}function _(e,t){return r.coerce(u,d,l,e,t)}}},b5aN:function(e,t,n){"use strict";e.exports=function(e,t){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(e.percentInitial=t.percentInitial),"percentPrevious"in t&&(e.percentPrevious=t.percentPrevious),"percentTotal"in t&&(e.percentTotal=t.percentTotal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e}},b8PE:function(e,t,n){"use strict";function r(e){return!0===e.visible}function a(e){var t=e[0].trace;return!0===t.visible&&0!==t._length}e.exports=function(e){for(var t,n=(t=e,Array.isArray(t)&&Array.isArray(t[0])&&t[0][0]&&t[0][0].trace?a:r),i=[],o=0;o<e.length;o++){var l=e[o];n(l)&&i.push(l)}return i}},bFr3:function(e,t,n){"use strict";t.isLeftAnchor=function(e){return"left"===e.xanchor||"auto"===e.xanchor&&e.x<=1/3},t.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},t.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},t.isTopAnchor=function(e){return"top"===e.yanchor||"auto"===e.yanchor&&e.y>=2/3},t.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3},t.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3}},bKUU:function(e,t,n){"use strict";e.exports=n("iauE")},bQo4:function(e,t,n){"use strict";e.exports=n("x8K2")},bcxm:function(e,t,n){"use strict";var r=n("GbLo");e.exports={count:function(e,t,n){return n[e]++,1},sum:function(e,t,n,a){var i=a[t];return r(i)?(i=Number(i),n[e]+=i,i):0},avg:function(e,t,n,a,i){var o=a[t];return r(o)&&(o=Number(o),n[e]+=o,i[e]++),0},min:function(e,t,n,a){var i=a[t];if(r(i)){if(i=Number(i),!r(n[e]))return n[e]=i,i;if(n[e]>i){var o=i-n[e];return n[e]=i,o}}return 0},max:function(e,t,n,a){var i=a[t];if(r(i)){if(i=Number(i),!r(n[e]))return n[e]=i,i;if(n[e]<i){var o=i-n[e];return n[e]=i,o}}return 0}}},bkDJ:function(e,t,n){"use strict";var r=n("09xr"),a=r.mod,i=r.modHalf,o=Math.PI,l=2*o;function s(e){return Math.abs(e[1]-e[0])>l-1e-14}function c(e,t){return i(t-e,l)}function u(e,t){if(s(t))return!0;var n,r;t[0]<t[1]?(n=t[0],r=t[1]):(n=t[1],r=t[0]),(n=a(n,l))>(r=a(r,l))&&(r+=l);var i=a(e,l),o=i+l;return i>=n&&i<=r||o>=n&&o<=r}function d(e,t,n,r,a,i,c){a=a||0,i=i||0;var u,d,h,f,p,g=s([n,r]);function v(e,t){return[e*Math.cos(t)+a,i-e*Math.sin(t)]}g?(u=0,d=o,h=l):n<r?(u=n,h=r):(u=r,h=n),e<t?(f=e,p=t):(f=t,p=e);var m,y=Math.abs(h-u)<=o?0:1;function x(e,t,n){return"A"+[e,e]+" "+[0,y,n]+" "+v(e,t)}return g?m=null===f?"M"+v(p,u)+x(p,d,0)+x(p,h,0)+"Z":"M"+v(f,u)+x(f,d,0)+x(f,h,0)+"ZM"+v(p,u)+x(p,d,1)+x(p,h,1)+"Z":null===f?(m="M"+v(p,u)+x(p,h,0),c&&(m+="L0,0Z")):m="M"+v(f,u)+"L"+v(p,u)+x(p,h,0)+"L"+v(f,h)+x(f,u,1)+"Z",m}e.exports={deg2rad:function(e){return e/180*o},rad2deg:function(e){return e/o*180},angleDelta:c,angleDist:function(e,t){return Math.abs(c(e,t))},isFullCircle:s,isAngleInsideSector:u,isPtInsideSector:function(e,t,n,r){return!!u(t,r)&&(n[0]<n[1]?(a=n[0],i=n[1]):(a=n[1],i=n[0]),e>=a&&e<=i);var a,i},pathArc:function(e,t,n,r,a){return d(null,e,t,n,r,a,0)},pathSector:function(e,t,n,r,a){return d(null,e,t,n,r,a,1)},pathAnnulus:function(e,t,n,r,a,i){return d(e,t,n,r,a,i,1)}}},bljh:function(e,t,n){var r,a;!function(){var i={version:"3.5.17"},o=[].slice,l=function(e){return o.call(e)},s=this.document;function c(e){return e&&(e.ownerDocument||e.document||e).documentElement}function u(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(s)try{l(s.documentElement.childNodes)[0].nodeType}catch(e){l=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),s)try{s.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var d=this.Element.prototype,h=d.setAttribute,f=d.setAttributeNS,p=this.CSSStyleDeclaration.prototype,g=p.setProperty;d.setAttribute=function(e,t){h.call(this,e,t+"")},d.setAttributeNS=function(e,t,n){f.call(this,e,t,n+"")},p.setProperty=function(e,t,n){g.call(this,e,t+"",n)}}function v(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function m(e){return null===e?NaN:+e}function y(e){return!isNaN(e)}function x(e){return{left:function(t,n,r,a){for(arguments.length<3&&(r=0),arguments.length<4&&(a=t.length);r<a;){var i=r+a>>>1;e(t[i],n)<0?r=i+1:a=i}return r},right:function(t,n,r,a){for(arguments.length<3&&(r=0),arguments.length<4&&(a=t.length);r<a;){var i=r+a>>>1;e(t[i],n)>0?a=i:r=i+1}return r}}}i.ascending=v,i.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},i.min=function(e,t){var n,r,a=-1,i=e.length;if(1===arguments.length){for(;++a<i;)if(null!=(r=e[a])&&r>=r){n=r;break}for(;++a<i;)null!=(r=e[a])&&n>r&&(n=r)}else{for(;++a<i;)if(null!=(r=t.call(e,e[a],a))&&r>=r){n=r;break}for(;++a<i;)null!=(r=t.call(e,e[a],a))&&n>r&&(n=r)}return n},i.max=function(e,t){var n,r,a=-1,i=e.length;if(1===arguments.length){for(;++a<i;)if(null!=(r=e[a])&&r>=r){n=r;break}for(;++a<i;)null!=(r=e[a])&&r>n&&(n=r)}else{for(;++a<i;)if(null!=(r=t.call(e,e[a],a))&&r>=r){n=r;break}for(;++a<i;)null!=(r=t.call(e,e[a],a))&&r>n&&(n=r)}return n},i.extent=function(e,t){var n,r,a,i=-1,o=e.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=e[i])&&r>=r){n=a=r;break}for(;++i<o;)null!=(r=e[i])&&(n>r&&(n=r),a<r&&(a=r))}else{for(;++i<o;)if(null!=(r=t.call(e,e[i],i))&&r>=r){n=a=r;break}for(;++i<o;)null!=(r=t.call(e,e[i],i))&&(n>r&&(n=r),a<r&&(a=r))}return[n,a]},i.sum=function(e,t){var n,r=0,a=e.length,i=-1;if(1===arguments.length)for(;++i<a;)y(n=+e[i])&&(r+=n);else for(;++i<a;)y(n=+t.call(e,e[i],i))&&(r+=n);return r},i.mean=function(e,t){var n,r=0,a=e.length,i=-1,o=a;if(1===arguments.length)for(;++i<a;)y(n=m(e[i]))?r+=n:--o;else for(;++i<a;)y(n=m(t.call(e,e[i],i)))?r+=n:--o;if(o)return r/o},i.quantile=function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),a=+e[r-1],i=n-r;return i?a+i*(e[r]-a):a},i.median=function(e,t){var n,r=[],a=e.length,o=-1;if(1===arguments.length)for(;++o<a;)y(n=m(e[o]))&&r.push(n);else for(;++o<a;)y(n=m(t.call(e,e[o],o)))&&r.push(n);if(r.length)return i.quantile(r.sort(v),.5)},i.variance=function(e,t){var n,r,a=e.length,i=0,o=0,l=-1,s=0;if(1===arguments.length)for(;++l<a;)y(n=m(e[l]))&&(o+=(r=n-i)*(n-(i+=r/++s)));else for(;++l<a;)y(n=m(t.call(e,e[l],l)))&&(o+=(r=n-i)*(n-(i+=r/++s)));if(s>1)return o/(s-1)},i.deviation=function(){var e=i.variance.apply(this,arguments);return e?Math.sqrt(e):e};var b=x(v);function w(e){return e.length}i.bisectLeft=b.left,i.bisect=i.bisectRight=b.right,i.bisector=function(e){return x(1===e.length?function(t,n){return v(e(t),n)}:e)},i.shuffle=function(e,t,n){(i=arguments.length)<3&&(n=e.length,i<2&&(t=0));for(var r,a,i=n-t;i;)a=Math.random()*i--|0,r=e[i+t],e[i+t]=e[a+t],e[a+t]=r;return e},i.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},i.pairs=function(e){for(var t=0,n=e.length-1,r=e[0],a=new Array(n<0?0:n);t<n;)a[t]=[r,r=e[++t]];return a},i.transpose=function(e){if(!(a=e.length))return[];for(var t=-1,n=i.min(e,w),r=new Array(n);++t<n;)for(var a,o=-1,l=r[t]=new Array(a);++o<a;)l[o]=e[o][t];return r},i.zip=function(){return i.transpose(arguments)},i.keys=function(e){var t=[];for(var n in e)t.push(n);return t},i.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},i.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},i.merge=function(e){for(var t,n,r,a=e.length,i=-1,o=0;++i<a;)o+=e[i].length;for(n=new Array(o);--a>=0;)for(t=(r=e[a]).length;--t>=0;)n[--o]=r[t];return n};var _=Math.abs;function k(e){for(var t=1;e*t%1;)t*=10;return t}function T(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function M(){this._=Object.create(null)}i.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n==1/0)throw new Error("infinite range");var r,a=[],i=k(_(n)),o=-1;if(e*=i,t*=i,(n*=i)<0)for(;(r=e+n*++o)>t;)a.push(r/i);else for(;(r=e+n*++o)<t;)a.push(r/i);return a},i.map=function(e,t){var n=new M;if(e instanceof M)e.forEach((function(e,t){n.set(e,t)}));else if(Array.isArray(e)){var r,a=-1,i=e.length;if(1===arguments.length)for(;++a<i;)n.set(a,e[a]);else for(;++a<i;)n.set(t.call(e,r=e[a],a),r)}else for(var o in e)n.set(o,e[o]);return n};function A(e){return"__proto__"==(e+="")||"\0"===e[0]?"\0"+e:e}function S(e){return"\0"===(e+="")[0]?e.slice(1):e}function C(e){return A(e)in this._}function L(e){return(e=A(e))in this._&&delete this._[e]}function I(){var e=[];for(var t in this._)e.push(S(t));return e}function E(){var e=0;for(var t in this._)++e;return e}function O(){for(var e in this._)return!1;return!0}function D(){this._=Object.create(null)}function P(e){return e}function z(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function N(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=j.length;n<r;++n){var a=j[n]+t;if(a in e)return a}}T(M,{has:C,get:function(e){return this._[A(e)]},set:function(e,t){return this._[A(e)]=t},remove:L,keys:I,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:S(t),value:this._[t]});return e},size:E,empty:O,forEach:function(e){for(var t in this._)e.call(this,S(t),this._[t])}}),i.nest=function(){var e,t,n={},r=[],a=[];function o(a,i,l){if(l>=r.length)return t?t.call(n,i):e?i.sort(e):i;for(var s,c,u,d,h=-1,f=i.length,p=r[l++],g=new M;++h<f;)(d=g.get(s=p(c=i[h])))?d.push(c):g.set(s,[c]);return a?(c=a(),u=function(e,t){c.set(e,o(a,t,l))}):(c={},u=function(e,t){c[e]=o(a,t,l)}),g.forEach(u),c}return n.map=function(e,t){return o(t,e,0)},n.entries=function(e){return function e(t,n){if(n>=r.length)return t;var i=[],o=a[n++];return t.forEach((function(t,r){i.push({key:t,values:e(r,n)})})),o?i.sort((function(e,t){return o(e.key,t.key)})):i}(o(i.map,e,0),0)},n.key=function(e){return r.push(e),n},n.sortKeys=function(e){return a[r.length-1]=e,n},n.sortValues=function(t){return e=t,n},n.rollup=function(e){return t=e,n},n},i.set=function(e){var t=new D;if(e)for(var n=0,r=e.length;n<r;++n)t.add(e[n]);return t},T(D,{has:C,add:function(e){return this._[A(e+="")]=!0,e},remove:L,values:I,size:E,empty:O,forEach:function(e){for(var t in this._)e.call(this,S(t))}}),i.behavior={},i.rebind=function(e,t){for(var n,r=1,a=arguments.length;++r<a;)e[n=arguments[r]]=z(e,t,t[n]);return e};var j=["webkit","ms","moz","Moz","o","O"];function R(){}function F(){}function B(e){var t=[],n=new M;function r(){for(var n,r=t,a=-1,i=r.length;++a<i;)(n=r[a].on)&&n.apply(this,arguments);return e}return r.on=function(r,a){var i,o=n.get(r);return arguments.length<2?o&&o.on:(o&&(o.on=null,t=t.slice(0,i=t.indexOf(o)).concat(t.slice(i+1)),n.remove(r)),a&&t.push(n.set(r,{on:a})),e)},r}function H(){i.event.preventDefault()}function V(){for(var e,t=i.event;e=t.sourceEvent;)t=e;return t}function G(e){for(var t=new F,n=0,r=arguments.length;++n<r;)t[arguments[n]]=B(t);return t.of=function(n,r){return function(a){try{var o=a.sourceEvent=i.event;a.target=e,i.event=a,t[a.type].apply(n,r)}finally{i.event=o}}},t}i.dispatch=function(){for(var e=new F,t=-1,n=arguments.length;++t<n;)e[arguments[t]]=B(e);return e},F.prototype.on=function(e,t){var n=e.indexOf("."),r="";if(n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},i.event=null,i.requote=function(e){return e.replace(U,"\\$&")};var U=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,q={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function Z(e){return q(e,$),e}var W=function(e,t){return t.querySelector(e)},Y=function(e,t){return t.querySelectorAll(e)},X=function(e,t){var n=e.matches||e[N(e,"matchesSelector")];return(X=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(W=function(e,t){return Sizzle(e,t)[0]||null},Y=Sizzle,X=Sizzle.matchesSelector),i.selection=function(){return i.select(s.documentElement)};var $=i.selection.prototype=[];function J(e){return"function"==typeof e?e:function(){return W(e,this)}}function K(e){return"function"==typeof e?e:function(){return Y(e,this)}}$.select=function(e){var t,n,r,a,i=[];e=J(e);for(var o=-1,l=this.length;++o<l;){i.push(t=[]),t.parentNode=(r=this[o]).parentNode;for(var s=-1,c=r.length;++s<c;)(a=r[s])?(t.push(n=e.call(a,a.__data__,s,o)),n&&"__data__"in a&&(n.__data__=a.__data__)):t.push(null)}return Z(i)},$.selectAll=function(e){var t,n,r=[];e=K(e);for(var a=-1,i=this.length;++a<i;)for(var o=this[a],s=-1,c=o.length;++s<c;)(n=o[s])&&(r.push(t=l(e.call(n,n.__data__,s,a))),t.parentNode=n);return Z(r)};var Q="http://www.w3.org/1999/xhtml",ee={svg:"http://www.w3.org/2000/svg",xhtml:Q,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function te(e,t){return e=i.ns.qualify(e),null==t?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:"function"==typeof t?e.local?function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}:function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}:e.local?function(){this.setAttributeNS(e.space,e.local,t)}:function(){this.setAttribute(e,t)}}function ne(e){return e.trim().replace(/\s+/g," ")}function re(e){return new RegExp("(?:^|\\s+)"+i.requote(e)+"(?:\\s+|$)","g")}function ae(e){return(e+"").trim().split(/^|\s+/)}function ie(e,t){var n=(e=ae(e).map(oe)).length;return"function"==typeof t?function(){for(var r=-1,a=t.apply(this,arguments);++r<n;)e[r](this,a)}:function(){for(var r=-1;++r<n;)e[r](this,t)}}function oe(e){var t=re(e);return function(n,r){if(a=n.classList)return r?a.add(e):a.remove(e);var a=n.getAttribute("class")||"";r?(t.lastIndex=0,t.test(a)||n.setAttribute("class",ne(a+" "+e))):n.setAttribute("class",ne(a.replace(t," ")))}}function le(e,t,n){return null==t?function(){this.style.removeProperty(e)}:"function"==typeof t?function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}:function(){this.style.setProperty(e,t,n)}}function se(e,t){return null==t?function(){delete this[e]}:"function"==typeof t?function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}:function(){this[e]=t}}function ce(e){return"function"==typeof e?e:(e=i.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Q&&t.documentElement.namespaceURI===Q?t.createElement(e):t.createElementNS(n,e)}}function ue(){var e=this.parentNode;e&&e.removeChild(this)}function de(e){return{__data__:e}}function he(e){return function(){return X(this,e)}}function fe(e){return arguments.length||(e=v),function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}function pe(e,t){for(var n=0,r=e.length;n<r;n++)for(var a,i=e[n],o=0,l=i.length;o<l;o++)(a=i[o])&&t(a,o,n);return e}function ge(e){return q(e,ve),e}i.ns={prefix:ee,qualify:function(e){var t=e.indexOf(":"),n=e;return t>=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),ee.hasOwnProperty(n)?{space:ee[n],local:e}:e}},$.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return(e=i.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(te(t,e[t]));return this}return this.each(te(e,t))},$.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=ae(e)).length,a=-1;if(t=n.classList){for(;++a<r;)if(!t.contains(e[a]))return!1}else for(t=n.getAttribute("class");++a<r;)if(!re(e[a]).test(t))return!1;return!0}for(t in e)this.each(ie(t,e[t]));return this}return this.each(ie(e,t))},$.style=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){for(n in r<2&&(t=""),e)this.each(le(n,e[n],t));return this}if(r<2){var a=this.node();return u(a).getComputedStyle(a,null).getPropertyValue(e)}n=""}return this.each(le(e,t,n))},$.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(se(t,e[t]));return this}return this.each(se(e,t))},$.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},$.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},$.append=function(e){return e=ce(e),this.select((function(){return this.appendChild(e.apply(this,arguments))}))},$.insert=function(e,t){return e=ce(e),t=J(t),this.select((function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)}))},$.remove=function(){return this.each(ue)},$.data=function(e,t){var n,r,a=-1,i=this.length;if(!arguments.length){for(e=new Array(i=(n=this[0]).length);++a<i;)(r=n[a])&&(e[a]=r.__data__);return e}function o(e,n){var r,a,i,o=e.length,u=n.length,d=Math.min(o,u),h=new Array(u),f=new Array(u),p=new Array(o);if(t){var g,v=new M,m=new Array(o);for(r=-1;++r<o;)(a=e[r])&&(v.has(g=t.call(a,a.__data__,r))?p[r]=a:v.set(g,a),m[r]=g);for(r=-1;++r<u;)(a=v.get(g=t.call(n,i=n[r],r)))?!0!==a&&(h[r]=a,a.__data__=i):f[r]=de(i),v.set(g,!0);for(r=-1;++r<o;)r in m&&!0!==v.get(m[r])&&(p[r]=e[r])}else{for(r=-1;++r<d;)a=e[r],i=n[r],a?(a.__data__=i,h[r]=a):f[r]=de(i);for(;r<u;++r)f[r]=de(n[r]);for(;r<o;++r)p[r]=e[r]}f.update=h,f.parentNode=h.parentNode=p.parentNode=e.parentNode,l.push(f),s.push(h),c.push(p)}var l=ge([]),s=Z([]),c=Z([]);if("function"==typeof e)for(;++a<i;)o(n=this[a],e.call(n,n.parentNode.__data__,a));else for(;++a<i;)o(n=this[a],e);return s.enter=function(){return l},s.exit=function(){return c},s},$.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},$.filter=function(e){var t,n,r,a=[];"function"!=typeof e&&(e=he(e));for(var i=0,o=this.length;i<o;i++){a.push(t=[]),t.parentNode=(n=this[i]).parentNode;for(var l=0,s=n.length;l<s;l++)(r=n[l])&&e.call(r,r.__data__,l,i)&&t.push(r)}return Z(a)},$.order=function(){for(var e=-1,t=this.length;++e<t;)for(var n,r=this[e],a=r.length-1,i=r[a];--a>=0;)(n=r[a])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this},$.sort=function(e){e=fe.apply(this,arguments);for(var t=-1,n=this.length;++t<n;)this[t].sort(e);return this.order()},$.each=function(e){return pe(this,(function(t,n,r){e.call(t,t.__data__,n,r)}))},$.call=function(e){var t=l(arguments);return e.apply(t[0]=this,t),this},$.empty=function(){return!this.node()},$.node=function(){for(var e=0,t=this.length;e<t;e++)for(var n=this[e],r=0,a=n.length;r<a;r++){var i=n[r];if(i)return i}return null},$.size=function(){var e=0;return pe(this,(function(){++e})),e};var ve=[];function me(e){var t,n;return function(r,a,i){var o,l=e[i].update,s=l.length;for(i!=n&&(n=i,t=0),a>=t&&(t=a+1);!(o=l[t])&&++t<s;);return o}}function ye(e,t,n){var r="__on"+e,a=e.indexOf("."),o=be;a>0&&(e=e.slice(0,a));var s=xe.get(e);function c(){var t=this[r];t&&(this.removeEventListener(e,t,t.$),delete this[r])}return s&&(e=s,o=we),a?t?function(){var a=o(t,l(arguments));c.call(this),this.addEventListener(e,this[r]=a,a.$=n),a._=t}:c:t?R:function(){var t,n=new RegExp("^__on([^.]+)"+i.requote(e)+"$");for(var r in this)if(t=r.match(n)){var a=this[r];this.removeEventListener(t[1],a,a.$),delete this[r]}}}i.selection.enter=ge,i.selection.enter.prototype=ve,ve.append=$.append,ve.empty=$.empty,ve.node=$.node,ve.call=$.call,ve.size=$.size,ve.select=function(e){for(var t,n,r,a,i,o=[],l=-1,s=this.length;++l<s;){r=(a=this[l]).update,o.push(t=[]),t.parentNode=a.parentNode;for(var c=-1,u=a.length;++c<u;)(i=a[c])?(t.push(r[c]=n=e.call(a.parentNode,i.__data__,c,l)),n.__data__=i.__data__):t.push(null)}return Z(o)},ve.insert=function(e,t){return arguments.length<2&&(t=me(this)),$.insert.call(this,e,t)},i.select=function(e){var t;return"string"==typeof e?(t=[W(e,s)]).parentNode=s.documentElement:(t=[e]).parentNode=c(e),Z([t])},i.selectAll=function(e){var t;return"string"==typeof e?(t=l(Y(e,s))).parentNode=s.documentElement:(t=l(e)).parentNode=null,Z([t])},$.on=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){for(n in r<2&&(t=!1),e)this.each(ye(n,e[n],t));return this}if(r<2)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each(ye(e,t,n))};var xe=i.map({mouseenter:"mouseover",mouseleave:"mouseout"});function be(e,t){return function(n){var r=i.event;i.event=n,t[0]=this.__data__;try{e.apply(this,t)}finally{i.event=r}}}function we(e,t){var n=be(e,t);return function(e){var t=e.relatedTarget;t&&(t===this||8&t.compareDocumentPosition(this))||n.call(this,e)}}s&&xe.forEach((function(e){"on"+e in s&&xe.remove(e)}));var _e,ke=0;function Te(e){var t=".dragsuppress-"+ ++ke,n="click"+t,r=i.select(u(e)).on("touchmove"+t,H).on("dragstart"+t,H).on("selectstart"+t,H);if(null==_e&&(_e=!("onselectstart"in e)&&N(e.style,"userSelect")),_e){var a=c(e).style,o=a[_e];a[_e]="none"}return function(e){if(r.on(t,null),_e&&(a[_e]=o),e){var i=function(){r.on(n,null)};r.on(n,(function(){H(),i()}),!0),setTimeout(i,0)}}}i.mouse=function(e){return Ae(e,V())};var Me=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ae(e,t){t.changedTouches&&(t=t.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();if(Me<0){var a=u(e);if(a.scrollX||a.scrollY){var o=(n=i.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();Me=!(o.f||o.e),n.remove()}}return Me?(r.x=t.pageX,r.y=t.pageY):(r.x=t.clientX,r.y=t.clientY),[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var l=e.getBoundingClientRect();return[t.clientX-l.left-e.clientLeft,t.clientY-l.top-e.clientTop]}function Se(){return i.event.changedTouches[0].identifier}i.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=V().changedTouches),t)for(var r,a=0,i=t.length;a<i;++a)if((r=t[a]).identifier===n)return Ae(e,r)},i.behavior.drag=function(){var e=G(a,"drag","dragstart","dragend"),t=null,n=o(R,i.mouse,u,"mousemove","mouseup"),r=o(Se,i.touch,P,"touchmove","touchend");function a(){this.on("mousedown.drag",n).on("touchstart.drag",r)}function o(n,r,a,o,l){return function(){var s,c=this,u=i.event.target.correspondingElement||i.event.target,d=c.parentNode,h=e.of(c,arguments),f=0,p=n(),g=".drag"+(null==p?"":"-"+p),v=i.select(a(u)).on(o+g,x).on(l+g,b),m=Te(u),y=r(d,p);function x(){var e,t,n=r(d,p);n&&(e=n[0]-y[0],t=n[1]-y[1],f|=e|t,y=n,h({type:"drag",x:n[0]+s[0],y:n[1]+s[1],dx:e,dy:t}))}function b(){r(d,p)&&(v.on(o+g,null).on(l+g,null),m(f),h({type:"dragend"}))}s=t?[(s=t.apply(c,arguments)).x-y[0],s.y-y[1]]:[0,0],h({type:"dragstart"})}}return a.origin=function(e){return arguments.length?(t=e,a):t},i.rebind(a,e,"on")},i.touches=function(e,t){return arguments.length<2&&(t=V().touches),t?l(t).map((function(t){var n=Ae(e,t);return n.identifier=t.identifier,n})):[]};var Ce=1e-6,Le=1e-12,Ie=Math.PI,Ee=2*Ie,Oe=Ee-Ce,De=Ie/2,Pe=Ie/180,ze=180/Ie;function Ne(e){return e>0?1:e<0?-1:0}function je(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Re(e){return e>1?0:e<-1?Ie:Math.acos(e)}function Fe(e){return e>1?De:e<-1?-De:Math.asin(e)}function Be(e){return((e=Math.exp(e))+1/e)/2}function He(e){return(e=Math.sin(e/2))*e}var Ve=Math.SQRT2;i.interpolateZoom=function(e,t){var n,r,a=e[0],i=e[1],o=e[2],l=t[0],s=t[1],c=t[2],u=l-a,d=s-i,h=u*u+d*d;if(h<Le)r=Math.log(c/o)/Ve,n=function(e){return[a+e*u,i+e*d,o*Math.exp(Ve*e*r)]};else{var f=Math.sqrt(h),p=(c*c-o*o+4*h)/(2*o*2*f),g=(c*c-o*o-4*h)/(2*c*2*f),v=Math.log(Math.sqrt(p*p+1)-p),m=Math.log(Math.sqrt(g*g+1)-g);r=(m-v)/Ve,n=function(e){var t,n=e*r,l=Be(v),s=o/(2*f)*(l*(t=Ve*n+v,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(v));return[a+s*u,i+s*d,o*l/Be(Ve*n+v)]}}return n.duration=1e3*r,n},i.behavior.zoom=function(){var e,t,n,r,a,o,l,c,d,h={x:0,y:0,k:1},f=[960,500],p=qe,g=250,v=0,m="mousedown.zoom",y="mousemove.zoom",x="mouseup.zoom",b="touchstart.zoom",w=G(_,"zoomstart","zoom","zoomend");function _(e){e.on(m,E).on(Ue+".zoom",D).on("dblclick.zoom",P).on(b,O)}function k(e){return[(e[0]-h.x)/h.k,(e[1]-h.y)/h.k]}function T(e){h.k=Math.max(p[0],Math.min(p[1],e))}function M(e,t){t=function(e){return[e[0]*h.k+h.x,e[1]*h.k+h.y]}(t),h.x+=e[0]-t[0],h.y+=e[1]-t[1]}function A(e,n,r,a){e.__chart__={x:h.x,y:h.y,k:h.k},T(Math.pow(2,a)),M(t=n,r),e=i.select(e),g>0&&(e=e.transition().duration(g)),e.call(_.event)}function S(){l&&l.domain(o.range().map((function(e){return(e-h.x)/h.k})).map(o.invert)),d&&d.domain(c.range().map((function(e){return(e-h.y)/h.k})).map(c.invert))}function C(e){v++||e({type:"zoomstart"})}function L(e){S(),e({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function I(e){--v||(e({type:"zoomend"}),t=null)}function E(){var e=this,t=w.of(e,arguments),n=0,r=i.select(u(e)).on(y,l).on(x,s),a=k(i.mouse(e)),o=Te(e);function l(){n=1,M(i.mouse(e),a),L(t)}function s(){r.on(y,null).on(x,null),o(n),I(t)}wl.call(e),C(t)}function O(){var e,t=this,n=w.of(t,arguments),r={},o=0,l=".zoom-"+i.event.changedTouches[0].identifier,s="touchmove"+l,c="touchend"+l,u=[],d=i.select(t),f=Te(t);function p(){var n=i.touches(t);return e=h.k,n.forEach((function(e){e.identifier in r&&(r[e.identifier]=k(e))})),n}function g(){var e=i.event.target;i.select(e).on(s,v).on(c,y),u.push(e);for(var n=i.event.changedTouches,l=0,d=n.length;l<d;++l)r[n[l].identifier]=null;var f=p(),g=Date.now();if(1===f.length){if(g-a<500){var m=f[0];A(t,m,r[m.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),H()}a=g}else if(f.length>1){m=f[0];var x=f[1],b=m[0]-x[0],w=m[1]-x[1];o=b*b+w*w}}function v(){var l,s,c,u,d=i.touches(t);wl.call(t);for(var h=0,f=d.length;h<f;++h,u=null)if(c=d[h],u=r[c.identifier]){if(s)break;l=c,s=u}if(u){var p=(p=c[0]-l[0])*p+(p=c[1]-l[1])*p,g=o&&Math.sqrt(p/o);l=[(l[0]+c[0])/2,(l[1]+c[1])/2],s=[(s[0]+u[0])/2,(s[1]+u[1])/2],T(g*e)}a=null,M(l,s),L(n)}function y(){if(i.event.touches.length){for(var e=i.event.changedTouches,t=0,a=e.length;t<a;++t)delete r[e[t].identifier];for(var o in r)return void p()}i.selectAll(u).on(l,null),d.on(m,E).on(b,O),f(),I(n)}g(),C(n),d.on(m,null).on(b,g)}function D(){var a=w.of(this,arguments);r?clearTimeout(r):(wl.call(this),e=k(t=n||i.mouse(this)),C(a)),r=setTimeout((function(){r=null,I(a)}),50),H(),T(Math.pow(2,.002*Ge())*h.k),M(t,e),L(a)}function P(){var e=i.mouse(this),t=Math.log(h.k)/Math.LN2;A(this,e,k(e),i.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}return Ue||(Ue="onwheel"in s?(Ge=function(){return-i.event.deltaY*(i.event.deltaMode?120:1)},"wheel"):"onmousewheel"in s?(Ge=function(){return i.event.wheelDelta},"mousewheel"):(Ge=function(){return-i.event.detail},"MozMousePixelScroll")),_.event=function(e){e.each((function(){var e=w.of(this,arguments),n=h;Tl?i.select(this).transition().each("start.zoom",(function(){h=this.__chart__||{x:0,y:0,k:1},C(e)})).tween("zoom:zoom",(function(){var r=f[0],a=f[1],o=t?t[0]:r/2,l=t?t[1]:a/2,s=i.interpolateZoom([(o-h.x)/h.k,(l-h.y)/h.k,r/h.k],[(o-n.x)/n.k,(l-n.y)/n.k,r/n.k]);return function(t){var n=s(t),a=r/n[2];this.__chart__=h={x:o-n[0]*a,y:l-n[1]*a,k:a},L(e)}})).each("interrupt.zoom",(function(){I(e)})).each("end.zoom",(function(){I(e)})):(this.__chart__=h,C(e),L(e),I(e))}))},_.translate=function(e){return arguments.length?(h={x:+e[0],y:+e[1],k:h.k},S(),_):[h.x,h.y]},_.scale=function(e){return arguments.length?(h={x:h.x,y:h.y,k:null},T(+e),S(),_):h.k},_.scaleExtent=function(e){return arguments.length?(p=null==e?qe:[+e[0],+e[1]],_):p},_.center=function(e){return arguments.length?(n=e&&[+e[0],+e[1]],_):n},_.size=function(e){return arguments.length?(f=e&&[+e[0],+e[1]],_):f},_.duration=function(e){return arguments.length?(g=+e,_):g},_.x=function(e){return arguments.length?(l=e,o=e.copy(),h={x:0,y:0,k:1},_):l},_.y=function(e){return arguments.length?(d=e,c=e.copy(),h={x:0,y:0,k:1},_):d},i.rebind(_,w,"on")};var Ge,Ue,qe=[0,1/0];function Ze(){}function We(e,t,n){return this instanceof We?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof We?new We(e.h,e.s,e.l):ht(""+e,ft,We):new We(e,t,n)}i.color=Ze,Ze.prototype.toString=function(){return this.rgb()+""},i.hsl=We;var Ye=We.prototype=new Ze;function Xe(e,t,n){var r,a;function i(e){return Math.round(255*function(e){return e>360?e-=360:e<0&&(e+=360),e<60?r+(a-r)*e/60:e<180?a:e<240?r+(a-r)*(240-e)/60:r}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,r=2*(n=n<0?0:n>1?1:n)-(a=n<=.5?n*(1+t):n+t-n*t),new lt(i(e+120),i(e),i(e-120))}function $e(e,t,n){return this instanceof $e?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof $e?new $e(e.h,e.c,e.l):rt(e instanceof Qe?e.l:(e=pt((e=i.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new $e(e,t,n)}Ye.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new We(this.h,this.s,this.l/e)},Ye.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new We(this.h,this.s,e*this.l)},Ye.rgb=function(){return Xe(this.h,this.s,this.l)},i.hcl=$e;var Je=$e.prototype=new Ze;function Ke(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Qe(n,Math.cos(e*=Pe)*t,Math.sin(e)*t)}function Qe(e,t,n){return this instanceof Qe?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof Qe?new Qe(e.l,e.a,e.b):e instanceof $e?Ke(e.h,e.c,e.l):pt((e=lt(e)).r,e.g,e.b):new Qe(e,t,n)}Je.brighter=function(e){return new $e(this.h,this.c,Math.min(100,this.l+et*(arguments.length?e:1)))},Je.darker=function(e){return new $e(this.h,this.c,Math.max(0,this.l-et*(arguments.length?e:1)))},Je.rgb=function(){return Ke(this.h,this.c,this.l).rgb()},i.lab=Qe;var et=18,tt=Qe.prototype=new Ze;function nt(e,t,n){var r=(e+16)/116,a=r+t/500,i=r-n/200;return new lt(ot(3.2404542*(a=.95047*at(a))-1.5371385*(r=1*at(r))-.4985314*(i=1.08883*at(i))),ot(-.969266*a+1.8760108*r+.041556*i),ot(.0556434*a-.2040259*r+1.0572252*i))}function rt(e,t,n){return e>0?new $e(Math.atan2(n,t)*ze,Math.sqrt(t*t+n*n),e):new $e(NaN,NaN,e)}function at(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function it(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function ot(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function lt(e,t,n){return this instanceof lt?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof lt?new lt(e.r,e.g,e.b):ht(""+e,lt,Xe):new lt(e,t,n)}function st(e){return new lt(e>>16,e>>8&255,255&e)}function ct(e){return st(e)+""}tt.brighter=function(e){return new Qe(Math.min(100,this.l+et*(arguments.length?e:1)),this.a,this.b)},tt.darker=function(e){return new Qe(Math.max(0,this.l-et*(arguments.length?e:1)),this.a,this.b)},tt.rgb=function(){return nt(this.l,this.a,this.b)},i.rgb=lt;var ut=lt.prototype=new Ze;function dt(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function ht(e,t,n){var r,a,i,o=0,l=0,s=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(a=r[2].split(","),r[1]){case"hsl":return n(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return t(vt(a[0]),vt(a[1]),vt(a[2]))}return(i=mt.get(e))?t(i.r,i.g,i.b):(null==e||"#"!==e.charAt(0)||isNaN(i=parseInt(e.slice(1),16))||(4===e.length?(o=(3840&i)>>4,o|=o>>4,l=240&i,l|=l>>4,s=15&i,s|=s<<4):7===e.length&&(o=(16711680&i)>>16,l=(65280&i)>>8,s=255&i)),t(o,l,s))}function ft(e,t,n){var r,a,i=Math.min(e/=255,t/=255,n/=255),o=Math.max(e,t,n),l=o-i,s=(o+i)/2;return l?(a=s<.5?l/(o+i):l/(2-o-i),r=e==o?(t-n)/l+(t<n?6:0):t==o?(n-e)/l+2:(e-t)/l+4,r*=60):(r=NaN,a=s>0&&s<1?0:r),new We(r,a,s)}function pt(e,t,n){var r=it((.4124564*(e=gt(e))+.3575761*(t=gt(t))+.1804375*(n=gt(n)))/.95047),a=it((.2126729*e+.7151522*t+.072175*n)/1);return Qe(116*a-16,500*(r-a),200*(a-it((.0193339*e+.119192*t+.9503041*n)/1.08883)))}function gt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}ut.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,a=30;return t||n||r?(t&&t<a&&(t=a),n&&n<a&&(n=a),r&&r<a&&(r=a),new lt(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new lt(a,a,a)},ut.darker=function(e){return new lt((e=Math.pow(.7,arguments.length?e:1))*this.r,e*this.g,e*this.b)},ut.hsl=function(){return ft(this.r,this.g,this.b)},ut.toString=function(){return"#"+dt(this.r)+dt(this.g)+dt(this.b)};var mt=i.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function yt(e){return"function"==typeof e?e:function(){return e}}function xt(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),bt(t,n,e,r)}}function bt(e,t,n,r){var a={},o=i.dispatch("beforesend","progress","load","error"),s={},c=new XMLHttpRequest,u=null;function d(){var e,t=c.status;if(!t&&function(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}(c)||t>=200&&t<300||304===t){try{e=n.call(a,c)}catch(e){return void o.error.call(a,e)}o.load.call(a,e)}else o.error.call(a,c)}return this.XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(e)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=d:c.onreadystatechange=function(){c.readyState>3&&d()},c.onprogress=function(e){var t=i.event;i.event=e;try{o.progress.call(a,c)}finally{i.event=t}},a.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",a)},a.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",a):t},a.responseType=function(e){return arguments.length?(u=e,a):u},a.response=function(e){return n=e,a},["get","post"].forEach((function(e){a[e]=function(){return a.send.apply(a,[e].concat(l(arguments)))}})),a.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),c.open(n,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),c.setRequestHeader)for(var l in s)c.setRequestHeader(l,s[l]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=u&&(c.responseType=u),null!=i&&a.on("error",i).on("load",(function(e){i(null,e)})),o.beforesend.call(a,c),c.send(null==r?null:r),a},a.abort=function(){return c.abort(),a},i.rebind(a,o,"on"),null==r?a:a.get(function(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}(r))}mt.forEach((function(e,t){mt.set(e,st(t))})),i.functor=yt,i.xhr=xt(P),i.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function a(e,n,r){arguments.length<3&&(r=n,n=null);var a=bt(e,t,null==n?i:o(n),r);return a.row=function(e){return arguments.length?a.response(null==(n=e)?i:o(e)):n},a}function i(e){return a.parse(e.responseText)}function o(e){return function(t){return a.parse(t.responseText,e)}}function l(t){return t.map(s).join(e)}function s(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return a.parse=function(e,t){var n;return a.parseRows(e,(function(e,r){if(n)return n(e,r-1);var a=new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+"]"})).join(",")+"}");n=t?function(e,n){return t(a(e),n)}:a}))},a.parseRows=function(e,t){var n,a,i={},o={},l=[],s=e.length,c=0,u=0;function d(){if(c>=s)return o;if(a)return a=!1,i;var t=c;if(34===e.charCodeAt(t)){for(var n=t;n++<s;)if(34===e.charCodeAt(n)){if(34!==e.charCodeAt(n+1))break;++n}return c=n+2,13===(l=e.charCodeAt(n+1))?(a=!0,10===e.charCodeAt(n+2)&&++c):10===l&&(a=!0),e.slice(t+1,n).replace(/""/g,'"')}for(;c<s;){var l,u=1;if(10===(l=e.charCodeAt(c++)))a=!0;else if(13===l)a=!0,10===e.charCodeAt(c)&&(++c,++u);else if(l!==r)continue;return e.slice(t,c-u)}return e.slice(t)}for(;(n=d())!==o;){for(var h=[];n!==i&&n!==o;)h.push(n),n=d();t&&null==(h=t(h,u++))||l.push(h)}return l},a.format=function(t){if(Array.isArray(t[0]))return a.formatRows(t);var n=new D,r=[];return t.forEach((function(e){for(var t in e)n.has(t)||r.push(n.add(t))})),[r.map(s).join(e)].concat(t.map((function(t){return r.map((function(e){return s(t[e])})).join(e)}))).join("\n")},a.formatRows=function(e){return e.map(l).join("\n")},a},i.csv=i.dsv(",","text/csv"),i.tsv=i.dsv("\t","text/tab-separated-values");var wt,_t,kt,Tt,Mt=this[N(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};function At(e,t,n){var r=arguments.length;r<2&&(t=0),r<3&&(n=Date.now());var a=n+t,i={c:e,t:a,n:null};return _t?_t.n=i:wt=i,_t=i,kt||(Tt=clearTimeout(Tt),kt=1,Mt(St)),i}function St(){var e=Ct(),t=Lt()-e;t>24?(isFinite(t)&&(clearTimeout(Tt),Tt=setTimeout(St,t)),kt=0):(kt=1,Mt(St))}function Ct(){for(var e=Date.now(),t=wt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Lt(){for(var e,t=wt,n=1/0;t;)t.c?(t.t<n&&(n=t.t),t=(e=t).n):t=e?e.n=t.n:wt=t.n;return _t=e,n}function It(e,t){return t-(e?Math.ceil(Math.log(e)/Math.LN10):1)}i.timer=function(){At.apply(this,arguments)},i.timer.flush=function(){Ct(),Lt()},i.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var Et=["y","z","a","f","p","n","ยต","m","","k","M","G","T","P","E","Z","Y"].map((function(e,t){var n=Math.pow(10,3*_(8-t));return{scale:t>8?function(e){return e/n}:function(e){return e*n},symbol:e}}));function Ot(e){var t=e.decimal,n=e.thousands,r=e.grouping,a=e.currency,o=r&&n?function(e,t){for(var a=e.length,i=[],o=0,l=r[0],s=0;a>0&&l>0&&(s+l+1>t&&(l=Math.max(1,t-s)),i.push(e.substring(a-=l,a+l)),!((s+=l+1)>t));)l=r[o=(o+1)%r.length];return i.reverse().join(n)}:P;return function(e){var n=Dt.exec(e),r=n[1]||" ",l=n[2]||">",s=n[3]||"-",c=n[4]||"",u=n[5],d=+n[6],h=n[7],f=n[8],p=n[9],g=1,v="",m="",y=!1,x=!0;switch(f&&(f=+f.substring(1)),(u||"0"===r&&"="===l)&&(u=r="0",l="="),p){case"n":h=!0,p="g";break;case"%":g=100,m="%",p="f";break;case"p":g=100,m="%",p="r";break;case"b":case"o":case"x":case"X":"#"===c&&(v="0"+p.toLowerCase());case"c":x=!1;case"d":y=!0,f=0;break;case"s":g=-1,p="r"}"$"===c&&(v=a[0],m=a[1]),"r"!=p||f||(p="g"),null!=f&&("g"==p?f=Math.max(1,Math.min(21,f)):"e"!=p&&"f"!=p||(f=Math.max(0,Math.min(20,f)))),p=Pt.get(p)||zt;var b=u&&h;return function(e){var n=m;if(y&&e%1)return"";var a=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===s?"":s;if(g<0){var c=i.formatPrefix(e,f);e=c.scale(e),n=c.symbol+m}else e*=g;var w,_,k=(e=p(e,f)).lastIndexOf(".");if(k<0){var T=x?e.lastIndexOf("e"):-1;T<0?(w=e,_=""):(w=e.substring(0,T),_=e.substring(T))}else w=e.substring(0,k),_=t+e.substring(k+1);!u&&h&&(w=o(w,1/0));var M=v.length+w.length+_.length+(b?0:a.length),A=M<d?new Array(M=d-M+1).join(r):"";return b&&(w=o(A+w,A.length?d-_.length:1/0)),a+=v,e=w+_,("<"===l?a+e+A:">"===l?A+a+e:"^"===l?A.substring(0,M>>=1)+a+e+A.substring(M):a+(b?e:A+e))+n}}}i.formatPrefix=function(e,t){var n=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=i.round(e,It(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Et[8+n/3]};var Dt=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Pt=i.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=i.round(e,It(e,t))).toFixed(Math.max(0,Math.min(20,It(e*(1+1e-15),t))))}});function zt(e){return e+""}var Nt=i.time={},jt=Date;function Rt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Rt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Ft.setUTCDate.apply(this._,arguments)},setDay:function(){Ft.setUTCDay.apply(this._,arguments)},setFullYear:function(){Ft.setUTCFullYear.apply(this._,arguments)},setHours:function(){Ft.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Ft.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Ft.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Ft.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Ft.setUTCSeconds.apply(this._,arguments)},setTime:function(){Ft.setTime.apply(this._,arguments)}};var Ft=Date.prototype;function Bt(e,t,n){function r(t){var n=e(t),r=i(n,1);return t-n<r-t?n:r}function a(n){return t(n=e(new jt(n-1)),1),n}function i(e,n){return t(e=new jt(+e),n),e}function o(e,r,i){var o=a(e),l=[];if(i>1)for(;o<r;)n(o)%i||l.push(new Date(+o)),t(o,1);else for(;o<r;)l.push(new Date(+o)),t(o,1);return l}e.floor=e,e.round=r,e.ceil=a,e.offset=i,e.range=o;var l=e.utc=Ht(e);return l.floor=l,l.round=Ht(r),l.ceil=Ht(a),l.offset=Ht(i),l.range=function(e,t,n){try{jt=Rt;var r=new Rt;return r._=e,o(r,t,n)}finally{jt=Date}},e}function Ht(e){return function(t,n){try{jt=Rt;var r=new Rt;return r._=t,e(r,n)._}finally{jt=Date}}}function Vt(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,l=e.shortDays,s=e.months,c=e.shortMonths;function u(e){var t=e.length;function n(n){for(var r,a,i,o=[],l=-1,s=0;++l<t;)37===e.charCodeAt(l)&&(o.push(e.slice(s,l)),null!=(a=Gt[r=e.charAt(++l)])&&(r=e.charAt(++l)),(i=w[r])&&(r=i(n,null==a?"e"===r?" ":"0":a)),o.push(r),s=l+1);return o.push(e.slice(s,l)),o.join("")}return n.parse=function(t){var n={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(d(n,e,t,0)!=t.length)return null;"p"in n&&(n.H=n.H%12+12*n.p);var r=null!=n.Z&&jt!==Rt,a=new(r?Rt:jt);return"j"in n?a.setFullYear(n.y,0,n.j):"W"in n||"U"in n?("w"in n||(n.w="W"in n?1:0),a.setFullYear(n.y,0,1),a.setFullYear(n.y,0,"W"in n?(n.w+6)%7+7*n.W-(a.getDay()+5)%7:n.w+7*n.U-(a.getDay()+6)%7)):a.setFullYear(n.y,n.m,n.d),a.setHours(n.H+(n.Z/100|0),n.M+n.Z%100,n.S,n.L),r?a._:a},n.toString=function(){return e},n}function d(e,t,n,r){for(var a,i,o,l=0,s=t.length,c=n.length;l<s;){if(r>=c)return-1;if(37===(a=t.charCodeAt(l++))){if(o=t.charAt(l++),!(i=_[o in Gt?t.charAt(l++):o])||(r=i(e,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}u.utc=function(e){var t=u(e);function n(e){try{var n=new(jt=Rt);return n._=e,t(n)}finally{jt=Date}}return n.parse=function(e){try{jt=Rt;var n=t.parse(e);return n&&n._}finally{jt=Date}},n.toString=t.toString,n},u.multi=u.utc.multi=dn;var h=i.map(),f=Wt(o),p=Yt(o),g=Wt(l),v=Yt(l),m=Wt(s),y=Yt(s),x=Wt(c),b=Yt(c);a.forEach((function(e,t){h.set(e.toLowerCase(),t)}));var w={a:function(e){return l[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:u(t),d:function(e,t){return Zt(e.getDate(),t,2)},e:function(e,t){return Zt(e.getDate(),t,2)},H:function(e,t){return Zt(e.getHours(),t,2)},I:function(e,t){return Zt(e.getHours()%12||12,t,2)},j:function(e,t){return Zt(1+Nt.dayOfYear(e),t,3)},L:function(e,t){return Zt(e.getMilliseconds(),t,3)},m:function(e,t){return Zt(e.getMonth()+1,t,2)},M:function(e,t){return Zt(e.getMinutes(),t,2)},p:function(e){return a[+(e.getHours()>=12)]},S:function(e,t){return Zt(e.getSeconds(),t,2)},U:function(e,t){return Zt(Nt.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Zt(Nt.mondayOfYear(e),t,2)},x:u(n),X:u(r),y:function(e,t){return Zt(e.getFullYear()%100,t,2)},Y:function(e,t){return Zt(e.getFullYear()%1e4,t,4)},Z:cn,"%":function(){return"%"}},_={a:function(e,t,n){g.lastIndex=0;var r=g.exec(t.slice(n));return r?(e.w=v.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){f.lastIndex=0;var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){x.lastIndex=0;var r=x.exec(t.slice(n));return r?(e.m=b.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){m.lastIndex=0;var r=m.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,t,n){return d(e,w.c.toString(),t,n)},d:nn,e:nn,H:an,I:an,j:rn,L:sn,m:tn,M:on,p:function(e,t,n){var r=h.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)},S:ln,U:$t,w:Xt,W:Jt,x:function(e,t,n){return d(e,w.x.toString(),t,n)},X:function(e,t,n){return d(e,w.X.toString(),t,n)},y:Qt,Y:Kt,Z:en,"%":un};return u}Nt.year=Bt((function(e){return(e=Nt.day(e)).setMonth(0,1),e}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e){return e.getFullYear()})),Nt.years=Nt.year.range,Nt.years.utc=Nt.year.utc.range,Nt.day=Bt((function(e){var t=new jt(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e){return e.getDate()-1})),Nt.days=Nt.day.range,Nt.days.utc=Nt.day.utc.range,Nt.dayOfYear=function(e){var t=Nt.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(e,t){t=7-t;var n=Nt[e]=Bt((function(e){return(e=Nt.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e}),(function(e,t){e.setDate(e.getDate()+7*Math.floor(t))}),(function(e){var n=Nt.year(e).getDay();return Math.floor((Nt.dayOfYear(e)+(n+t)%7)/7)-(n!==t)}));Nt[e+"s"]=n.range,Nt[e+"s"].utc=n.utc.range,Nt[e+"OfYear"]=function(e){var n=Nt.year(e).getDay();return Math.floor((Nt.dayOfYear(e)+(n+t)%7)/7)}})),Nt.week=Nt.sunday,Nt.weeks=Nt.sunday.range,Nt.weeks.utc=Nt.sunday.utc.range,Nt.weekOfYear=Nt.sundayOfYear;var Gt={"-":"",_:" ",0:"0"},Ut=/^\s*\d+/,qt=/^%/;function Zt(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function Wt(e){return new RegExp("^(?:"+e.map(i.requote).join("|")+")","i")}function Yt(e){for(var t=new M,n=-1,r=e.length;++n<r;)t.set(e[n].toLowerCase(),n);return t}function Xt(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function $t(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n));return r?(e.U=+r[0],n+r[0].length):-1}function Jt(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n));return r?(e.W=+r[0],n+r[0].length):-1}function Kt(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Qt(e,t,n){Ut.lastIndex=0;var r,a=Ut.exec(t.slice(n,n+2));return a?(e.y=(r=+a[0])+(r>68?1900:2e3),n+a[0].length):-1}function en(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function tn(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nn(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rn(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function an(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function on(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ln(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function sn(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function cn(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=_(t)/60|0,a=_(t)%60;return n+Zt(r,"0",2)+Zt(a,"0",2)}function un(e,t,n){qt.lastIndex=0;var r=qt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function dn(e){for(var t=e.length,n=-1;++n<t;)e[n][0]=this(e[n][0]);return function(t){for(var n=0,r=e[n];!r[1](t);)r=e[++n];return r[0](t)}}i.locale=function(e){return{numberFormat:Ot(e),timeFormat:Vt(e)}};var hn=i.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function fn(){}i.format=hn.numberFormat,i.geo={},fn.prototype={s:0,t:0,add:function(e){gn(e,this.t,pn),gn(pn.s,this.s,this),this.s?this.t+=pn.t:this.s=pn.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var pn=new fn;function gn(e,t,n){var r=n.s=e+t,a=r-e,i=r-a;n.t=e-i+(t-a)}function vn(e,t){e&&yn.hasOwnProperty(e.type)&&yn[e.type](e,t)}i.geo.stream=function(e,t){e&&mn.hasOwnProperty(e.type)?mn[e.type](e,t):vn(e,t)};var mn={Feature:function(e,t){vn(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,a=n.length;++r<a;)vn(n[r].geometry,t)}},yn={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){xn(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)xn(n[r],t,0)},Polygon:function(e,t){bn(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,a=n.length;++r<a;)bn(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,a=n.length;++r<a;)vn(n[r],t)}};function xn(e,t,n){var r,a=-1,i=e.length-n;for(t.lineStart();++a<i;)r=e[a],t.point(r[0],r[1],r[2]);t.lineEnd()}function bn(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)xn(e[n],t,1);t.polygonEnd()}i.geo.area=function(e){return wn=0,i.geo.stream(e,Pn),wn};var wn,_n,kn,Tn,Mn,An,Sn,Cn,Ln,In,En,On,Dn=new fn,Pn={sphere:function(){wn+=4*Ie},point:R,lineStart:R,lineEnd:R,polygonStart:function(){Dn.reset(),Pn.lineStart=zn},polygonEnd:function(){var e=2*Dn;wn+=e<0?4*Ie+e:e,Pn.lineStart=Pn.lineEnd=Pn.point=R}};function zn(){var e,t,n,r,a;function i(e,t){t=t*Pe/2+Ie/4;var i=(e*=Pe)-n,o=i>=0?1:-1,l=o*i,s=Math.cos(t),c=Math.sin(t),u=a*c,d=r*s+u*Math.cos(l),h=u*o*Math.sin(l);Dn.add(Math.atan2(h,d)),n=e,r=s,a=c}Pn.point=function(o,l){Pn.point=i,n=(e=o)*Pe,r=Math.cos(l=(t=l)*Pe/2+Ie/4),a=Math.sin(l)},Pn.lineEnd=function(){i(e,t)}}function Nn(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function jn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Rn(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Fn(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Bn(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Hn(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Vn(e){return[Math.atan2(e[1],e[0]),Fe(e[2])]}function Gn(e,t){return _(e[0]-t[0])<Ce&&_(e[1]-t[1])<Ce}i.geo.bounds=function(){var e,t,n,r,a,o,l,s,c,u,d,h={point:f,lineStart:g,lineEnd:v,polygonStart:function(){h.point=m,h.lineStart=y,h.lineEnd=x,c=0,Pn.polygonStart()},polygonEnd:function(){Pn.polygonEnd(),h.point=f,h.lineStart=g,h.lineEnd=v,Dn<0?(e=-(n=180),t=-(r=90)):c>Ce?r=90:c<-Ce&&(t=-90),d[0]=e,d[1]=n}};function f(a,i){u.push(d=[e=a,n=a]),i<t&&(t=i),i>r&&(r=i)}function p(i,o){var l=Nn([i*Pe,o*Pe]);if(s){var c=Rn(s,l),u=Rn([c[1],-c[0],0],c);Hn(u),u=Vn(u);var d=i-a,h=d>0?1:-1,p=u[0]*ze*h,g=_(d)>180;if(g^(h*a<p&&p<h*i))(v=u[1]*ze)>r&&(r=v);else if(g^(h*a<(p=(p+360)%360-180)&&p<h*i)){var v;(v=-u[1]*ze)<t&&(t=v)}else o<t&&(t=o),o>r&&(r=o);g?i<a?b(e,i)>b(e,n)&&(n=i):b(i,n)>b(e,n)&&(e=i):n>=e?(i<e&&(e=i),i>n&&(n=i)):i>a?b(e,i)>b(e,n)&&(n=i):b(i,n)>b(e,n)&&(e=i)}else f(i,o);s=l,a=i}function g(){h.point=p}function v(){d[0]=e,d[1]=n,h.point=f,s=null}function m(e,t){if(s){var n=e-a;c+=_(n)>180?n+(n>0?360:-360):n}else o=e,l=t;Pn.point(e,t),p(e,t)}function y(){Pn.lineStart()}function x(){m(o,l),Pn.lineEnd(),_(c)>Ce&&(e=-(n=180)),d[0]=e,d[1]=n,s=null}function b(e,t){return(t-=e)<0?t+360:t}function w(e,t){return e[0]-t[0]}function k(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}return function(a){if(r=n=-(e=t=1/0),u=[],i.geo.stream(a,h),c=u.length){u.sort(w);for(var o=1,l=[g=u[0]];o<c;++o)k((f=u[o])[0],g)||k(f[1],g)?(b(g[0],f[1])>b(g[0],g[1])&&(g[1]=f[1]),b(f[0],g[1])>b(g[0],g[1])&&(g[0]=f[0])):l.push(g=f);for(var s,c,f,p=-1/0,g=(o=0,l[c=l.length-1]);o<=c;g=f,++o)f=l[o],(s=b(g[1],f[0]))>p&&(p=s,e=f[0],n=g[1])}return u=d=null,e===1/0||t===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,t],[n,r]]}}(),i.geo.centroid=function(e){_n=kn=Tn=Mn=An=Sn=Cn=Ln=In=En=On=0,i.geo.stream(e,Un);var t=In,n=En,r=On,a=t*t+n*n+r*r;return a<Le&&(t=Sn,n=Cn,r=Ln,kn<Ce&&(t=Tn,n=Mn,r=An),(a=t*t+n*n+r*r)<Le)?[NaN,NaN]:[Math.atan2(n,t)*ze,Fe(r/Math.sqrt(a))*ze]};var Un={sphere:R,point:qn,lineStart:Wn,lineEnd:Yn,polygonStart:function(){Un.lineStart=Xn},polygonEnd:function(){Un.lineStart=Wn}};function qn(e,t){e*=Pe;var n=Math.cos(t*=Pe);Zn(n*Math.cos(e),n*Math.sin(e),Math.sin(t))}function Zn(e,t,n){++_n,Tn+=(e-Tn)/_n,Mn+=(t-Mn)/_n,An+=(n-An)/_n}function Wn(){var e,t,n;function r(r,a){r*=Pe;var i=Math.cos(a*=Pe),o=i*Math.cos(r),l=i*Math.sin(r),s=Math.sin(a),c=Math.atan2(Math.sqrt((c=t*s-n*l)*c+(c=n*o-e*s)*c+(c=e*l-t*o)*c),e*o+t*l+n*s);kn+=c,Sn+=c*(e+(e=o)),Cn+=c*(t+(t=l)),Ln+=c*(n+(n=s)),Zn(e,t,n)}Un.point=function(a,i){a*=Pe;var o=Math.cos(i*=Pe);e=o*Math.cos(a),t=o*Math.sin(a),n=Math.sin(i),Un.point=r,Zn(e,t,n)}}function Yn(){Un.point=qn}function Xn(){var e,t,n,r,a;function i(e,t){e*=Pe;var i=Math.cos(t*=Pe),o=i*Math.cos(e),l=i*Math.sin(e),s=Math.sin(t),c=r*s-a*l,u=a*o-n*s,d=n*l-r*o,h=Math.sqrt(c*c+u*u+d*d),f=n*o+r*l+a*s,p=h&&-Re(f)/h,g=Math.atan2(h,f);In+=p*c,En+=p*u,On+=p*d,kn+=g,Sn+=g*(n+(n=o)),Cn+=g*(r+(r=l)),Ln+=g*(a+(a=s)),Zn(n,r,a)}Un.point=function(o,l){e=o,t=l,Un.point=i,o*=Pe;var s=Math.cos(l*=Pe);n=s*Math.cos(o),r=s*Math.sin(o),a=Math.sin(l),Zn(n,r,a)},Un.lineEnd=function(){i(e,t),Un.lineEnd=Yn,Un.point=qn}}function $n(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n}function Jn(){return!0}function Kn(e,t,n,r,a){var i=[],o=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t];if(Gn(n,r)){a.lineStart();for(var l=0;l<t;++l)a.point((n=e[l])[0],n[1]);a.lineEnd()}else{var s=new er(n,e,null,!0),c=new er(n,null,s,!1);s.o=c,i.push(s),o.push(c),s=new er(r,e,null,!1),c=new er(r,null,s,!0),s.o=c,i.push(s),o.push(c)}}})),o.sort(t),Qn(i),Qn(o),i.length){for(var l=0,s=n,c=o.length;l<c;++l)o[l].e=s=!s;for(var u,d,h=i[0];;){for(var f=h,p=!0;f.v;)if((f=f.n)===h)return;u=f.z,a.lineStart();do{if(f.v=f.o.v=!0,f.e){if(p)for(l=0,c=u.length;l<c;++l)a.point((d=u[l])[0],d[1]);else r(f.x,f.n.x,1,a);f=f.n}else{if(p)for(l=(u=f.p.z).length-1;l>=0;--l)a.point((d=u[l])[0],d[1]);else r(f.x,f.p.x,-1,a);f=f.p}u=(f=f.o).z,p=!p}while(!f.v);a.lineEnd()}}}function Qn(e){if(t=e.length){for(var t,n,r=0,a=e[0];++r<t;)a.n=n=e[r],n.p=a,a=n;a.n=n=e[0],n.p=a}}function er(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function tr(e,t,n,r){return function(a,o){var l,s=t(o),c=a.invert(r[0],r[1]),u={point:d,lineStart:f,lineEnd:p,polygonStart:function(){u.point=b,u.lineStart=w,u.lineEnd=_,l=[],g=[]},polygonEnd:function(){u.point=d,u.lineStart=f,u.lineEnd=p,l=i.merge(l);var e=function(e,t){var n=e[0],r=e[1],a=[Math.sin(n),-Math.cos(n),0],i=0,o=0;Dn.reset();for(var l=0,s=t.length;l<s;++l){var c=t[l],u=c.length;if(u)for(var d=c[0],h=d[0],f=d[1]/2+Ie/4,p=Math.sin(f),g=Math.cos(f),v=1;;){v===u&&(v=0);var m=(e=c[v])[0],y=e[1]/2+Ie/4,x=Math.sin(y),b=Math.cos(y),w=m-h,_=w>=0?1:-1,k=_*w,T=k>Ie,M=p*x;if(Dn.add(Math.atan2(M*_*Math.sin(k),g*b+M*Math.cos(k))),i+=T?w+_*Ee:w,T^h>=n^m>=n){var A=Rn(Nn(d),Nn(e));Hn(A);var S=Rn(a,A);Hn(S);var C=(T^w>=0?-1:1)*Fe(S[2]);(r>C||r===C&&(A[0]||A[1]))&&(o+=T^w>=0?1:-1)}if(!v++)break;h=m,p=x,g=b,d=e}}return(i<-Ce||i<Ce&&Dn<-Ce)^1&o}(c,g);l.length?(x||(o.polygonStart(),x=!0),Kn(l,ar,e,n,o)):e&&(x||(o.polygonStart(),x=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),x&&(o.polygonEnd(),x=!1),l=g=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function d(t,n){var r=a(t,n);e(t=r[0],n=r[1])&&o.point(t,n)}function h(e,t){var n=a(e,t);s.point(n[0],n[1])}function f(){u.point=h,s.lineStart()}function p(){u.point=d,s.lineEnd()}var g,v,m=rr(),y=t(m),x=!1;function b(e,t){v.push([e,t]);var n=a(e,t);y.point(n[0],n[1])}function w(){y.lineStart(),v=[]}function _(){b(v[0][0],v[0][1]),y.lineEnd();var e,t=y.clean(),n=m.buffer(),r=n.length;if(v.pop(),g.push(v),v=null,r)if(1&t){var a,i=-1;if((r=(e=n[0]).length-1)>0){for(x||(o.polygonStart(),x=!0),o.lineStart();++i<r;)o.point((a=e[i])[0],a[1]);o.lineEnd()}}else r>1&&2&t&&n.push(n.pop().concat(n.shift())),l.push(n.filter(nr))}return u}}function nr(e){return e.length>1}function rr(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:R,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function ar(e,t){return((e=e.x)[0]<0?e[1]-De-Ce:De-e[1])-((t=t.x)[0]<0?t[1]-De-Ce:De-t[1])}var ir=tr(Jn,(function(e){var t,n=NaN,r=NaN,a=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,o){var l=i>0?Ie:-Ie,s=_(i-n);_(s-Ie)<Ce?(e.point(n,r=(r+o)/2>0?De:-De),e.point(a,r),e.lineEnd(),e.lineStart(),e.point(l,r),e.point(i,r),t=0):a!==l&&s>=Ie&&(_(n-a)<Ce&&(n-=a*Ce),_(i-l)<Ce&&(i-=l*Ce),r=function(e,t,n,r){var a,i,o=Math.sin(e-n);return _(o)>Ce?Math.atan((Math.sin(t)*(i=Math.cos(r))*Math.sin(n)-Math.sin(r)*(a=Math.cos(t))*Math.sin(e))/(a*i*o)):(t+r)/2}(n,r,i,o),e.point(a,r),e.lineEnd(),e.lineStart(),e.point(l,r),t=0),e.point(n=i,r=o),a=l},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var a;if(null==e)a=n*De,r.point(-Ie,a),r.point(0,a),r.point(Ie,a),r.point(Ie,0),r.point(Ie,-a),r.point(0,-a),r.point(-Ie,-a),r.point(-Ie,0),r.point(-Ie,a);else if(_(e[0]-t[0])>Ce){var i=e[0]<t[0]?Ie:-Ie;a=n*i/2,r.point(-i,a),r.point(0,a),r.point(i,a)}else r.point(t[0],t[1])}),[-Ie,-Ie/2]);function or(e){var t=Math.cos(e),n=t>0,r=_(t)>Ce;return tr(a,(function(e){var t,l,s,c,u;return{lineStart:function(){c=s=!1,u=1},point:function(d,h){var f,p=[d,h],g=a(d,h),v=n?g?0:o(d,h):g?o(d+(d<0?Ie:-Ie),h):0;if(!t&&(c=s=g)&&e.lineStart(),g!==s&&(f=i(t,p),(Gn(t,f)||Gn(p,f))&&(p[0]+=Ce,p[1]+=Ce,g=a(p[0],p[1]))),g!==s)u=0,g?(e.lineStart(),f=i(p,t),e.point(f[0],f[1])):(f=i(t,p),e.point(f[0],f[1]),e.lineEnd()),t=f;else if(r&&t&&n^g){var m;v&l||!(m=i(p,t,!0))||(u=0,n?(e.lineStart(),e.point(m[0][0],m[0][1]),e.point(m[1][0],m[1][1]),e.lineEnd()):(e.point(m[1][0],m[1][1]),e.lineEnd(),e.lineStart(),e.point(m[0][0],m[0][1])))}!g||t&&Gn(t,p)||e.point(p[0],p[1]),t=p,s=g,l=v},lineEnd:function(){s&&e.lineEnd(),t=null},clean:function(){return u|(c&&s)<<1}}}),Vr(e,6*Pe),n?[0,-e]:[-Ie,e-Ie]);function a(e,n){return Math.cos(e)*Math.cos(n)>t}function i(e,n,r){var a=[1,0,0],i=Rn(Nn(e),Nn(n)),o=jn(i,i),l=i[0],s=o-l*l;if(!s)return!r&&e;var c=t*o/s,u=-t*l/s,d=Rn(a,i),h=Bn(a,c);Fn(h,Bn(i,u));var f=d,p=jn(h,f),g=jn(f,f),v=p*p-g*(jn(h,h)-1);if(!(v<0)){var m=Math.sqrt(v),y=Bn(f,(-p-m)/g);if(Fn(y,h),y=Vn(y),!r)return y;var x,b=e[0],w=n[0],k=e[1],T=n[1];w<b&&(x=b,b=w,w=x);var M=w-b,A=_(M-Ie)<Ce;if(!A&&T<k&&(x=k,k=T,T=x),A||M<Ce?A?k+T>0^y[1]<(_(y[0]-b)<Ce?k:T):k<=y[1]&&y[1]<=T:M>Ie^(b<=y[0]&&y[0]<=w)){var S=Bn(f,(-p+m)/g);return Fn(S,h),[y,Vn(S)]}}}function o(t,r){var a=n?e:Ie-e,i=0;return t<-a?i|=1:t>a&&(i|=2),r<-a?i|=4:r>a&&(i|=8),i}}function lr(e,t,n,r){return function(a){var i,o=a.a,l=a.b,s=o.x,c=o.y,u=0,d=1,h=l.x-s,f=l.y-c;if(i=e-s,h||!(i>0)){if(i/=h,h<0){if(i<u)return;i<d&&(d=i)}else if(h>0){if(i>d)return;i>u&&(u=i)}if(i=n-s,h||!(i<0)){if(i/=h,h<0){if(i>d)return;i>u&&(u=i)}else if(h>0){if(i<u)return;i<d&&(d=i)}if(i=t-c,f||!(i>0)){if(i/=f,f<0){if(i<u)return;i<d&&(d=i)}else if(f>0){if(i>d)return;i>u&&(u=i)}if(i=r-c,f||!(i<0)){if(i/=f,f<0){if(i>d)return;i>u&&(u=i)}else if(f>0){if(i<u)return;i<d&&(d=i)}return u>0&&(a.a={x:s+u*h,y:c+u*f}),d<1&&(a.b={x:s+d*h,y:c+d*f}),a}}}}}}function sr(e,t,n,r){return function(s){var c,u,d,h,f,p,g,v,m,y,x,b=s,w=rr(),_=lr(e,t,n,r),k={point:A,lineStart:function(){k.point=S,u&&u.push(d=[]);y=!0,m=!1,g=v=NaN},lineEnd:function(){c&&(S(h,f),p&&m&&w.rejoin(),c.push(w.buffer()));k.point=A,m&&s.lineEnd()},polygonStart:function(){s=w,c=[],u=[],x=!0},polygonEnd:function(){s=b,c=i.merge(c);var t=function(e){for(var t=0,n=u.length,r=e[1],a=0;a<n;++a)for(var i,o=1,l=u[a],s=l.length,c=l[0];o<s;++o)i=l[o],c[1]<=r?i[1]>r&&je(c,i,e)>0&&++t:i[1]<=r&&je(c,i,e)<0&&--t,c=i;return 0!==t}([e,r]),n=x&&t,a=c.length;(n||a)&&(s.polygonStart(),n&&(s.lineStart(),T(null,null,1,s),s.lineEnd()),a&&Kn(c,o,t,T,s),s.polygonEnd()),c=u=d=null}};function T(i,o,s,c){var u=0,d=0;if(null==i||(u=a(i,s))!==(d=a(o,s))||l(i,o)<0^s>0)do{c.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+s+4)%4)!==d);else c.point(o[0],o[1])}function M(a,i){return e<=a&&a<=n&&t<=i&&i<=r}function A(e,t){M(e,t)&&s.point(e,t)}function S(e,t){var n=M(e=Math.max(-1e9,Math.min(1e9,e)),t=Math.max(-1e9,Math.min(1e9,t)));if(u&&d.push([e,t]),y)h=e,f=t,p=n,y=!1,n&&(s.lineStart(),s.point(e,t));else if(n&&m)s.point(e,t);else{var r={a:{x:g,y:v},b:{x:e,y:t}};_(r)?(m||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),x=!1):n&&(s.lineStart(),s.point(e,t),x=!1)}g=e,v=t,m=n}return k};function a(r,a){return _(r[0]-e)<Ce?a>0?0:3:_(r[0]-n)<Ce?a>0?2:1:_(r[1]-t)<Ce?a>0?1:0:a>0?3:2}function o(e,t){return l(e.x,t.x)}function l(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}}function cr(e){var t=0,n=Ie/3,r=Pr(e),a=r(t,n);return a.parallels=function(e){return arguments.length?r(t=e[0]*Ie/180,n=e[1]*Ie/180):[t/Ie*180,n/Ie*180]},a}function ur(e,t){var n=Math.sin(e),r=(n+Math.sin(t))/2,a=1+n*(2*r-n),i=Math.sqrt(a)/r;function o(e,t){var n=Math.sqrt(a-2*r*Math.sin(t))/r;return[n*Math.sin(e*=r),i-n*Math.cos(e)]}return o.invert=function(e,t){var n=i-t;return[Math.atan2(e,n)/r,Fe((a-(e*e+n*n)*r*r)/(2*r))]},o}i.geo.clipExtent=function(){var e,t,n,r,a,i,o={stream:function(e){return a&&(a.valid=!1),(a=i(e)).valid=!0,a},extent:function(l){return arguments.length?(i=sr(e=+l[0][0],t=+l[0][1],n=+l[1][0],r=+l[1][1]),a&&(a.valid=!1,a=null),o):[[e,t],[n,r]]}};return o.extent([[0,0],[960,500]])},(i.geo.conicEqualArea=function(){return cr(ur)}).raw=ur,i.geo.albers=function(){return i.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},i.geo.albersUsa=function(){var e,t,n,r,a=i.geo.albers(),o=i.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=i.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,n){e=[t,n]}};function c(a){var i=a[0],o=a[1];return e=null,t(i,o),e||(n(i,o),e)||r(i,o),e}return c.invert=function(e){var t=a.scale(),n=a.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?o:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:a).invert(e)},c.stream=function(e){var t=a.stream(e),n=o.stream(e),r=l.stream(e);return{point:function(e,a){t.point(e,a),n.point(e,a),r.point(e,a)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},c.precision=function(e){return arguments.length?(a.precision(e),o.precision(e),l.precision(e),c):a.precision()},c.scale=function(e){return arguments.length?(a.scale(e),o.scale(.35*e),l.scale(e),c.translate(a.translate())):a.scale()},c.translate=function(e){if(!arguments.length)return a.translate();var i=a.scale(),u=+e[0],d=+e[1];return t=a.translate(e).clipExtent([[u-.455*i,d-.238*i],[u+.455*i,d+.238*i]]).stream(s).point,n=o.translate([u-.307*i,d+.201*i]).clipExtent([[u-.425*i+Ce,d+.12*i+Ce],[u-.214*i-Ce,d+.234*i-Ce]]).stream(s).point,r=l.translate([u-.205*i,d+.212*i]).clipExtent([[u-.214*i+Ce,d+.166*i+Ce],[u-.115*i-Ce,d+.234*i-Ce]]).stream(s).point,c},c.scale(1070)};var dr,hr,fr,pr,gr,vr,mr={point:R,lineStart:R,lineEnd:R,polygonStart:function(){hr=0,mr.lineStart=yr},polygonEnd:function(){mr.lineStart=mr.lineEnd=mr.point=R,dr+=_(hr/2)}};function yr(){var e,t,n,r;function a(e,t){hr+=r*e-n*t,n=e,r=t}mr.point=function(i,o){mr.point=a,e=n=i,t=r=o},mr.lineEnd=function(){a(e,t)}}var xr={point:function(e,t){e<fr&&(fr=e);e>gr&&(gr=e);t<pr&&(pr=t);t>vr&&(vr=t)},lineStart:R,lineEnd:R,polygonStart:R,polygonEnd:R};function br(){var e=wr(4.5),t=[],n={point:r,lineStart:function(){n.point=a},lineEnd:o,polygonStart:function(){n.lineEnd=l},polygonEnd:function(){n.lineEnd=o,n.point=r},pointRadius:function(t){return e=wr(t),n},result:function(){if(t.length){var e=t.join("");return t=[],e}}};function r(n,r){t.push("M",n,",",r,e)}function a(e,r){t.push("M",e,",",r),n.point=i}function i(e,n){t.push("L",e,",",n)}function o(){n.point=r}function l(){t.push("Z")}return n}function wr(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var _r,kr={point:Tr,lineStart:Mr,lineEnd:Ar,polygonStart:function(){kr.lineStart=Sr},polygonEnd:function(){kr.point=Tr,kr.lineStart=Mr,kr.lineEnd=Ar}};function Tr(e,t){Tn+=e,Mn+=t,++An}function Mr(){var e,t;function n(n,r){var a=n-e,i=r-t,o=Math.sqrt(a*a+i*i);Sn+=o*(e+n)/2,Cn+=o*(t+r)/2,Ln+=o,Tr(e=n,t=r)}kr.point=function(r,a){kr.point=n,Tr(e=r,t=a)}}function Ar(){kr.point=Tr}function Sr(){var e,t,n,r;function a(e,t){var a=e-n,i=t-r,o=Math.sqrt(a*a+i*i);Sn+=o*(n+e)/2,Cn+=o*(r+t)/2,Ln+=o,In+=(o=r*e-n*t)*(n+e),En+=o*(r+t),On+=3*o,Tr(n=e,r=t)}kr.point=function(i,o){kr.point=a,Tr(e=n=i,t=r=o)},kr.lineEnd=function(){a(e,t)}}function Cr(e){var t=4.5,n={point:r,lineStart:function(){n.point=a},lineEnd:o,polygonStart:function(){n.lineEnd=l},polygonEnd:function(){n.lineEnd=o,n.point=r},pointRadius:function(e){return t=e,n},result:R};function r(n,r){e.moveTo(n+t,r),e.arc(n,r,t,0,Ee)}function a(t,r){e.moveTo(t,r),n.point=i}function i(t,n){e.lineTo(t,n)}function o(){n.point=r}function l(){e.closePath()}return n}function Lr(e){var t=.5,n=Math.cos(30*Pe),r=16;function a(e){return(r?o:i)(e)}function i(t){return Or(t,(function(n,r){n=e(n,r),t.point(n[0],n[1])}))}function o(t){var n,a,i,o,s,c,u,d,h,f,p,g,v={point:m,lineStart:y,lineEnd:b,polygonStart:function(){t.polygonStart(),v.lineStart=w},polygonEnd:function(){t.polygonEnd(),v.lineStart=y}};function m(n,r){n=e(n,r),t.point(n[0],n[1])}function y(){d=NaN,v.point=x,t.lineStart()}function x(n,a){var i=Nn([n,a]),o=e(n,a);l(d,h,u,f,p,g,d=o[0],h=o[1],u=n,f=i[0],p=i[1],g=i[2],r,t),t.point(d,h)}function b(){v.point=m,t.lineEnd()}function w(){y(),v.point=_,v.lineEnd=k}function _(e,t){x(n=e,t),a=d,i=h,o=f,s=p,c=g,v.point=x}function k(){l(d,h,u,f,p,g,a,i,n,o,s,c,r,t),v.lineEnd=b,b()}return v}function l(r,a,i,o,s,c,u,d,h,f,p,g,v,m){var y=u-r,x=d-a,b=y*y+x*x;if(b>4*t&&v--){var w=o+f,k=s+p,T=c+g,M=Math.sqrt(w*w+k*k+T*T),A=Math.asin(T/=M),S=_(_(T)-1)<Ce||_(i-h)<Ce?(i+h)/2:Math.atan2(k,w),C=e(S,A),L=C[0],I=C[1],E=L-r,O=I-a,D=x*E-y*O;(D*D/b>t||_((y*E+x*O)/b-.5)>.3||o*f+s*p+c*g<n)&&(l(r,a,i,o,s,c,L,I,S,w/=M,k/=M,T,v,m),m.point(L,I),l(L,I,S,w,k,T,u,d,h,f,p,g,v,m))}}return a.precision=function(e){return arguments.length?(r=(t=e*e)>0&&16,a):Math.sqrt(t)},a}function Ir(e){var t=Lr((function(t,n){return e([t*ze,n*ze])}));return function(e){return zr(t(e))}}function Er(e){this.stream=e}function Or(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function Dr(e){return Pr((function(){return e}))()}function Pr(e){var t,n,r,a,o,l,s=Lr((function(e,n){return[(e=t(e,n))[0]*c+a,o-e[1]*c]})),c=150,u=480,d=250,h=0,f=0,p=0,g=0,v=0,m=ir,y=P,x=null,b=null;function w(e){return[(e=r(e[0]*Pe,e[1]*Pe))[0]*c+a,o-e[1]*c]}function _(e){return(e=r.invert((e[0]-a)/c,(o-e[1])/c))&&[e[0]*ze,e[1]*ze]}function k(){r=$n(n=Rr(p,g,v),t);var e=t(h,f);return a=u-e[0]*c,o=d+e[1]*c,T()}function T(){return l&&(l.valid=!1,l=null),w}return w.stream=function(e){return l&&(l.valid=!1),(l=zr(m(n,s(y(e))))).valid=!0,l},w.clipAngle=function(e){return arguments.length?(m=null==e?(x=e,ir):or((x=+e)*Pe),T()):x},w.clipExtent=function(e){return arguments.length?(b=e,y=e?sr(e[0][0],e[0][1],e[1][0],e[1][1]):P,T()):b},w.scale=function(e){return arguments.length?(c=+e,k()):c},w.translate=function(e){return arguments.length?(u=+e[0],d=+e[1],k()):[u,d]},w.center=function(e){return arguments.length?(h=e[0]%360*Pe,f=e[1]%360*Pe,k()):[h*ze,f*ze]},w.rotate=function(e){return arguments.length?(p=e[0]%360*Pe,g=e[1]%360*Pe,v=e.length>2?e[2]%360*Pe:0,k()):[p*ze,g*ze,v*ze]},i.rebind(w,s,"precision"),function(){return t=e.apply(this,arguments),w.invert=t.invert&&_,k()}}function zr(e){return Or(e,(function(t,n){e.point(t*Pe,n*Pe)}))}function Nr(e,t){return[e,t]}function jr(e,t){return[e>Ie?e-Ee:e<-Ie?e+Ee:e,t]}function Rr(e,t,n){return e?t||n?$n(Br(e),Hr(t,n)):Br(e):t||n?Hr(t,n):jr}function Fr(e){return function(t,n){return[(t+=e)>Ie?t-Ee:t<-Ie?t+Ee:t,n]}}function Br(e){var t=Fr(e);return t.invert=Fr(-e),t}function Hr(e,t){var n=Math.cos(e),r=Math.sin(e),a=Math.cos(t),i=Math.sin(t);function o(e,t){var o=Math.cos(t),l=Math.cos(e)*o,s=Math.sin(e)*o,c=Math.sin(t),u=c*n+l*r;return[Math.atan2(s*a-u*i,l*n-c*r),Fe(u*a+s*i)]}return o.invert=function(e,t){var o=Math.cos(t),l=Math.cos(e)*o,s=Math.sin(e)*o,c=Math.sin(t),u=c*a-s*i;return[Math.atan2(s*a+c*i,l*n+u*r),Fe(u*n-l*r)]},o}function Vr(e,t){var n=Math.cos(e),r=Math.sin(e);return function(a,i,o,l){var s=o*t;null!=a?(a=Gr(n,a),i=Gr(n,i),(o>0?a<i:a>i)&&(a+=o*Ee)):(a=e+o*Ee,i=e-.5*s);for(var c,u=a;o>0?u>i:u<i;u-=s)l.point((c=Vn([n,-r*Math.cos(u),-r*Math.sin(u)]))[0],c[1])}}function Gr(e,t){var n=Nn(t);n[0]-=e,Hn(n);var r=Re(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Ce)%(2*Math.PI)}function Ur(e,t,n){var r=i.range(e,t-Ce,n).concat(t);return function(e){return r.map((function(t){return[e,t]}))}}function qr(e,t,n){var r=i.range(e,t-Ce,n).concat(t);return function(e){return r.map((function(t){return[t,e]}))}}function Zr(e){return e.source}function Wr(e){return e.target}i.geo.path=function(){var e,t,n,r,a,o=4.5;function l(e){return e&&("function"==typeof o&&r.pointRadius(+o.apply(this,arguments)),a&&a.valid||(a=n(r)),i.geo.stream(e,a)),r.result()}function s(){return a=null,l}return l.area=function(e){return dr=0,i.geo.stream(e,n(mr)),dr},l.centroid=function(e){return Tn=Mn=An=Sn=Cn=Ln=In=En=On=0,i.geo.stream(e,n(kr)),On?[In/On,En/On]:Ln?[Sn/Ln,Cn/Ln]:An?[Tn/An,Mn/An]:[NaN,NaN]},l.bounds=function(e){return gr=vr=-(fr=pr=1/0),i.geo.stream(e,n(xr)),[[fr,pr],[gr,vr]]},l.projection=function(t){return arguments.length?(n=(e=t)?t.stream||Ir(t):P,s()):e},l.context=function(e){return arguments.length?(r=null==(t=e)?new br:new Cr(e),"function"!=typeof o&&r.pointRadius(o),s()):t},l.pointRadius=function(e){return arguments.length?(o="function"==typeof e?e:(r.pointRadius(+e),+e),l):o},l.projection(i.geo.albersUsa()).context(null)},i.geo.transform=function(e){return{stream:function(t){var n=new Er(t);for(var r in e)n[r]=e[r];return n}}},Er.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},i.geo.projection=Dr,i.geo.projectionMutator=Pr,(i.geo.equirectangular=function(){return Dr(Nr)}).raw=Nr.invert=Nr,i.geo.rotation=function(e){function t(t){return(t=e(t[0]*Pe,t[1]*Pe))[0]*=ze,t[1]*=ze,t}return e=Rr(e[0]%360*Pe,e[1]*Pe,e.length>2?e[2]*Pe:0),t.invert=function(t){return(t=e.invert(t[0]*Pe,t[1]*Pe))[0]*=ze,t[1]*=ze,t},t},jr.invert=Nr,i.geo.circle=function(){var e,t,n=[0,0],r=6;function a(){var e="function"==typeof n?n.apply(this,arguments):n,r=Rr(-e[0]*Pe,-e[1]*Pe,0).invert,a=[];return t(null,null,1,{point:function(e,t){a.push(e=r(e,t)),e[0]*=ze,e[1]*=ze}}),{type:"Polygon",coordinates:[a]}}return a.origin=function(e){return arguments.length?(n=e,a):n},a.angle=function(n){return arguments.length?(t=Vr((e=+n)*Pe,r*Pe),a):e},a.precision=function(n){return arguments.length?(t=Vr(e*Pe,(r=+n)*Pe),a):r},a.angle(90)},i.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Pe,a=e[1]*Pe,i=t[1]*Pe,o=Math.sin(r),l=Math.cos(r),s=Math.sin(a),c=Math.cos(a),u=Math.sin(i),d=Math.cos(i);return Math.atan2(Math.sqrt((n=d*o)*n+(n=c*u-s*d*l)*n),s*u+c*d*l)},i.geo.graticule=function(){var e,t,n,r,a,o,l,s,c,u,d,h,f=10,p=f,g=90,v=360,m=2.5;function y(){return{type:"MultiLineString",coordinates:x()}}function x(){return i.range(Math.ceil(r/g)*g,n,g).map(d).concat(i.range(Math.ceil(s/v)*v,l,v).map(h)).concat(i.range(Math.ceil(t/f)*f,e,f).filter((function(e){return _(e%g)>Ce})).map(c)).concat(i.range(Math.ceil(o/p)*p,a,p).filter((function(e){return _(e%v)>Ce})).map(u))}return y.lines=function(){return x().map((function(e){return{type:"LineString",coordinates:e}}))},y.outline=function(){return{type:"Polygon",coordinates:[d(r).concat(h(l).slice(1),d(n).reverse().slice(1),h(s).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.majorExtent(e).minorExtent(e):y.minorExtent()},y.majorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],l=+e[1][1],r>n&&(e=r,r=n,n=e),s>l&&(e=s,s=l,l=e),y.precision(m)):[[r,s],[n,l]]},y.minorExtent=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],a=+n[1][1],t>e&&(n=t,t=e,e=n),o>a&&(n=o,o=a,a=n),y.precision(m)):[[t,o],[e,a]]},y.step=function(e){return arguments.length?y.majorStep(e).minorStep(e):y.minorStep()},y.majorStep=function(e){return arguments.length?(g=+e[0],v=+e[1],y):[g,v]},y.minorStep=function(e){return arguments.length?(f=+e[0],p=+e[1],y):[f,p]},y.precision=function(i){return arguments.length?(m=+i,c=Ur(o,a,90),u=qr(t,e,m),d=Ur(s,l,90),h=qr(r,n,m),y):m},y.majorExtent([[-180,-90+Ce],[180,90-Ce]]).minorExtent([[-180,-80-Ce],[180,80+Ce]])},i.geo.greatArc=function(){var e,t,n=Zr,r=Wr;function a(){return{type:"LineString",coordinates:[e||n.apply(this,arguments),t||r.apply(this,arguments)]}}return a.distance=function(){return i.geo.distance(e||n.apply(this,arguments),t||r.apply(this,arguments))},a.source=function(t){return arguments.length?(n=t,e="function"==typeof t?null:t,a):n},a.target=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,a):r},a.precision=function(){return arguments.length?a:0},a},i.geo.interpolate=function(e,t){return n=e[0]*Pe,r=e[1]*Pe,a=t[0]*Pe,i=t[1]*Pe,o=Math.cos(r),l=Math.sin(r),s=Math.cos(i),c=Math.sin(i),u=o*Math.cos(n),d=o*Math.sin(n),h=s*Math.cos(a),f=s*Math.sin(a),p=2*Math.asin(Math.sqrt(He(i-r)+o*s*He(a-n))),g=1/Math.sin(p),(v=p?function(e){var t=Math.sin(e*=p)*g,n=Math.sin(p-e)*g,r=n*u+t*h,a=n*d+t*f,i=n*l+t*c;return[Math.atan2(a,r)*ze,Math.atan2(i,Math.sqrt(r*r+a*a))*ze]}:function(){return[n*ze,r*ze]}).distance=p,v;var n,r,a,i,o,l,s,c,u,d,h,f,p,g,v},i.geo.length=function(e){return _r=0,i.geo.stream(e,Yr),_r};var Yr={sphere:R,point:R,lineStart:function(){var e,t,n;function r(r,a){var i=Math.sin(a*=Pe),o=Math.cos(a),l=_((r*=Pe)-e),s=Math.cos(l);_r+=Math.atan2(Math.sqrt((l=o*Math.sin(l))*l+(l=n*i-t*o*s)*l),t*i+n*o*s),e=r,t=i,n=o}Yr.point=function(a,i){e=a*Pe,t=Math.sin(i*=Pe),n=Math.cos(i),Yr.point=r},Yr.lineEnd=function(){Yr.point=Yr.lineEnd=R}},lineEnd:R,polygonStart:R,polygonEnd:R};function Xr(e,t){function n(t,n){var r=Math.cos(t),a=Math.cos(n),i=e(r*a);return[i*a*Math.sin(t),i*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),a=t(r),i=Math.sin(a),o=Math.cos(a);return[Math.atan2(e*i,r*o),Math.asin(r&&n*i/r)]},n}var $r=Xr((function(e){return Math.sqrt(2/(1+e))}),(function(e){return 2*Math.asin(e/2)}));(i.geo.azimuthalEqualArea=function(){return Dr($r)}).raw=$r;var Jr=Xr((function(e){var t=Math.acos(e);return t&&t/Math.sin(t)}),P);function Kr(e,t){var n=Math.cos(e),r=function(e){return Math.tan(Ie/4+e/2)},a=e===t?Math.sin(e):Math.log(n/Math.cos(t))/Math.log(r(t)/r(e)),i=n*Math.pow(r(e),a)/a;if(!a)return ta;function o(e,t){i>0?t<-De+Ce&&(t=-De+Ce):t>De-Ce&&(t=De-Ce);var n=i/Math.pow(r(t),a);return[n*Math.sin(a*e),i-n*Math.cos(a*e)]}return o.invert=function(e,t){var n=i-t,r=Ne(a)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/a,2*Math.atan(Math.pow(i/r,1/a))-De]},o}function Qr(e,t){var n=Math.cos(e),r=e===t?Math.sin(e):(n-Math.cos(t))/(t-e),a=n/r+e;if(_(r)<Ce)return Nr;function i(e,t){var n=a-t;return[n*Math.sin(r*e),a-n*Math.cos(r*e)]}return i.invert=function(e,t){var n=a-t;return[Math.atan2(e,n)/r,a-Ne(r)*Math.sqrt(e*e+n*n)]},i}(i.geo.azimuthalEquidistant=function(){return Dr(Jr)}).raw=Jr,(i.geo.conicConformal=function(){return cr(Kr)}).raw=Kr,(i.geo.conicEquidistant=function(){return cr(Qr)}).raw=Qr;var ea=Xr((function(e){return 1/e}),Math.atan);function ta(e,t){return[e,Math.log(Math.tan(Ie/4+t/2))]}function na(e){var t,n=Dr(e),r=n.scale,a=n.translate,i=n.clipExtent;return n.scale=function(){var e=r.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.translate=function(){var e=a.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.clipExtent=function(e){var o=i.apply(n,arguments);if(o===n){if(t=null==e){var l=Ie*r(),s=a();i([[s[0]-l,s[1]-l],[s[0]+l,s[1]+l]])}}else t&&(o=null);return o},n.clipExtent(null)}(i.geo.gnomonic=function(){return Dr(ea)}).raw=ea,ta.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-De]},(i.geo.mercator=function(){return na(ta)}).raw=ta;var ra=Xr((function(){return 1}),Math.asin);(i.geo.orthographic=function(){return Dr(ra)}).raw=ra;var aa=Xr((function(e){return 1/(1+e)}),(function(e){return 2*Math.atan(e)}));function ia(e,t){return[Math.log(Math.tan(Ie/4+t/2)),-e]}function oa(e){return e[0]}function la(e){return e[1]}function sa(e){for(var t=e.length,n=[0,1],r=2,a=2;a<t;a++){for(;r>1&&je(e[n[r-2]],e[n[r-1]],e[a])<=0;)--r;n[r++]=a}return n.slice(0,r)}function ca(e,t){return e[0]-t[0]||e[1]-t[1]}(i.geo.stereographic=function(){return Dr(aa)}).raw=aa,ia.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-De]},(i.geo.transverseMercator=function(){var e=na(ia),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90])}).raw=ia,i.geom={},i.geom.hull=function(e){var t=oa,n=la;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,a=yt(t),i=yt(n),o=e.length,l=[],s=[];for(r=0;r<o;r++)l.push([+a.call(this,e[r],r),+i.call(this,e[r],r),r]);for(l.sort(ca),r=0;r<o;r++)s.push([l[r][0],-l[r][1]]);var c=sa(l),u=sa(s),d=u[0]===c[0],h=u[u.length-1]===c[c.length-1],f=[];for(r=c.length-1;r>=0;--r)f.push(e[l[c[r]][2]]);for(r=+d;r<u.length-h;++r)f.push(e[l[u[r]][2]]);return f}return r.x=function(e){return arguments.length?(t=e,r):t},r.y=function(e){return arguments.length?(n=e,r):n},r},i.geom.polygon=function(e){return q(e,ua),e};var ua=i.geom.polygon.prototype=[];function da(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function ha(e,t,n,r){var a=e[0],i=n[0],o=t[0]-a,l=r[0]-i,s=e[1],c=n[1],u=t[1]-s,d=r[1]-c,h=(l*(s-c)-d*(a-i))/(d*o-l*u);return[a+h*o,s+h*u]}function fa(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}ua.area=function(){for(var e,t=-1,n=this.length,r=this[n-1],a=0;++t<n;)e=r,r=this[t],a+=e[1]*r[0]-e[0]*r[1];return.5*a},ua.centroid=function(e){var t,n,r=-1,a=this.length,i=0,o=0,l=this[a-1];for(arguments.length||(e=-1/(6*this.area()));++r<a;)t=l,l=this[r],n=t[0]*l[1]-l[0]*t[1],i+=(t[0]+l[0])*n,o+=(t[1]+l[1])*n;return[i*e,o*e]},ua.clip=function(e){for(var t,n,r,a,i,o,l=fa(e),s=-1,c=this.length-fa(this),u=this[c-1];++s<c;){for(t=e.slice(),e.length=0,a=this[s],i=t[(r=t.length-l)-1],n=-1;++n<r;)da(o=t[n],u,a)?(da(i,u,a)||e.push(ha(i,o,u,a)),e.push(o)):da(i,u,a)&&e.push(ha(i,o,u,a)),i=o;l&&e.push(e[0]),u=a}return e};var pa,ga,va,ma,ya,xa=[],ba=[];function wa(){Ba(this),this.edge=this.site=this.circle=null}function _a(e){var t=xa.pop()||new wa;return t.site=e,t}function ka(e){Oa(e),va.remove(e),xa.push(e),Ba(e)}function Ta(e){var t=e.circle,n=t.x,r=t.cy,a={x:n,y:r},i=e.P,o=e.N,l=[e];ka(e);for(var s=i;s.circle&&_(n-s.circle.x)<Ce&&_(r-s.circle.cy)<Ce;)i=s.P,l.unshift(s),ka(s),s=i;l.unshift(s),Oa(s);for(var c=o;c.circle&&_(n-c.circle.x)<Ce&&_(r-c.circle.cy)<Ce;)o=c.N,l.push(c),ka(c),c=o;l.push(c),Oa(c);var u,d=l.length;for(u=1;u<d;++u)c=l[u],s=l[u-1],ja(c.edge,s.site,c.site,a);s=l[0],(c=l[d-1]).edge=za(s.site,c.site,null,a),Ea(s),Ea(c)}function Ma(e){for(var t,n,r,a,i=e.x,o=e.y,l=va._;l;)if((r=Aa(l,o)-i)>Ce)l=l.L;else{if(!((a=i-Sa(l,o))>Ce)){r>-Ce?(t=l.P,n=l):a>-Ce?(t=l,n=l.N):t=n=l;break}if(!l.R){t=l;break}l=l.R}var s=_a(e);if(va.insert(t,s),t||n){if(t===n)return Oa(t),n=_a(t.site),va.insert(s,n),s.edge=n.edge=za(t.site,s.site),Ea(t),void Ea(n);if(n){Oa(t),Oa(n);var c=t.site,u=c.x,d=c.y,h=e.x-u,f=e.y-d,p=n.site,g=p.x-u,v=p.y-d,m=2*(h*v-f*g),y=h*h+f*f,x=g*g+v*v,b={x:(v*y-f*x)/m+u,y:(h*x-g*y)/m+d};ja(n.edge,c,p,b),s.edge=za(c,e,null,b),n.edge=za(e,p,null,b),Ea(t),Ea(n)}else s.edge=za(t.site,s.site)}}function Aa(e,t){var n=e.site,r=n.x,a=n.y,i=a-t;if(!i)return r;var o=e.P;if(!o)return-1/0;var l=(n=o.site).x,s=n.y,c=s-t;if(!c)return l;var u=l-r,d=1/i-1/c,h=u/c;return d?(-h+Math.sqrt(h*h-2*d*(u*u/(-2*c)-s+c/2+a-i/2)))/d+r:(r+l)/2}function Sa(e,t){var n=e.N;if(n)return Aa(n,t);var r=e.site;return r.y===t?r.x:1/0}function Ca(e){this.site=e,this.edges=[]}function La(e,t){return t.angle-e.angle}function Ia(){Ba(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ea(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,a=e.site,i=n.site;if(r!==i){var o=a.x,l=a.y,s=r.x-o,c=r.y-l,u=i.x-o,d=2*(s*(v=i.y-l)-c*u);if(!(d>=-Le)){var h=s*s+c*c,f=u*u+v*v,p=(v*h-c*f)/d,g=(s*f-u*h)/d,v=g+l,m=ba.pop()||new Ia;m.arc=e,m.site=a,m.x=p+o,m.y=v+Math.sqrt(p*p+g*g),m.cy=v,e.circle=m;for(var y=null,x=ya._;x;)if(m.y<x.y||m.y===x.y&&m.x<=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}ya.insert(y,m),y||(ma=m)}}}}function Oa(e){var t=e.circle;t&&(t.P||(ma=t.N),ya.remove(t),ba.push(t),Ba(t),e.circle=null)}function Da(e,t){var n=e.b;if(n)return!0;var r,a,i=e.a,o=t[0][0],l=t[1][0],s=t[0][1],c=t[1][1],u=e.l,d=e.r,h=u.x,f=u.y,p=d.x,g=d.y,v=(h+p)/2,m=(f+g)/2;if(g===f){if(v<o||v>=l)return;if(h>p){if(i){if(i.y>=c)return}else i={x:v,y:s};n={x:v,y:c}}else{if(i){if(i.y<s)return}else i={x:v,y:c};n={x:v,y:s}}}else if(a=m-(r=(h-p)/(g-f))*v,r<-1||r>1)if(h>p){if(i){if(i.y>=c)return}else i={x:(s-a)/r,y:s};n={x:(c-a)/r,y:c}}else{if(i){if(i.y<s)return}else i={x:(c-a)/r,y:c};n={x:(s-a)/r,y:s}}else if(f<g){if(i){if(i.x>=l)return}else i={x:o,y:r*o+a};n={x:l,y:r*l+a}}else{if(i){if(i.x<o)return}else i={x:l,y:r*l+a};n={x:o,y:r*o+a}}return e.a=i,e.b=n,!0}function Pa(e,t){this.l=e,this.r=t,this.a=this.b=null}function za(e,t,n,r){var a=new Pa(e,t);return pa.push(a),n&&ja(a,e,t,n),r&&ja(a,t,e,r),ga[e.i].edges.push(new Ra(a,e,t)),ga[t.i].edges.push(new Ra(a,t,e)),a}function Na(e,t,n){var r=new Pa(e,null);return r.a=t,r.b=n,pa.push(r),r}function ja(e,t,n,r){e.a||e.b?e.l===n?e.b=r:e.a=r:(e.a=r,e.l=t,e.r=n)}function Ra(e,t,n){var r=e.a,a=e.b;this.edge=e,this.site=t,this.angle=n?Math.atan2(n.y-t.y,n.x-t.x):e.l===t?Math.atan2(a.x-r.x,r.y-a.y):Math.atan2(r.x-a.x,a.y-r.y)}function Fa(){this._=null}function Ba(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function Ha(e,t){var n=t,r=t.R,a=n.U;a?a.L===n?a.L=r:a.R=r:e._=r,r.U=a,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function Va(e,t){var n=t,r=t.L,a=n.U;a?a.L===n?a.L=r:a.R=r:e._=r,r.U=a,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function Ga(e){for(;e.L;)e=e.L;return e}function Ua(e,t){var n,r,a,i=e.sort(qa).pop();for(pa=[],ga=new Array(e.length),va=new Fa,ya=new Fa;;)if(a=ma,i&&(!a||i.y<a.y||i.y===a.y&&i.x<a.x))i.x===n&&i.y===r||(ga[i.i]=new Ca(i),Ma(i),n=i.x,r=i.y),i=e.pop();else{if(!a)break;Ta(a.arc)}t&&(function(e){for(var t,n=pa,r=lr(e[0][0],e[0][1],e[1][0],e[1][1]),a=n.length;a--;)(!Da(t=n[a],e)||!r(t)||_(t.a.x-t.b.x)<Ce&&_(t.a.y-t.b.y)<Ce)&&(t.a=t.b=null,n.splice(a,1))}(t),function(e){for(var t,n,r,a,i,o,l,s,c,u,d=e[0][0],h=e[1][0],f=e[0][1],p=e[1][1],g=ga,v=g.length;v--;)if((i=g[v])&&i.prepare())for(s=(l=i.edges).length,o=0;o<s;)r=(u=l[o].end()).x,a=u.y,t=(c=l[++o%s].start()).x,n=c.y,(_(r-t)>Ce||_(a-n)>Ce)&&(l.splice(o,0,new Ra(Na(i.site,u,_(r-d)<Ce&&p-a>Ce?{x:d,y:_(t-d)<Ce?n:p}:_(a-p)<Ce&&h-r>Ce?{x:_(n-p)<Ce?t:h,y:p}:_(r-h)<Ce&&a-f>Ce?{x:h,y:_(t-h)<Ce?n:f}:_(a-f)<Ce&&r-d>Ce?{x:_(n-f)<Ce?t:d,y:f}:null),i.site,null)),++s)}(t));var o={cells:ga,edges:pa};return va=ya=pa=ga=null,o}function qa(e,t){return t.y-e.y||t.x-e.x}Ca.prototype.prepare=function(){for(var e,t=this.edges,n=t.length;n--;)(e=t[n].edge).b&&e.a||t.splice(n,1);return t.sort(La),t.length},Ra.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Fa.prototype={insert:function(e,t){var n,r,a;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=Ga(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(a=r.R)&&a.C?(n.C=a.C=!1,r.C=!0,e=r):(e===n.R&&(Ha(this,n),n=(e=n).U),n.C=!1,r.C=!0,Va(this,r)):(a=r.L)&&a.C?(n.C=a.C=!1,r.C=!0,e=r):(e===n.L&&(Va(this,n),n=(e=n).U),n.C=!1,r.C=!0,Ha(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,a=e.U,i=e.L,o=e.R;if(n=i?o?Ga(o):i:o,a?a.L===e?a.L=n:a.R=n:this._=n,i&&o?(r=n.C,n.C=e.C,n.L=i,i.U=n,n!==o?(a=n.U,n.U=e.U,e=n.R,a.L=e,n.R=o,o.U=n):(n.U=a,a=n,e=n.R)):(r=e.C,e=n),e&&(e.U=a),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===a.L){if((t=a.R).C&&(t.C=!1,a.C=!0,Ha(this,a),t=a.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,Va(this,t),t=a.R),t.C=a.C,a.C=t.R.C=!1,Ha(this,a),e=this._;break}}else if((t=a.L).C&&(t.C=!1,a.C=!0,Va(this,a),t=a.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Ha(this,t),t=a.L),t.C=a.C,a.C=t.L.C=!1,Va(this,a),e=this._;break}t.C=!0,e=a,a=a.U}while(!e.C);e&&(e.C=!1)}}},i.geom.voronoi=function(e){var t=oa,n=la,r=t,a=n,i=Za;if(e)return o(e);function o(e){var t=new Array(e.length),n=i[0][0],r=i[0][1],a=i[1][0],o=i[1][1];return Ua(l(e),i).cells.forEach((function(i,l){var s=i.edges,c=i.site;(t[l]=s.length?s.map((function(e){var t=e.start();return[t.x,t.y]})):c.x>=n&&c.x<=a&&c.y>=r&&c.y<=o?[[n,o],[a,o],[a,r],[n,r]]:[]).point=e[l]})),t}function l(e){return e.map((function(e,t){return{x:Math.round(r(e,t)/Ce)*Ce,y:Math.round(a(e,t)/Ce)*Ce,i:t}}))}return o.links=function(e){return Ua(l(e)).edges.filter((function(e){return e.l&&e.r})).map((function(t){return{source:e[t.l.i],target:e[t.r.i]}}))},o.triangles=function(e){var t=[];return Ua(l(e)).cells.forEach((function(n,r){for(var a,i,o,l,s=n.site,c=n.edges.sort(La),u=-1,d=c.length,h=c[d-1].edge,f=h.l===s?h.r:h.l;++u<d;)h,a=f,f=(h=c[u].edge).l===s?h.r:h.l,r<a.i&&r<f.i&&(o=a,l=f,((i=s).x-l.x)*(o.y-i.y)-(i.x-o.x)*(l.y-i.y)<0)&&t.push([e[r],e[a.i],e[f.i]])})),t},o.x=function(e){return arguments.length?(r=yt(t=e),o):t},o.y=function(e){return arguments.length?(a=yt(n=e),o):n},o.clipExtent=function(e){return arguments.length?(i=null==e?Za:e,o):i===Za?null:i},o.size=function(e){return arguments.length?o.clipExtent(e&&[[0,0],e]):i===Za?null:i&&i[1]},o};var Za=[[-1e6,-1e6],[1e6,1e6]];function Wa(e){return e.x}function Ya(e){return e.y}function Xa(e,t,n,r,a,i){if(!e(t,n,r,a,i)){var o=.5*(n+a),l=.5*(r+i),s=t.nodes;s[0]&&Xa(e,s[0],n,r,o,l),s[1]&&Xa(e,s[1],o,r,a,l),s[2]&&Xa(e,s[2],n,l,o,i),s[3]&&Xa(e,s[3],o,l,a,i)}}function $a(e,t,n,r,a,i,o){var l,s=1/0;return function e(c,u,d,h,f){if(!(u>i||d>o||h<r||f<a)){if(p=c.point){var p,g=t-c.x,v=n-c.y,m=g*g+v*v;if(m<s){var y=Math.sqrt(s=m);r=t-y,a=n-y,i=t+y,o=n+y,l=p}}for(var x=c.nodes,b=.5*(u+h),w=.5*(d+f),_=(n>=w)<<1|t>=b,k=_+4;_<k;++_)if(c=x[3&_])switch(3&_){case 0:e(c,u,d,b,w);break;case 1:e(c,b,d,h,w);break;case 2:e(c,u,w,b,f);break;case 3:e(c,b,w,h,f)}}}(e,r,a,i,o),l}function Ja(e,t){e=i.rgb(e),t=i.rgb(t);var n=e.r,r=e.g,a=e.b,o=t.r-n,l=t.g-r,s=t.b-a;return function(e){return"#"+dt(Math.round(n+o*e))+dt(Math.round(r+l*e))+dt(Math.round(a+s*e))}}function Ka(e,t){var n,r={},a={};for(n in e)n in t?r[n]=ri(e[n],t[n]):a[n]=e[n];for(n in t)n in e||(a[n]=t[n]);return function(e){for(n in r)a[n]=r[n](e);return a}}function Qa(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function ei(e,t){var n,r,a,i=ti.lastIndex=ni.lastIndex=0,o=-1,l=[],s=[];for(e+="",t+="";(n=ti.exec(e))&&(r=ni.exec(t));)(a=r.index)>i&&(a=t.slice(i,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(r=r[0])?l[o]?l[o]+=r:l[++o]=r:(l[++o]=null,s.push({i:o,x:Qa(n,r)})),i=ni.lastIndex;return i<t.length&&(a=t.slice(i),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?(t=s[0].x,function(e){return t(e)+""}):function(){return t}:(t=s.length,function(e){for(var n,r=0;r<t;++r)l[(n=s[r]).i]=n.x(e);return l.join("")})}i.geom.delaunay=function(e){return i.geom.voronoi().triangles(e)},i.geom.quadtree=function(e,t,n,r,a){var i,o=oa,l=la;if(i=arguments.length)return o=Wa,l=Ya,3===i&&(a=n,r=t,n=t=0),s(e);function s(e){var s,c,u,d,h,f,p,g,v,m=yt(o),y=yt(l);if(null!=t)f=t,p=n,g=r,v=a;else if(g=v=-(f=p=1/0),c=[],u=[],h=e.length,i)for(d=0;d<h;++d)(s=e[d]).x<f&&(f=s.x),s.y<p&&(p=s.y),s.x>g&&(g=s.x),s.y>v&&(v=s.y),c.push(s.x),u.push(s.y);else for(d=0;d<h;++d){var x=+m(s=e[d],d),b=+y(s,d);x<f&&(f=x),b<p&&(p=b),x>g&&(g=x),b>v&&(v=b),c.push(x),u.push(b)}var w=g-f,k=v-p;function T(e,t,n,r,a,i,o,l){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var s=e.x,c=e.y;if(null!=s)if(_(s-n)+_(c-r)<.01)M(e,t,n,r,a,i,o,l);else{var u=e.point;e.x=e.y=e.point=null,M(e,u,s,c,a,i,o,l),M(e,t,n,r,a,i,o,l)}else e.x=n,e.y=r,e.point=t}else M(e,t,n,r,a,i,o,l)}function M(e,t,n,r,a,i,o,l){var s=.5*(a+o),c=.5*(i+l),u=n>=s,d=r>=c,h=d<<1|u;e.leaf=!1,u?a=s:o=s,d?i=c:l=c,T(e=e.nodes[h]||(e.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,n,r,a,i,o,l)}w>k?v=p+w:g=f+k;var A={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){T(A,e,+m(e,++d),+y(e,d),f,p,g,v)},visit:function(e){Xa(e,A,f,p,g,v)},find:function(e){return $a(A,e[0],e[1],f,p,g,v)}};if(d=-1,null==t){for(;++d<h;)T(A,e[d],c[d],u[d],f,p,g,v);--d}else e.forEach(A.add);return c=u=e=s=null,A}return s.x=function(e){return arguments.length?(o=e,s):o},s.y=function(e){return arguments.length?(l=e,s):l},s.extent=function(e){return arguments.length?(null==e?t=n=r=a=null:(t=+e[0][0],n=+e[0][1],r=+e[1][0],a=+e[1][1]),s):null==t?null:[[t,n],[r,a]]},s.size=function(e){return arguments.length?(null==e?t=n=r=a=null:(t=n=0,r=+e[0],a=+e[1]),s):null==t?null:[r-t,a-n]},s},i.interpolateRgb=Ja,i.interpolateObject=Ka,i.interpolateNumber=Qa,i.interpolateString=ei;var ti=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ni=new RegExp(ti.source,"g");function ri(e,t){for(var n,r=i.interpolators.length;--r>=0&&!(n=i.interpolators[r](e,t)););return n}function ai(e,t){var n,r=[],a=[],i=e.length,o=t.length,l=Math.min(e.length,t.length);for(n=0;n<l;++n)r.push(ri(e[n],t[n]));for(;n<i;++n)a[n]=e[n];for(;n<o;++n)a[n]=t[n];return function(e){for(n=0;n<l;++n)a[n]=r[n](e);return a}}i.interpolate=ri,i.interpolators=[function(e,t){var n=typeof t;return("string"===n?mt.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?Ja:ei:t instanceof Ze?Ja:Array.isArray(t)?ai:"object"===n&&isNaN(t)?Ka:Qa)(e,t)}],i.interpolateArray=ai;var ii=function(){return P},oi=i.map({linear:ii,poly:function(e){return function(t){return Math.pow(t,e)}},quad:function(){return di},cubic:function(){return hi},sin:function(){return pi},exp:function(){return gi},circle:function(){return vi},elastic:function(e,t){var n;arguments.length<2&&(t=.45);arguments.length?n=t/Ee*Math.asin(1/e):(e=1,n=t/4);return function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Ee/t)}},back:function(e){e||(e=1.70158);return function(t){return t*t*((e+1)*t-e)}},bounce:function(){return mi}}),li=i.map({in:P,out:ci,"in-out":ui,"out-in":function(e){return ui(ci(e))}});function si(e){return function(t){return t<=0?0:t>=1?1:e(t)}}function ci(e){return function(t){return 1-e(1-t)}}function ui(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function di(e){return e*e}function hi(e){return e*e*e}function fi(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function pi(e){return 1-Math.cos(e*De)}function gi(e){return Math.pow(2,10*(e-1))}function vi(e){return 1-Math.sqrt(1-e*e)}function mi(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function yi(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function xi(e){var t,n,r,a=[e.a,e.b],i=[e.c,e.d],o=wi(a),l=bi(a,i),s=wi(((t=i)[0]+=(r=-l)*(n=a)[0],t[1]+=r*n[1],t))||0;a[0]*i[1]<i[0]*a[1]&&(a[0]*=-1,a[1]*=-1,o*=-1,l*=-1),this.rotate=(o?Math.atan2(a[1],a[0]):Math.atan2(-i[0],i[1]))*ze,this.translate=[e.e,e.f],this.scale=[o,s],this.skew=s?Math.atan2(l,s)*ze:0}function bi(e,t){return e[0]*t[0]+e[1]*t[1]}function wi(e){var t=Math.sqrt(bi(e,e));return t&&(e[0]/=t,e[1]/=t),t}i.ease=function(e){var t=e.indexOf("-"),n=t>=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=oi.get(n)||ii,si((r=li.get(r)||P)(n.apply(null,o.call(arguments,1))))},i.interpolateHcl=function(e,t){e=i.hcl(e),t=i.hcl(t);var n=e.h,r=e.c,a=e.l,o=t.h-n,l=t.c-r,s=t.l-a;isNaN(l)&&(l=0,r=isNaN(r)?t.c:r);isNaN(o)?(o=0,n=isNaN(n)?t.h:n):o>180?o-=360:o<-180&&(o+=360);return function(e){return Ke(n+o*e,r+l*e,a+s*e)+""}},i.interpolateHsl=function(e,t){e=i.hsl(e),t=i.hsl(t);var n=e.h,r=e.s,a=e.l,o=t.h-n,l=t.s-r,s=t.l-a;isNaN(l)&&(l=0,r=isNaN(r)?t.s:r);isNaN(o)?(o=0,n=isNaN(n)?t.h:n):o>180?o-=360:o<-180&&(o+=360);return function(e){return Xe(n+o*e,r+l*e,a+s*e)+""}},i.interpolateLab=function(e,t){e=i.lab(e),t=i.lab(t);var n=e.l,r=e.a,a=e.b,o=t.l-n,l=t.a-r,s=t.b-a;return function(e){return nt(n+o*e,r+l*e,a+s*e)+""}},i.interpolateRound=yi,i.transform=function(e){var t=s.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new xi(n?n.matrix:_i)})(e)},xi.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var _i={a:1,b:0,c:0,d:1,e:0,f:0};function ki(e){return e.length?e.pop()+",":""}function Ti(e,t){var n=[],r=[];return e=i.transform(e),t=i.transform(t),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var a=n.push("translate(",null,",",null,")");r.push({i:a-4,x:Qa(e[0],t[0])},{i:a-2,x:Qa(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}(e.translate,t.translate,n,r),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(ki(n)+"rotate(",null,")")-2,x:Qa(e,t)})):t&&n.push(ki(n)+"rotate("+t+")")}(e.rotate,t.rotate,n,r),function(e,t,n,r){e!==t?r.push({i:n.push(ki(n)+"skewX(",null,")")-2,x:Qa(e,t)}):t&&n.push(ki(n)+"skewX("+t+")")}(e.skew,t.skew,n,r),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var a=n.push(ki(n)+"scale(",null,",",null,")");r.push({i:a-4,x:Qa(e[0],t[0])},{i:a-2,x:Qa(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(ki(n)+"scale("+t+")")}(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,a=-1,i=r.length;++a<i;)n[(t=r[a]).i]=t.x(e);return n.join("")}}function Mi(e,t){return t=(t-=e=+e)||1/t,function(n){return(n-e)/t}}function Ai(e,t){return t=(t-=e=+e)||1/t,function(n){return Math.max(0,Math.min(1,(n-e)/t))}}function Si(e){for(var t=e.source,n=e.target,r=function(e,t){if(e===t)return e;var n=Ci(e),r=Ci(t),a=n.pop(),i=r.pop(),o=null;for(;a===i;)o=a,a=n.pop(),i=r.pop();return o}(t,n),a=[t];t!==r;)t=t.parent,a.push(t);for(var i=a.length;n!==r;)a.splice(i,0,n),n=n.parent;return a}function Ci(e){for(var t=[],n=e.parent;null!=n;)t.push(e),e=n,n=n.parent;return t.push(e),t}function Li(e){e.fixed|=2}function Ii(e){e.fixed&=-7}function Ei(e){e.fixed|=4,e.px=e.x,e.py=e.y}function Oi(e){e.fixed&=-5}i.interpolateTransform=Ti,i.layout={},i.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++n<r;)t.push(Si(e[n]));return t}},i.layout.chord=function(){var e,t,n,r,a,o,l,s={},c=0;function u(){var s,u,h,f,p,g={},v=[],m=i.range(r),y=[];for(e=[],t=[],s=0,f=-1;++f<r;){for(u=0,p=-1;++p<r;)u+=n[f][p];v.push(u),y.push(i.range(r)),s+=u}for(a&&m.sort((function(e,t){return a(v[e],v[t])})),o&&y.forEach((function(e,t){e.sort((function(e,r){return o(n[t][e],n[t][r])}))})),s=(Ee-c*r)/s,u=0,f=-1;++f<r;){for(h=u,p=-1;++p<r;){var x=m[f],b=y[x][p],w=n[x][b],_=u,k=u+=w*s;g[x+"-"+b]={index:x,subindex:b,startAngle:_,endAngle:k,value:w}}t[x]={index:x,startAngle:h,endAngle:u,value:v[x]},u+=c}for(f=-1;++f<r;)for(p=f-1;++p<r;){var T=g[f+"-"+p],M=g[p+"-"+f];(T.value||M.value)&&e.push(T.value<M.value?{source:M,target:T}:{source:T,target:M})}l&&d()}function d(){e.sort((function(e,t){return l((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)}))}return s.matrix=function(a){return arguments.length?(r=(n=a)&&n.length,e=t=null,s):n},s.padding=function(n){return arguments.length?(c=n,e=t=null,s):c},s.sortGroups=function(n){return arguments.length?(a=n,e=t=null,s):a},s.sortSubgroups=function(t){return arguments.length?(o=t,e=null,s):o},s.sortChords=function(t){return arguments.length?(l=t,e&&d(),s):l},s.chords=function(){return e||u(),e},s.groups=function(){return t||u(),t},s},i.layout.force=function(){var e,t,n,r,a,o,l={},s=i.dispatch("start","tick","end"),c=[1,1],u=.9,d=Di,h=Pi,f=-30,p=zi,g=.1,v=.64,m=[],y=[];function x(e){return function(t,n,r,a){if(t.point!==e){var i=t.cx-e.x,o=t.cy-e.y,l=a-n,s=i*i+o*o;if(l*l/v<s){if(s<p){var c=t.charge/s;e.px-=i*c,e.py-=o*c}return!0}if(t.point&&s&&s<p){c=t.pointCharge/s;e.px-=i*c,e.py-=o*c}}return!t.charge}}function b(e){e.px=i.event.x,e.py=i.event.y,l.resume()}return l.tick=function(){if((n*=.99)<.005)return e=null,s.end({type:"end",alpha:n=0}),!0;var t,l,d,h,p,v,b,w,_,k=m.length,T=y.length;for(l=0;l<T;++l)h=(d=y[l]).source,(v=(w=(p=d.target).x-h.x)*w+(_=p.y-h.y)*_)&&(w*=v=n*a[l]*((v=Math.sqrt(v))-r[l])/v,_*=v,p.x-=w*(b=h.weight+p.weight?h.weight/(h.weight+p.weight):.5),p.y-=_*b,h.x+=w*(b=1-b),h.y+=_*b);if((b=n*g)&&(w=c[0]/2,_=c[1]/2,l=-1,b))for(;++l<k;)(d=m[l]).x+=(w-d.x)*b,d.y+=(_-d.y)*b;if(f)for(!function e(t,n,r){var a=0,i=0;if(t.charge=0,!t.leaf)for(var o,l=t.nodes,s=l.length,c=-1;++c<s;)null!=(o=l[c])&&(e(o,n,r),t.charge+=o.charge,a+=o.charge*o.cx,i+=o.charge*o.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var u=n*r[t.point.index];t.charge+=t.pointCharge=u,a+=u*t.point.x,i+=u*t.point.y}t.cx=a/t.charge,t.cy=i/t.charge}(t=i.geom.quadtree(m),n,o),l=-1;++l<k;)(d=m[l]).fixed||t.visit(x(d));for(l=-1;++l<k;)(d=m[l]).fixed?(d.x=d.px,d.y=d.py):(d.x-=(d.px-(d.px=d.x))*u,d.y-=(d.py-(d.py=d.y))*u);s.tick({type:"tick",alpha:n})},l.nodes=function(e){return arguments.length?(m=e,l):m},l.links=function(e){return arguments.length?(y=e,l):y},l.size=function(e){return arguments.length?(c=e,l):c},l.linkDistance=function(e){return arguments.length?(d="function"==typeof e?e:+e,l):d},l.distance=l.linkDistance,l.linkStrength=function(e){return arguments.length?(h="function"==typeof e?e:+e,l):h},l.friction=function(e){return arguments.length?(u=+e,l):u},l.charge=function(e){return arguments.length?(f="function"==typeof e?e:+e,l):f},l.chargeDistance=function(e){return arguments.length?(p=e*e,l):Math.sqrt(p)},l.gravity=function(e){return arguments.length?(g=+e,l):g},l.theta=function(e){return arguments.length?(v=e*e,l):Math.sqrt(v)},l.alpha=function(t){return arguments.length?(t=+t,n?t>0?n=t:(e.c=null,e.t=NaN,e=null,s.end({type:"end",alpha:n=0})):t>0&&(s.start({type:"start",alpha:n=t}),e=At(l.tick)),l):n},l.start=function(){var e,t,n,i=m.length,s=y.length,u=c[0],p=c[1];for(e=0;e<i;++e)(n=m[e]).index=e,n.weight=0;for(e=0;e<s;++e)"number"==typeof(n=y[e]).source&&(n.source=m[n.source]),"number"==typeof n.target&&(n.target=m[n.target]),++n.source.weight,++n.target.weight;for(e=0;e<i;++e)n=m[e],isNaN(n.x)&&(n.x=g("x",u)),isNaN(n.y)&&(n.y=g("y",p)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(r=[],"function"==typeof d)for(e=0;e<s;++e)r[e]=+d.call(this,y[e],e);else for(e=0;e<s;++e)r[e]=d;if(a=[],"function"==typeof h)for(e=0;e<s;++e)a[e]=+h.call(this,y[e],e);else for(e=0;e<s;++e)a[e]=h;if(o=[],"function"==typeof f)for(e=0;e<i;++e)o[e]=+f.call(this,m[e],e);else for(e=0;e<i;++e)o[e]=f;function g(n,r){if(!t){for(t=new Array(i),c=0;c<i;++c)t[c]=[];for(c=0;c<s;++c){var a=y[c];t[a.source.index].push(a.target),t[a.target.index].push(a.source)}}for(var o,l=t[e],c=-1,u=l.length;++c<u;)if(!isNaN(o=l[c][n]))return o;return Math.random()*r}return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){if(t||(t=i.behavior.drag().origin(P).on("dragstart.force",Li).on("drag.force",b).on("dragend.force",Ii)),!arguments.length)return t;this.on("mouseover.force",Ei).on("mouseout.force",Oi).call(t)},i.rebind(l,s,"on")};var Di=20,Pi=1,zi=1/0;function Ni(e,t){return i.rebind(e,t,"sort","children","value"),e.nodes=e,e.links=Vi,e}function ji(e,t){for(var n=[e];null!=(e=n.pop());)if(t(e),(a=e.children)&&(r=a.length))for(var r,a;--r>=0;)n.push(a[r])}function Ri(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(i=e.children)&&(a=i.length))for(var a,i,o=-1;++o<a;)n.push(i[o]);for(;null!=(e=r.pop());)t(e)}function Fi(e){return e.children}function Bi(e){return e.value}function Hi(e,t){return t.value-e.value}function Vi(e){return i.merge(e.map((function(e){return(e.children||[]).map((function(t){return{source:e,target:t}}))})))}i.layout.hierarchy=function(){var e=Hi,t=Fi,n=Bi;function r(a){var i,o=[a],l=[];for(a.depth=0;null!=(i=o.pop());)if(l.push(i),(c=t.call(r,i,i.depth))&&(s=c.length)){for(var s,c,u;--s>=0;)o.push(u=c[s]),u.parent=i,u.depth=i.depth+1;n&&(i.value=0),i.children=c}else n&&(i.value=+n.call(r,i,i.depth)||0),delete i.children;return Ri(a,(function(t){var r,a;e&&(r=t.children)&&r.sort(e),n&&(a=t.parent)&&(a.value+=t.value)})),l}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(ji(e,(function(e){e.children&&(e.value=0)})),Ri(e,(function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)}))),e},r},i.layout.partition=function(){var e=i.layout.hierarchy(),t=[1,1];function n(n,r){var a=e.call(this,n,r);return function e(t,n,r,a){var i=t.children;if(t.x=n,t.y=t.depth*a,t.dx=r,t.dy=a,i&&(o=i.length)){var o,l,s,c=-1;for(r=t.value?r/t.value:0;++c<o;)e(l=i[c],n,s=l.value*r,a),n+=s}}(a[0],0,t[0],t[1]/function e(t){var n=t.children,r=0;if(n&&(a=n.length))for(var a,i=-1;++i<a;)r=Math.max(r,e(n[i]));return 1+r}(a[0])),a}return n.size=function(e){return arguments.length?(t=e,n):t},Ni(n,e)},i.layout.pie=function(){var e=Number,t=Gi,n=0,r=Ee,a=0;function o(l){var s,c=l.length,u=l.map((function(t,n){return+e.call(o,t,n)})),d=+("function"==typeof n?n.apply(this,arguments):n),h=("function"==typeof r?r.apply(this,arguments):r)-d,f=Math.min(Math.abs(h)/c,+("function"==typeof a?a.apply(this,arguments):a)),p=f*(h<0?-1:1),g=i.sum(u),v=g?(h-c*p)/g:0,m=i.range(c),y=[];return null!=t&&m.sort(t===Gi?function(e,t){return u[t]-u[e]}:function(e,n){return t(l[e],l[n])}),m.forEach((function(e){y[e]={data:l[e],value:s=u[e],startAngle:d,endAngle:d+=s*v+p,padAngle:f}})),y}return o.value=function(t){return arguments.length?(e=t,o):e},o.sort=function(e){return arguments.length?(t=e,o):t},o.startAngle=function(e){return arguments.length?(n=e,o):n},o.endAngle=function(e){return arguments.length?(r=e,o):r},o.padAngle=function(e){return arguments.length?(a=e,o):a},o};var Gi={};function Ui(e){return e.x}function qi(e){return e.y}function Zi(e,t,n){e.y0=t,e.y=n}i.layout.stack=function(){var e=P,t=Xi,n=$i,r=Zi,a=Ui,o=qi;function l(s,c){if(!(f=s.length))return s;var u=s.map((function(t,n){return e.call(l,t,n)})),d=u.map((function(e){return e.map((function(e,t){return[a.call(l,e,t),o.call(l,e,t)]}))})),h=t.call(l,d,c);u=i.permute(u,h),d=i.permute(d,h);var f,p,g,v,m=n.call(l,d,c),y=u[0].length;for(g=0;g<y;++g)for(r.call(l,u[0][g],v=m[g],d[0][g][1]),p=1;p<f;++p)r.call(l,u[p][g],v+=d[p-1][g][1],d[p][g][1]);return s}return l.values=function(t){return arguments.length?(e=t,l):e},l.order=function(e){return arguments.length?(t="function"==typeof e?e:Wi.get(e)||Xi,l):t},l.offset=function(e){return arguments.length?(n="function"==typeof e?e:Yi.get(e)||$i,l):n},l.x=function(e){return arguments.length?(a=e,l):a},l.y=function(e){return arguments.length?(o=e,l):o},l.out=function(e){return arguments.length?(r=e,l):r},l};var Wi=i.map({"inside-out":function(e){var t,n,r=e.length,a=e.map(Ji),o=e.map(Ki),l=i.range(r).sort((function(e,t){return a[e]-a[t]})),s=0,c=0,u=[],d=[];for(t=0;t<r;++t)n=l[t],s<c?(s+=o[n],u.push(n)):(c+=o[n],d.push(n));return d.reverse().concat(u)},reverse:function(e){return i.range(e.length).reverse()},default:Xi}),Yi=i.map({silhouette:function(e){var t,n,r,a=e.length,i=e[0].length,o=[],l=0,s=[];for(n=0;n<i;++n){for(t=0,r=0;t<a;t++)r+=e[t][n][1];r>l&&(l=r),o.push(r)}for(n=0;n<i;++n)s[n]=(l-o[n])/2;return s},wiggle:function(e){var t,n,r,a,i,o,l,s,c,u=e.length,d=e[0],h=d.length,f=[];for(f[0]=s=c=0,n=1;n<h;++n){for(t=0,a=0;t<u;++t)a+=e[t][n][1];for(t=0,i=0,l=d[n][0]-d[n-1][0];t<u;++t){for(r=0,o=(e[t][n][1]-e[t][n-1][1])/(2*l);r<t;++r)o+=(e[r][n][1]-e[r][n-1][1])/l;i+=o*e[t][n][1]}f[n]=s-=a?i/a*l:0,s<c&&(c=s)}for(n=0;n<h;++n)f[n]-=c;return f},expand:function(e){var t,n,r,a=e.length,i=e[0].length,o=1/a,l=[];for(n=0;n<i;++n){for(t=0,r=0;t<a;t++)r+=e[t][n][1];if(r)for(t=0;t<a;t++)e[t][n][1]/=r;else for(t=0;t<a;t++)e[t][n][1]=o}for(n=0;n<i;++n)l[n]=0;return l},zero:$i});function Xi(e){return i.range(e.length)}function $i(e){for(var t=-1,n=e[0].length,r=[];++t<n;)r[t]=0;return r}function Ji(e){for(var t,n=1,r=0,a=e[0][1],i=e.length;n<i;++n)(t=e[n][1])>a&&(r=n,a=t);return r}function Ki(e){return e.reduce(Qi,0)}function Qi(e,t){return e+t[1]}function eo(e,t){return to(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function to(e,t){for(var n=-1,r=+e[0],a=(e[1]-r)/t,i=[];++n<=t;)i[n]=a*n+r;return i}function no(e){return[i.min(e),i.max(e)]}function ro(e,t){return e.value-t.value}function ao(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function io(e,t){e._pack_next=t,t._pack_prev=e}function oo(e,t){var n=t.x-e.x,r=t.y-e.y,a=e.r+t.r;return.999*a*a>n*n+r*r}function lo(e){if((t=e.children)&&(s=t.length)){var t,n,r,a,i,o,l,s,c=1/0,u=-1/0,d=1/0,h=-1/0;if(t.forEach(so),(n=t[0]).x=-n.r,n.y=0,x(n),s>1&&((r=t[1]).x=r.r,r.y=0,x(r),s>2))for(uo(n,r,a=t[2]),x(a),ao(n,a),n._pack_prev=a,ao(a,r),r=n._pack_next,i=3;i<s;i++){uo(n,r,a=t[i]);var f=0,p=1,g=1;for(o=r._pack_next;o!==r;o=o._pack_next,p++)if(oo(o,a)){f=1;break}if(1==f)for(l=n._pack_prev;l!==o._pack_prev&&!oo(l,a);l=l._pack_prev,g++);f?(p<g||p==g&&r.r<n.r?io(n,r=o):io(n=l,r),i--):(ao(n,a),r=a,x(a))}var v=(c+u)/2,m=(d+h)/2,y=0;for(i=0;i<s;i++)(a=t[i]).x-=v,a.y-=m,y=Math.max(y,a.r+Math.sqrt(a.x*a.x+a.y*a.y));e.r=y,t.forEach(co)}function x(e){c=Math.min(e.x-e.r,c),u=Math.max(e.x+e.r,u),d=Math.min(e.y-e.r,d),h=Math.max(e.y+e.r,h)}}function so(e){e._pack_next=e._pack_prev=e}function co(e){delete e._pack_next,delete e._pack_prev}function uo(e,t,n){var r=e.r+n.r,a=t.x-e.x,i=t.y-e.y;if(r&&(a||i)){var o=t.r+n.r,l=a*a+i*i,s=.5+((r*=r)-(o*=o))/(2*l),c=Math.sqrt(Math.max(0,2*o*(r+l)-(r-=l)*r-o*o))/(2*l);n.x=e.x+s*a+c*i,n.y=e.y+s*i-c*a}else n.x=e.x+r,n.y=e.y}function ho(e,t){return e.parent==t.parent?1:2}function fo(e){var t=e.children;return t.length?t[0]:e.t}function po(e){var t,n=e.children;return(t=n.length)?n[t-1]:e.t}function go(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function vo(e,t,n){return e.a.parent===t.parent?e.a:n}function mo(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function yo(e,t){var n=e.x+t[3],r=e.y+t[0],a=e.dx-t[1]-t[3],i=e.dy-t[0]-t[2];return a<0&&(n+=a/2,a=0),i<0&&(r+=i/2,i=0),{x:n,y:r,dx:a,dy:i}}function xo(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]}function bo(e){return e.rangeExtent?e.rangeExtent():xo(e.range())}function wo(e,t,n,r){var a=n(e[0],e[1]),i=r(t[0],t[1]);return function(e){return i(a(e))}}function _o(e,t){var n,r=0,a=e.length-1,i=e[r],o=e[a];return o<i&&(n=r,r=a,a=n,n=i,i=o,o=n),e[r]=t.floor(i),e[a]=t.ceil(o),e}function ko(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:To}i.layout.histogram=function(){var e=!0,t=Number,n=no,r=eo;function a(a,o){for(var l,s,c=[],u=a.map(t,this),d=n.call(this,u,o),h=r.call(this,d,u,o),f=(o=-1,u.length),p=h.length-1,g=e?1:1/f;++o<p;)(l=c[o]=[]).dx=h[o+1]-(l.x=h[o]),l.y=0;if(p>0)for(o=-1;++o<f;)(s=u[o])>=d[0]&&s<=d[1]&&((l=c[i.bisect(h,s,1,p)-1]).y+=g,l.push(a[o]));return c}return a.value=function(e){return arguments.length?(t=e,a):t},a.range=function(e){return arguments.length?(n=yt(e),a):n},a.bins=function(e){return arguments.length?(r="number"==typeof e?function(t){return to(t,e)}:yt(e),a):r},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},i.layout.pack=function(){var e,t=i.layout.hierarchy().sort(ro),n=0,r=[1,1];function a(a,i){var o=t.call(this,a,i),l=o[0],s=r[0],c=r[1],u=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(l.x=l.y=0,Ri(l,(function(e){e.r=+u(e.value)})),Ri(l,lo),n){var d=n*(e?1:Math.max(2*l.r/s,2*l.r/c))/2;Ri(l,(function(e){e.r+=d})),Ri(l,lo),Ri(l,(function(e){e.r-=d}))}return function e(t,n,r,a){var i=t.children;if(t.x=n+=a*t.x,t.y=r+=a*t.y,t.r*=a,i)for(var o=-1,l=i.length;++o<l;)e(i[o],n,r,a)}(l,s/2,c/2,e?1:1/Math.max(2*l.r/s,2*l.r/c)),o}return a.size=function(e){return arguments.length?(r=e,a):r},a.radius=function(t){return arguments.length?(e=null==t||"function"==typeof t?t:+t,a):e},a.padding=function(e){return arguments.length?(n=+e,a):n},Ni(a,t)},i.layout.tree=function(){var e=i.layout.hierarchy().sort(null).value(null),t=ho,n=[1,1],r=null;function a(a,i){var c=e.call(this,a,i),u=c[0],d=function(e){var t,n={A:null,children:[e]},r=[n];for(;null!=(t=r.pop());)for(var a,i=t.children,o=0,l=i.length;o<l;++o)r.push((i[o]=a={_:i[o],parent:t,children:(a=i[o].children)&&a.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=a);return n.children[0]}(u);if(Ri(d,o),d.parent.m=-d.z,ji(d,l),r)ji(u,s);else{var h=u,f=u,p=u;ji(u,(function(e){e.x<h.x&&(h=e),e.x>f.x&&(f=e),e.depth>p.depth&&(p=e)}));var g=t(h,f)/2-h.x,v=n[0]/(f.x+t(f,h)/2+g),m=n[1]/(p.depth||1);ji(u,(function(e){e.x=(e.x+g)*v,e.y=e.depth*m}))}return c}function o(e){var n=e.children,r=e.parent.children,a=e.i?r[e.i-1]:null;if(n.length){!function(e){var t,n=0,r=0,a=e.children,i=a.length;for(;--i>=0;)(t=a[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(e);var i=(n[0].z+n[n.length-1].z)/2;a?(e.z=a.z+t(e._,a._),e.m=e.z-i):e.z=i}else a&&(e.z=a.z+t(e._,a._));e.parent.A=function(e,n,r){if(n){for(var a,i=e,o=e,l=n,s=i.parent.children[0],c=i.m,u=o.m,d=l.m,h=s.m;l=po(l),i=fo(i),l&&i;)s=fo(s),(o=po(o)).a=e,(a=l.z+d-i.z-c+t(l._,i._))>0&&(go(vo(l,e,r),e,a),c+=a,u+=a),d+=l.m,c+=i.m,h+=s.m,u+=o.m;l&&!po(o)&&(o.t=l,o.m+=d-u),i&&!fo(s)&&(s.t=i,s.m+=c-h,r=e)}return r}(e,a,e.parent.A||r[0])}function l(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=n[0],e.y=e.depth*n[1]}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(r=null==(n=e)?s:null,a):r?null:n},a.nodeSize=function(e){return arguments.length?(r=null==(n=e)?null:s,a):r?n:null},Ni(a,e)},i.layout.cluster=function(){var e=i.layout.hierarchy().sort(null).value(null),t=ho,n=[1,1],r=!1;function a(a,o){var l,s=e.call(this,a,o),c=s[0],u=0;Ri(c,(function(e){var n=e.children;n&&n.length?(e.x=function(e){return e.reduce((function(e,t){return e+t.x}),0)/e.length}(n),e.y=function(e){return 1+i.max(e,(function(e){return e.y}))}(n)):(e.x=l?u+=t(e,l):0,e.y=0,l=e)}));var d=function e(t){var n=t.children;return n&&n.length?e(n[0]):t}(c),h=function e(t){var n,r=t.children;return r&&(n=r.length)?e(r[n-1]):t}(c),f=d.x-t(d,h)/2,p=h.x+t(h,d)/2;return Ri(c,r?function(e){e.x=(e.x-c.x)*n[0],e.y=(c.y-e.y)*n[1]}:function(e){e.x=(e.x-f)/(p-f)*n[0],e.y=(1-(c.y?e.y/c.y:1))*n[1]}),s}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(r=null==(n=e),a):r?null:n},a.nodeSize=function(e){return arguments.length?(r=null!=(n=e),a):r?n:null},Ni(a,e)},i.layout.treemap=function(){var e,t=i.layout.hierarchy(),n=Math.round,r=[1,1],a=null,o=mo,l=!1,s="squarify",c=.5*(1+Math.sqrt(5));function u(e,t){for(var n,r,a=-1,i=e.length;++a<i;)r=(n=e[a]).value*(t<0?0:t),n.area=isNaN(r)||r<=0?0:r}function d(e){var t=e.children;if(t&&t.length){var n,r,a,i=o(e),l=[],c=t.slice(),h=1/0,g="slice"===s?i.dx:"dice"===s?i.dy:"slice-dice"===s?1&e.depth?i.dy:i.dx:Math.min(i.dx,i.dy);for(u(c,i.dx*i.dy/e.value),l.area=0;(a=c.length)>0;)l.push(n=c[a-1]),l.area+=n.area,"squarify"!==s||(r=f(l,g))<=h?(c.pop(),h=r):(l.area-=l.pop().area,p(l,g,i,!1),g=Math.min(i.dx,i.dy),l.length=l.area=0,h=1/0);l.length&&(p(l,g,i,!0),l.length=l.area=0),t.forEach(d)}}function h(e){var t=e.children;if(t&&t.length){var n,r=o(e),a=t.slice(),i=[];for(u(a,r.dx*r.dy/e.value),i.area=0;n=a.pop();)i.push(n),i.area+=n.area,null!=n.z&&(p(i,n.z?r.dx:r.dy,r,!a.length),i.length=i.area=0);t.forEach(h)}}function f(e,t){for(var n,r=e.area,a=0,i=1/0,o=-1,l=e.length;++o<l;)(n=e[o].area)&&(n<i&&(i=n),n>a&&(a=n));return t*=t,(r*=r)?Math.max(t*a*c/r,r/(t*i*c)):1/0}function p(e,t,r,a){var i,o=-1,l=e.length,s=r.x,c=r.y,u=t?n(e.area/t):0;if(t==r.dx){for((a||u>r.dy)&&(u=r.dy);++o<l;)(i=e[o]).x=s,i.y=c,i.dy=u,s+=i.dx=Math.min(r.x+r.dx-s,u?n(i.area/u):0);i.z=!0,i.dx+=r.x+r.dx-s,r.y+=u,r.dy-=u}else{for((a||u>r.dx)&&(u=r.dx);++o<l;)(i=e[o]).x=s,i.y=c,i.dx=u,c+=i.dy=Math.min(r.y+r.dy-c,u?n(i.area/u):0);i.z=!1,i.dy+=r.y+r.dy-c,r.x+=u,r.dx-=u}}function g(n){var a=e||t(n),i=a[0];return i.x=i.y=0,i.value?(i.dx=r[0],i.dy=r[1]):i.dx=i.dy=0,e&&t.revalue(i),u([i],i.dx*i.dy/i.value),(e?h:d)(i),l&&(e=a),a}return g.size=function(e){return arguments.length?(r=e,g):r},g.padding=function(e){if(!arguments.length)return a;function t(t){var n=e.call(g,t,t.depth);return null==n?mo(t):yo(t,"number"==typeof n?[n,n,n,n]:n)}function n(t){return yo(t,e)}var r;return o=null==(a=e)?mo:"function"==(r=typeof e)?t:"number"===r?(e=[e,e,e,e],n):n,g},g.round=function(e){return arguments.length?(n=e?Math.round:Number,g):n!=Number},g.sticky=function(t){return arguments.length?(l=t,e=null,g):l},g.ratio=function(e){return arguments.length?(c=e,g):c},g.mode=function(e){return arguments.length?(s=e+"",g):s},Ni(g,t)},i.random={normal:function(e,t){var n=arguments.length;return n<2&&(t=1),n<1&&(e=0),function(){var n,r,a;do{a=(n=2*Math.random()-1)*n+(r=2*Math.random()-1)*r}while(!a||a>1);return e+t*n*Math.sqrt(-2*Math.log(a)/a)}},logNormal:function(){var e=i.random.normal.apply(i,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=i.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n<e;n++)t+=Math.random();return t}}},i.scale={};var To={floor:P,ceil:P};function Mo(e,t,n,r){var a=[],o=[],l=0,s=Math.min(e.length,t.length)-1;for(e[s]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<=s;)a.push(n(e[l-1],e[l])),o.push(r(t[l-1],t[l]));return function(t){var n=i.bisect(e,t,1,s)-1;return o[n](a[n](t))}}function Ao(e,t){return i.rebind(e,t,"range","rangeRound","interpolate","clamp")}function So(e,t){return _o(e,ko(Co(e,t)[2])),_o(e,ko(Co(e,t)[2])),e}function Co(e,t){null==t&&(t=10);var n=xo(e),r=n[1]-n[0],a=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*a;return i<=.15?a*=10:i<=.35?a*=5:i<=.75&&(a*=2),n[0]=Math.ceil(n[0]/a)*a,n[1]=Math.floor(n[1]/a)*a+.5*a,n[2]=a,n}function Lo(e,t){return i.range.apply(i,Co(e,t))}function Io(e,t,n){var r=Co(e,t);if(n){var a=Dt.exec(n);if(a.shift(),"s"===a[8]){var o=i.formatPrefix(Math.max(_(r[0]),_(r[1])));return a[7]||(a[7]="."+Oo(o.scale(r[2]))),a[8]="f",n=i.format(a.join("")),function(e){return n(o.scale(e))+o.symbol}}a[7]||(a[7]="."+function(e,t){var n=Oo(t[2]);return e in Eo?Math.abs(n-Oo(Math.max(_(t[0]),_(t[1]))))+ +("e"!==e):n-2*("%"===e)}(a[8],r)),n=a.join("")}else n=",."+Oo(r[2])+"f";return i.format(n)}i.scale.linear=function(){return function e(t,n,r,a){var i,o;function l(){var e=Math.min(t.length,n.length)>2?Mo:wo,l=a?Ai:Mi;return i=e(t,n,l,r),o=e(n,t,l,ri),s}function s(e){return i(e)}return s.invert=function(e){return o(e)},s.domain=function(e){return arguments.length?(t=e.map(Number),l()):t},s.range=function(e){return arguments.length?(n=e,l()):n},s.rangeRound=function(e){return s.range(e).interpolate(yi)},s.clamp=function(e){return arguments.length?(a=e,l()):a},s.interpolate=function(e){return arguments.length?(r=e,l()):r},s.ticks=function(e){return Lo(t,e)},s.tickFormat=function(e,n){return Io(t,e,n)},s.nice=function(e){return So(t,e),l()},s.copy=function(){return e(t,n,r,a)},l()}([0,1],[0,1],ri,!1)};var Eo={s:1,g:1,p:1,r:1,e:1};function Oo(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}i.scale.log=function(){return function e(t,n,r,a){function o(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(n)}function l(e){return r?Math.pow(n,e):-Math.pow(n,-e)}function s(e){return t(o(e))}return s.invert=function(e){return l(t.invert(e))},s.domain=function(e){return arguments.length?(r=e[0]>=0,t.domain((a=e.map(Number)).map(o)),s):a},s.base=function(e){return arguments.length?(n=+e,t.domain(a.map(o)),s):n},s.nice=function(){var e=_o(a.map(o),r?Math:Po);return t.domain(e),a=e.map(l),s},s.ticks=function(){var e=xo(a),t=[],i=e[0],s=e[1],c=Math.floor(o(i)),u=Math.ceil(o(s)),d=n%1?2:n;if(isFinite(u-c)){if(r){for(;c<u;c++)for(var h=1;h<d;h++)t.push(l(c)*h);t.push(l(c))}else for(t.push(l(c));c++<u;)for(h=d-1;h>0;h--)t.push(l(c)*h);for(c=0;t[c]<i;c++);for(u=t.length;t[u-1]>s;u--);t=t.slice(c,u)}return t},s.tickFormat=function(e,t){if(!arguments.length)return Do;arguments.length<2?t=Do:"function"!=typeof t&&(t=i.format(t));var r=Math.max(1,n*e/s.ticks().length);return function(e){var a=e/l(Math.round(o(e)));return a*n<n-.5&&(a*=n),a<=r?t(e):""}},s.copy=function(){return e(t.copy(),n,r,a)},Ao(s,t)}(i.scale.linear().domain([0,1]),10,!0,[1,10])};var Do=i.format(".0e"),Po={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};function zo(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}i.scale.pow=function(){return function e(t,n,r){var a=zo(n),i=zo(1/n);function o(e){return t(a(e))}return o.invert=function(e){return i(t.invert(e))},o.domain=function(e){return arguments.length?(t.domain((r=e.map(Number)).map(a)),o):r},o.ticks=function(e){return Lo(r,e)},o.tickFormat=function(e,t){return Io(r,e,t)},o.nice=function(e){return o.domain(So(r,e))},o.exponent=function(e){return arguments.length?(a=zo(n=e),i=zo(1/n),t.domain(r.map(a)),o):n},o.copy=function(){return e(t.copy(),n,r)},Ao(o,t)}(i.scale.linear(),1,[0,1])},i.scale.sqrt=function(){return i.scale.pow().exponent(.5)},i.scale.ordinal=function(){return function e(t,n){var r,a,o;function l(e){return a[((r.get(e)||("range"===n.t?r.set(e,t.push(e)):NaN))-1)%a.length]}function s(e,n){return i.range(t.length).map((function(t){return e+n*t}))}return l.domain=function(e){if(!arguments.length)return t;t=[],r=new M;for(var a,i=-1,o=e.length;++i<o;)r.has(a=e[i])||r.set(a,t.push(a));return l[n.t].apply(l,n.a)},l.range=function(e){return arguments.length?(a=e,o=0,n={t:"range",a:arguments},l):a},l.rangePoints=function(e,r){arguments.length<2&&(r=0);var i=e[0],c=e[1],u=t.length<2?(i=(i+c)/2,0):(c-i)/(t.length-1+r);return a=s(i+u*r/2,u),o=0,n={t:"rangePoints",a:arguments},l},l.rangeRoundPoints=function(e,r){arguments.length<2&&(r=0);var i=e[0],c=e[1],u=t.length<2?(i=c=Math.round((i+c)/2),0):(c-i)/(t.length-1+r)|0;return a=s(i+Math.round(u*r/2+(c-i-(t.length-1+r)*u)/2),u),o=0,n={t:"rangeRoundPoints",a:arguments},l},l.rangeBands=function(e,r,i){arguments.length<2&&(r=0),arguments.length<3&&(i=r);var c=e[1]<e[0],u=e[c-0],d=e[1-c],h=(d-u)/(t.length-r+2*i);return a=s(u+h*i,h),c&&a.reverse(),o=h*(1-r),n={t:"rangeBands",a:arguments},l},l.rangeRoundBands=function(e,r,i){arguments.length<2&&(r=0),arguments.length<3&&(i=r);var c=e[1]<e[0],u=e[c-0],d=e[1-c],h=Math.floor((d-u)/(t.length-r+2*i));return a=s(u+Math.round((d-u-(t.length-r)*h)/2),h),c&&a.reverse(),o=Math.round(h*(1-r)),n={t:"rangeRoundBands",a:arguments},l},l.rangeBand=function(){return o},l.rangeExtent=function(){return xo(n.a[0])},l.copy=function(){return e(t,n)},l.domain(t)}([],{t:"range",a:[[]]})},i.scale.category10=function(){return i.scale.ordinal().range(No)},i.scale.category20=function(){return i.scale.ordinal().range(jo)},i.scale.category20b=function(){return i.scale.ordinal().range(Ro)},i.scale.category20c=function(){return i.scale.ordinal().range(Fo)};var No=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ct),jo=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ct),Ro=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ct),Fo=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ct);function Bo(){return 0}i.scale.quantile=function(){return function e(t,n){var r;function a(){var e=0,a=n.length;for(r=[];++e<a;)r[e-1]=i.quantile(t,e/a);return o}function o(e){if(!isNaN(e=+e))return n[i.bisect(r,e)]}return o.domain=function(e){return arguments.length?(t=e.map(m).filter(y).sort(v),a()):t},o.range=function(e){return arguments.length?(n=e,a()):n},o.quantiles=function(){return r},o.invertExtent=function(e){return(e=n.indexOf(e))<0?[NaN,NaN]:[e>0?r[e-1]:t[0],e<r.length?r[e]:t[t.length-1]]},o.copy=function(){return e(t,n)},a()}([],[])},i.scale.quantize=function(){return function e(t,n,r){var a,i;function o(e){return r[Math.max(0,Math.min(i,Math.floor(a*(e-t))))]}function l(){return a=r.length/(n-t),i=r.length-1,o}return o.domain=function(e){return arguments.length?(t=+e[0],n=+e[e.length-1],l()):[t,n]},o.range=function(e){return arguments.length?(r=e,l()):r},o.invertExtent=function(e){return[e=(e=r.indexOf(e))<0?NaN:e/a+t,e+1/a]},o.copy=function(){return e(t,n,r)},l()}(0,1,[0,1])},i.scale.threshold=function(){return function e(t,n){function r(e){if(e<=e)return n[i.bisect(t,e)]}return r.domain=function(e){return arguments.length?(t=e,r):t},r.range=function(e){return arguments.length?(n=e,r):n},r.invertExtent=function(e){return e=n.indexOf(e),[t[e-1],t[e]]},r.copy=function(){return e(t,n)},r}([.5],[0,1])},i.scale.identity=function(){return function e(t){function n(e){return+e}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=e.map(n),n):t},n.ticks=function(e){return Lo(t,e)},n.tickFormat=function(e,n){return Io(t,e,n)},n.copy=function(){return e(t)},n}([0,1])},i.svg={},i.svg.arc=function(){var e=Vo,t=Go,n=Bo,r=Ho,a=Uo,i=qo,o=Zo;function l(){var l=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+t.apply(this,arguments)),u=a.apply(this,arguments)-De,d=i.apply(this,arguments)-De,h=Math.abs(d-u),f=u>d?0:1;if(c<l&&(p=c,c=l,l=p),h>=Oe)return s(c,f)+(l?s(l,1-f):"")+"Z";var p,g,v,m,y,x,b,w,_,k,T,M,A=0,S=0,C=[];if((m=(+o.apply(this,arguments)||0)/2)&&(v=r===Ho?Math.sqrt(l*l+c*c):+r.apply(this,arguments),f||(S*=-1),c&&(S=Fe(v/c*Math.sin(m))),l&&(A=Fe(v/l*Math.sin(m)))),c){y=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(d-S),w=c*Math.sin(d-S);var L=Math.abs(d-u-2*S)<=Ie?0:1;if(S&&Wo(y,x,b,w)===f^L){var I=(u+d)/2;y=c*Math.cos(I),x=c*Math.sin(I),b=w=null}}else y=x=0;if(l){_=l*Math.cos(d-A),k=l*Math.sin(d-A),T=l*Math.cos(u+A),M=l*Math.sin(u+A);var E=Math.abs(u-d+2*A)<=Ie?0:1;if(A&&Wo(_,k,T,M)===1-f^E){var O=(u+d)/2;_=l*Math.cos(O),k=l*Math.sin(O),T=M=null}}else _=k=0;if(h>Ce&&(p=Math.min(Math.abs(c-l)/2,+n.apply(this,arguments)))>.001){g=l<c^f?0:1;var D=p,P=p;if(h<Ie){var z=null==T?[_,k]:null==b?[y,x]:ha([y,x],[T,M],[b,w],[_,k]),N=y-z[0],j=x-z[1],R=b-z[0],F=w-z[1],B=1/Math.sin(Math.acos((N*R+j*F)/(Math.sqrt(N*N+j*j)*Math.sqrt(R*R+F*F)))/2),H=Math.sqrt(z[0]*z[0]+z[1]*z[1]);P=Math.min(p,(l-H)/(B-1)),D=Math.min(p,(c-H)/(B+1))}if(null!=b){var V=Yo(null==T?[_,k]:[T,M],[y,x],c,D,f),G=Yo([b,w],[_,k],c,D,f);p===D?C.push("M",V[0],"A",D,",",D," 0 0,",g," ",V[1],"A",c,",",c," 0 ",1-f^Wo(V[1][0],V[1][1],G[1][0],G[1][1]),",",f," ",G[1],"A",D,",",D," 0 0,",g," ",G[0]):C.push("M",V[0],"A",D,",",D," 0 1,",g," ",G[0])}else C.push("M",y,",",x);if(null!=T){var U=Yo([y,x],[T,M],l,-P,f),q=Yo([_,k],null==b?[y,x]:[b,w],l,-P,f);p===P?C.push("L",q[0],"A",P,",",P," 0 0,",g," ",q[1],"A",l,",",l," 0 ",f^Wo(q[1][0],q[1][1],U[1][0],U[1][1]),",",1-f," ",U[1],"A",P,",",P," 0 0,",g," ",U[0]):C.push("L",q[0],"A",P,",",P," 0 0,",g," ",U[0])}else C.push("L",_,",",k)}else C.push("M",y,",",x),null!=b&&C.push("A",c,",",c," 0 ",L,",",f," ",b,",",w),C.push("L",_,",",k),null!=T&&C.push("A",l,",",l," 0 ",E,",",1-f," ",T,",",M);return C.push("Z"),C.join("")}function s(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}return l.innerRadius=function(t){return arguments.length?(e=yt(t),l):e},l.outerRadius=function(e){return arguments.length?(t=yt(e),l):t},l.cornerRadius=function(e){return arguments.length?(n=yt(e),l):n},l.padRadius=function(e){return arguments.length?(r=e==Ho?Ho:yt(e),l):r},l.startAngle=function(e){return arguments.length?(a=yt(e),l):a},l.endAngle=function(e){return arguments.length?(i=yt(e),l):i},l.padAngle=function(e){return arguments.length?(o=yt(e),l):o},l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+a.apply(this,arguments)+ +i.apply(this,arguments))/2-De;return[Math.cos(r)*n,Math.sin(r)*n]},l};var Ho="auto";function Vo(e){return e.innerRadius}function Go(e){return e.outerRadius}function Uo(e){return e.startAngle}function qo(e){return e.endAngle}function Zo(e){return e&&e.padAngle}function Wo(e,t,n,r){return(e-n)*t-(t-r)*e>0?0:1}function Yo(e,t,n,r,a){var i=e[0]-t[0],o=e[1]-t[1],l=(a?r:-r)/Math.sqrt(i*i+o*o),s=l*o,c=-l*i,u=e[0]+s,d=e[1]+c,h=t[0]+s,f=t[1]+c,p=(u+h)/2,g=(d+f)/2,v=h-u,m=f-d,y=v*v+m*m,x=n-r,b=u*f-h*d,w=(m<0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),_=(b*m-v*w)/y,k=(-b*v-m*w)/y,T=(b*m+v*w)/y,M=(-b*v+m*w)/y,A=_-p,S=k-g,C=T-p,L=M-g;return A*A+S*S>C*C+L*L&&(_=T,k=M),[[_-s,k-c],[_*n/x,k*n/x]]}function Xo(e){var t=oa,n=la,r=Jn,a=Jo,i=a.key,o=.7;function l(i){var l,s=[],c=[],u=-1,d=i.length,h=yt(t),f=yt(n);function p(){s.push("M",a(e(c),o))}for(;++u<d;)r.call(this,l=i[u],u)?c.push([+h.call(this,l,u),+f.call(this,l,u)]):c.length&&(p(),c=[]);return c.length&&p(),s.length?s.join(""):null}return l.x=function(e){return arguments.length?(t=e,l):t},l.y=function(e){return arguments.length?(n=e,l):n},l.defined=function(e){return arguments.length?(r=e,l):r},l.interpolate=function(e){return arguments.length?(i="function"==typeof e?a=e:(a=$o.get(e)||Jo).key,l):i},l.tension=function(e){return arguments.length?(o=e,l):o},l}i.svg.line=function(){return Xo(P)};var $o=i.map({linear:Jo,"linear-closed":Ko,step:function(e){var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];for(;++t<n;)a.push("H",(r[0]+(r=e[t])[0])/2,"V",r[1]);n>1&&a.push("H",r[0]);return a.join("")},"step-before":Qo,"step-after":el,basis:rl,"basis-open":function(e){if(e.length<4)return Jo(e);var t,n=[],r=-1,a=e.length,i=[0],o=[0];for(;++r<3;)t=e[r],i.push(t[0]),o.push(t[1]);n.push(al(ll,i)+","+al(ll,o)),--r;for(;++r<a;)t=e[r],i.shift(),i.push(t[0]),o.shift(),o.push(t[1]),sl(n,i,o);return n.join("")},"basis-closed":function(e){var t,n,r=-1,a=e.length,i=a+4,o=[],l=[];for(;++r<4;)n=e[r%a],o.push(n[0]),l.push(n[1]);t=[al(ll,o),",",al(ll,l)],--r;for(;++r<i;)n=e[r%a],o.shift(),o.push(n[0]),l.shift(),l.push(n[1]),sl(t,o,l);return t.join("")},bundle:function(e,t){var n=e.length-1;if(n)for(var r,a,i=e[0][0],o=e[0][1],l=e[n][0]-i,s=e[n][1]-o,c=-1;++c<=n;)r=e[c],a=c/n,r[0]=t*r[0]+(1-t)*(i+a*l),r[1]=t*r[1]+(1-t)*(o+a*s);return rl(e)},cardinal:function(e,t){return e.length<3?Jo(e):e[0]+tl(e,nl(e,t))},"cardinal-open":function(e,t){return e.length<4?Jo(e):e[1]+tl(e.slice(1,-1),nl(e,t))},"cardinal-closed":function(e,t){return e.length<3?Ko(e):e[0]+tl((e.push(e[0]),e),nl([e[e.length-2]].concat(e,[e[1]]),t))},monotone:function(e){return e.length<3?Jo(e):e[0]+tl(e,function(e){var t,n,r,a,i=[],o=function(e){var t=0,n=e.length-1,r=[],a=e[0],i=e[1],o=r[0]=cl(a,i);for(;++t<n;)r[t]=(o+(o=cl(a=i,i=e[t+1])))/2;return r[t]=o,r}(e),l=-1,s=e.length-1;for(;++l<s;)t=cl(e[l],e[l+1]),_(t)<Ce?o[l]=o[l+1]=0:(n=o[l]/t,r=o[l+1]/t,(a=n*n+r*r)>9&&(a=3*t/Math.sqrt(a),o[l]=a*n,o[l+1]=a*r));l=-1;for(;++l<=s;)a=(e[Math.min(s,l+1)][0]-e[Math.max(0,l-1)][0])/(6*(1+o[l]*o[l])),i.push([a||0,o[l]*a||0]);return i}(e))}});function Jo(e){return e.length>1?e.join("L"):e+"Z"}function Ko(e){return e.join("L")+"Z"}function Qo(e){for(var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];++t<n;)a.push("V",(r=e[t])[1],"H",r[0]);return a.join("")}function el(e){for(var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];++t<n;)a.push("H",(r=e[t])[0],"V",r[1]);return a.join("")}function tl(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return Jo(e);var n=e.length!=t.length,r="",a=e[0],i=e[1],o=t[0],l=o,s=1;if(n&&(r+="Q"+(i[0]-2*o[0]/3)+","+(i[1]-2*o[1]/3)+","+i[0]+","+i[1],a=e[1],s=2),t.length>1){l=t[1],i=e[s],s++,r+="C"+(a[0]+o[0])+","+(a[1]+o[1])+","+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1];for(var c=2;c<t.length;c++,s++)i=e[s],l=t[c],r+="S"+(i[0]-l[0])+","+(i[1]-l[1])+","+i[0]+","+i[1]}if(n){var u=e[s];r+="Q"+(i[0]+2*l[0]/3)+","+(i[1]+2*l[1]/3)+","+u[0]+","+u[1]}return r}function nl(e,t){for(var n,r=[],a=(1-t)/2,i=e[0],o=e[1],l=1,s=e.length;++l<s;)n=i,i=o,o=e[l],r.push([a*(o[0]-n[0]),a*(o[1]-n[1])]);return r}function rl(e){if(e.length<3)return Jo(e);var t=1,n=e.length,r=e[0],a=r[0],i=r[1],o=[a,a,a,(r=e[1])[0]],l=[i,i,i,r[1]],s=[a,",",i,"L",al(ll,o),",",al(ll,l)];for(e.push(e[n-1]);++t<=n;)r=e[t],o.shift(),o.push(r[0]),l.shift(),l.push(r[1]),sl(s,o,l);return e.pop(),s.push("L",r),s.join("")}function al(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}$o.forEach((function(e,t){t.key=e,t.closed=/-closed$/.test(e)}));var il=[0,2/3,1/3,0],ol=[0,1/3,2/3,0],ll=[0,1/6,2/3,1/6];function sl(e,t,n){e.push("C",al(il,t),",",al(il,n),",",al(ol,t),",",al(ol,n),",",al(ll,t),",",al(ll,n))}function cl(e,t){return(t[1]-e[1])/(t[0]-e[0])}function ul(e){for(var t,n,r,a=-1,i=e.length;++a<i;)n=(t=e[a])[0],r=t[1]-De,t[0]=n*Math.cos(r),t[1]=n*Math.sin(r);return e}function dl(e){var t=oa,n=oa,r=0,a=la,i=Jn,o=Jo,l=o.key,s=o,c="L",u=.7;function d(l){var d,h,f,p=[],g=[],v=[],m=-1,y=l.length,x=yt(t),b=yt(r),w=t===n?function(){return h}:yt(n),_=r===a?function(){return f}:yt(a);function k(){p.push("M",o(e(v),u),c,s(e(g.reverse()),u),"Z")}for(;++m<y;)i.call(this,d=l[m],m)?(g.push([h=+x.call(this,d,m),f=+b.call(this,d,m)]),v.push([+w.call(this,d,m),+_.call(this,d,m)])):g.length&&(k(),g=[],v=[]);return g.length&&k(),p.length?p.join(""):null}return d.x=function(e){return arguments.length?(t=n=e,d):n},d.x0=function(e){return arguments.length?(t=e,d):t},d.x1=function(e){return arguments.length?(n=e,d):n},d.y=function(e){return arguments.length?(r=a=e,d):a},d.y0=function(e){return arguments.length?(r=e,d):r},d.y1=function(e){return arguments.length?(a=e,d):a},d.defined=function(e){return arguments.length?(i=e,d):i},d.interpolate=function(e){return arguments.length?(l="function"==typeof e?o=e:(o=$o.get(e)||Jo).key,s=o.reverse||o,c=o.closed?"M":"L",d):l},d.tension=function(e){return arguments.length?(u=e,d):u},d}function hl(e){return e.radius}function fl(e){return[e.x,e.y]}function pl(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-De;return[n*Math.cos(r),n*Math.sin(r)]}}function gl(){return 64}function vl(){return"circle"}function ml(e){var t=Math.sqrt(e/Ie);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}i.svg.line.radial=function(){var e=Xo(ul);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},Qo.reverse=el,el.reverse=Qo,i.svg.area=function(){return dl(P)},i.svg.area.radial=function(){var e=dl(ul);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},i.svg.chord=function(){var e=Zr,t=Wr,n=hl,r=Uo,a=qo;function i(n,r){var a,i,c=o(this,e,n,r),u=o(this,t,n,r);return"M"+c.p0+l(c.r,c.p1,c.a1-c.a0)+(i=u,((a=c).a0==i.a0&&a.a1==i.a1?s(c.r,c.p1,c.r,c.p0):s(c.r,c.p1,u.r,u.p0)+l(u.r,u.p1,u.a1-u.a0)+s(u.r,u.p1,c.r,c.p0))+"Z")}function o(e,t,i,o){var l=t.call(e,i,o),s=n.call(e,l,o),c=r.call(e,l,o)-De,u=a.call(e,l,o)-De;return{r:s,a0:c,a1:u,p0:[s*Math.cos(c),s*Math.sin(c)],p1:[s*Math.cos(u),s*Math.sin(u)]}}function l(e,t,n){return"A"+e+","+e+" 0 "+ +(n>Ie)+",1 "+t}function s(e,t,n,r){return"Q 0,0 "+r}return i.radius=function(e){return arguments.length?(n=yt(e),i):n},i.source=function(t){return arguments.length?(e=yt(t),i):e},i.target=function(e){return arguments.length?(t=yt(e),i):t},i.startAngle=function(e){return arguments.length?(r=yt(e),i):r},i.endAngle=function(e){return arguments.length?(a=yt(e),i):a},i},i.svg.diagonal=function(){var e=Zr,t=Wr,n=fl;function r(r,a){var i=e.call(this,r,a),o=t.call(this,r,a),l=(i.y+o.y)/2,s=[i,{x:i.x,y:l},{x:o.x,y:l},o];return"M"+(s=s.map(n))[0]+"C"+s[1]+" "+s[2]+" "+s[3]}return r.source=function(t){return arguments.length?(e=yt(t),r):e},r.target=function(e){return arguments.length?(t=yt(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},i.svg.diagonal.radial=function(){var e=i.svg.diagonal(),t=fl,n=e.projection;return e.projection=function(e){return arguments.length?n(pl(t=e)):t},e},i.svg.symbol=function(){var e=vl,t=gl;function n(n,r){return(yl.get(e.call(this,n,r))||ml)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=yt(t),n):e},n.size=function(e){return arguments.length?(t=yt(e),n):t},n};var yl=i.map({circle:ml,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*bl)),n=t*bl;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/xl),n=t*xl/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/xl),n=t*xl/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});i.svg.symbolTypes=yl.keys();var xl=Math.sqrt(3),bl=Math.tan(30*Pe);$.transition=function(e){for(var t,n,r=Tl||++Sl,a=Il(e),i=[],o=Ml||{time:Date.now(),ease:fi,delay:0,duration:250},l=-1,s=this.length;++l<s;){i.push(t=[]);for(var c=this[l],u=-1,d=c.length;++u<d;)(n=c[u])&&El(n,u,a,r,o),t.push(n)}return kl(i,a,r)},$.interrupt=function(e){return this.each(null==e?wl:_l(Il(e)))};var wl=_l(Il());function _l(e){return function(){var t,n,r;(t=this[e])&&(r=t[n=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[n]:delete this[e],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function kl(e,t,n){return q(e,Al),e.namespace=t,e.id=n,e}var Tl,Ml,Al=[],Sl=0;function Cl(e,t,n,r){var a=e.id,i=e.namespace;return pe(e,"function"==typeof n?function(e,o,l){e[i][a].tween.set(t,r(n.call(e,e.__data__,o,l)))}:(n=r(n),function(e){e[i][a].tween.set(t,n)}))}function Ll(e){return null==e&&(e=""),function(){this.textContent=e}}function Il(e){return null==e?"__transition__":"__transition_"+e+"__"}function El(e,t,n,r,a){var i,o,l,s,c,u=e[n]||(e[n]={active:0,count:0}),d=u[r];function h(n){var a=u.active,h=u[a];for(var p in h&&(h.timer.c=null,h.timer.t=NaN,--u.count,delete u[a],h.event&&h.event.interrupt.call(e,e.__data__,h.index)),u)if(+p<r){var g=u[p];g.timer.c=null,g.timer.t=NaN,--u.count,delete u[p]}o.c=f,At((function(){return o.c&&f(n||1)&&(o.c=null,o.t=NaN),1}),0,i),u.active=r,d.event&&d.event.start.call(e,e.__data__,t),c=[],d.tween.forEach((function(n,r){(r=r.call(e,e.__data__,t))&&c.push(r)})),s=d.ease,l=d.duration}function f(a){for(var i=a/l,o=s(i),h=c.length;h>0;)c[--h].call(e,o);if(i>=1)return d.event&&d.event.end.call(e,e.__data__,t),--u.count?delete u[r]:delete e[n],1}d||(i=a.time,o=At((function(e){var t=d.delay;if(o.t=t+i,t<=e)return h(e-t);o.c=h}),0,i),d=u[r]={tween:new M,time:i,timer:o,delay:a.delay,duration:a.duration,ease:a.ease,index:t},a=null,++u.count)}Al.call=$.call,Al.empty=$.empty,Al.node=$.node,Al.size=$.size,i.transition=function(e,t){return e&&e.transition?Tl?e.transition(t):e:i.selection().transition(e)},i.transition.prototype=Al,Al.select=function(e){var t,n,r,a=this.id,i=this.namespace,o=[];e=J(e);for(var l=-1,s=this.length;++l<s;){o.push(t=[]);for(var c=this[l],u=-1,d=c.length;++u<d;)(r=c[u])&&(n=e.call(r,r.__data__,u,l))?("__data__"in r&&(n.__data__=r.__data__),El(n,u,i,a,r[i][a]),t.push(n)):t.push(null)}return kl(o,i,a)},Al.selectAll=function(e){var t,n,r,a,i,o=this.id,l=this.namespace,s=[];e=K(e);for(var c=-1,u=this.length;++c<u;)for(var d=this[c],h=-1,f=d.length;++h<f;)if(r=d[h]){i=r[l][o],n=e.call(r,r.__data__,h,c),s.push(t=[]);for(var p=-1,g=n.length;++p<g;)(a=n[p])&&El(a,p,l,o,i),t.push(a)}return kl(s,l,o)},Al.filter=function(e){var t,n,r=[];"function"!=typeof e&&(e=he(e));for(var a=0,i=this.length;a<i;a++){r.push(t=[]);for(var o,l=0,s=(o=this[a]).length;l<s;l++)(n=o[l])&&e.call(n,n.__data__,l,a)&&t.push(n)}return kl(r,this.namespace,this.id)},Al.tween=function(e,t){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(e):pe(this,null==t?function(t){t[r][n].tween.remove(e)}:function(a){a[r][n].tween.set(e,t)})},Al.attr=function(e,t){if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var n="transform"==e?Ti:ri,r=i.ns.qualify(e);function a(){this.removeAttribute(r)}function o(){this.removeAttributeNS(r.space,r.local)}function l(e){return null==e?a:(e+="",function(){var t,a=this.getAttribute(r);return a!==e&&(t=n(a,e),function(e){this.setAttribute(r,t(e))})})}function s(e){return null==e?o:(e+="",function(){var t,a=this.getAttributeNS(r.space,r.local);return a!==e&&(t=n(a,e),function(e){this.setAttributeNS(r.space,r.local,t(e))})})}return Cl(this,"attr."+e,t,r.local?s:l)},Al.attrTween=function(e,t){var n=i.ns.qualify(e);return this.tween("attr."+e,n.local?function(e,r){var a=t.call(this,e,r,this.getAttributeNS(n.space,n.local));return a&&function(e){this.setAttributeNS(n.space,n.local,a(e))}}:function(e,r){var a=t.call(this,e,r,this.getAttribute(n));return a&&function(e){this.setAttribute(n,a(e))}})},Al.style=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){for(n in r<2&&(t=""),e)this.style(n,e[n],t);return this}n=""}function a(){this.style.removeProperty(e)}function i(t){return null==t?a:(t+="",function(){var r,a=u(this).getComputedStyle(this,null).getPropertyValue(e);return a!==t&&(r=ri(a,t),function(t){this.style.setProperty(e,r(t),n)})})}return Cl(this,"style."+e,t,i)},Al.styleTween=function(e,t,n){function r(r,a){var i=t.call(this,r,a,u(this).getComputedStyle(this,null).getPropertyValue(e));return i&&function(t){this.style.setProperty(e,i(t),n)}}return arguments.length<3&&(n=""),this.tween("style."+e,r)},Al.text=function(e){return Cl(this,"text",e,Ll)},Al.remove=function(){var e=this.namespace;return this.each("end.transition",(function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)}))},Al.ease=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].ease:("function"!=typeof e&&(e=i.ease.apply(i,arguments)),pe(this,(function(r){r[n][t].ease=e})))},Al.delay=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].delay:pe(this,"function"==typeof e?function(r,a,i){r[n][t].delay=+e.call(r,r.__data__,a,i)}:(e=+e,function(r){r[n][t].delay=e}))},Al.duration=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].duration:pe(this,"function"==typeof e?function(r,a,i){r[n][t].duration=Math.max(1,e.call(r,r.__data__,a,i))}:(e=Math.max(1,e),function(r){r[n][t].duration=e}))},Al.each=function(e,t){var n=this.id,r=this.namespace;if(arguments.length<2){var a=Ml,o=Tl;try{Tl=n,pe(this,(function(t,a,i){Ml=t[r][n],e.call(t,t.__data__,a,i)}))}finally{Ml=a,Tl=o}}else pe(this,(function(a){var o=a[r][n];(o.event||(o.event=i.dispatch("start","end","interrupt"))).on(e,t)}));return this},Al.transition=function(){for(var e,t,n,r=this.id,a=++Sl,i=this.namespace,o=[],l=0,s=this.length;l<s;l++){o.push(e=[]);for(var c,u=0,d=(c=this[l]).length;u<d;u++)(t=c[u])&&El(t,u,i,a,{time:(n=t[i][r]).time,ease:n.ease,delay:n.delay+n.duration,duration:n.duration}),e.push(t)}return kl(o,i,a)},i.svg.axis=function(){var e,t=i.scale.linear(),n=Ol,r=6,a=6,o=3,s=[10],c=null;function u(l){l.each((function(){var l,u=i.select(this),d=this.__chart__||t,h=this.__chart__=t.copy(),f=null==c?h.ticks?h.ticks.apply(h,s):h.domain():c,p=null==e?h.tickFormat?h.tickFormat.apply(h,s):P:e,g=u.selectAll(".tick").data(f,h),v=g.enter().insert("g",".domain").attr("class","tick").style("opacity",Ce),m=i.transition(g.exit()).style("opacity",Ce).remove(),y=i.transition(g.order()).style("opacity",1),x=Math.max(r,0)+o,b=bo(h),w=u.selectAll(".domain").data([0]),_=(w.enter().append("path").attr("class","domain"),i.transition(w));v.append("line"),v.append("text");var k,T,M,A,S=v.select("line"),C=y.select("line"),L=g.select("text").text(p),I=v.select("text"),E=y.select("text"),O="top"===n||"left"===n?-1:1;if("bottom"===n||"top"===n?(l=Pl,k="x",M="y",T="x2",A="y2",L.attr("dy",O<0?"0em":".71em").style("text-anchor","middle"),_.attr("d","M"+b[0]+","+O*a+"V0H"+b[1]+"V"+O*a)):(l=zl,k="y",M="x",T="y2",A="x2",L.attr("dy",".32em").style("text-anchor",O<0?"end":"start"),_.attr("d","M"+O*a+","+b[0]+"H0V"+b[1]+"H"+O*a)),S.attr(A,O*r),I.attr(M,O*x),C.attr(T,0).attr(A,O*r),E.attr(k,0).attr(M,O*x),h.rangeBand){var D=h,z=D.rangeBand()/2;d=h=function(e){return D(e)+z}}else d.rangeBand?d=h:m.call(l,h,d);v.call(l,d,h),y.call(l,h,h)}))}return u.scale=function(e){return arguments.length?(t=e,u):t},u.orient=function(e){return arguments.length?(n=e in Dl?e+"":Ol,u):n},u.ticks=function(){return arguments.length?(s=l(arguments),u):s},u.tickValues=function(e){return arguments.length?(c=e,u):c},u.tickFormat=function(t){return arguments.length?(e=t,u):e},u.tickSize=function(e){var t=arguments.length;return t?(r=+e,a=+arguments[t-1],u):r},u.innerTickSize=function(e){return arguments.length?(r=+e,u):r},u.outerTickSize=function(e){return arguments.length?(a=+e,u):a},u.tickPadding=function(e){return arguments.length?(o=+e,u):o},u.tickSubdivide=function(){return arguments.length&&u},u};var Ol="bottom",Dl={top:1,right:1,bottom:1,left:1};function Pl(e,t,n){e.attr("transform",(function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"}))}function zl(e,t,n){e.attr("transform",(function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"}))}i.svg.brush=function(){var e,t,n=G(h,"brushstart","brush","brushend"),r=null,a=null,o=[0,0],l=[0,0],s=!0,c=!0,d=jl[0];function h(e){e.each((function(){var e=i.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",v).on("touchstart.brush",v),t=e.selectAll(".background").data([0]);t.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),e.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var n=e.selectAll(".resize").data(d,P);n.exit().remove(),n.enter().append("g").attr("class",(function(e){return"resize "+e})).style("cursor",(function(e){return Nl[e]})).append("rect").attr("x",(function(e){return/[ew]$/.test(e)?-3:null})).attr("y",(function(e){return/^[ns]/.test(e)?-3:null})).attr("width",6).attr("height",6).style("visibility","hidden"),n.style("display",h.empty()?"none":null);var o,l=i.transition(e),s=i.transition(t);r&&(o=bo(r),s.attr("x",o[0]).attr("width",o[1]-o[0]),p(l)),a&&(o=bo(a),s.attr("y",o[0]).attr("height",o[1]-o[0]),g(l)),f(l)}))}function f(e){e.selectAll(".resize").attr("transform",(function(e){return"translate("+o[+/e$/.test(e)]+","+l[+/^s/.test(e)]+")"}))}function p(e){e.select(".extent").attr("x",o[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",o[1]-o[0])}function g(e){e.select(".extent").attr("y",l[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",l[1]-l[0])}function v(){var d,v,m=this,y=i.select(i.event.target),x=n.of(m,arguments),b=i.select(m),w=y.datum(),_=!/^(n|s)$/.test(w)&&r,k=!/^(e|w)$/.test(w)&&a,T=y.classed("extent"),M=Te(m),A=i.mouse(m),S=i.select(u(m)).on("keydown.brush",I).on("keyup.brush",E);if(i.event.changedTouches?S.on("touchmove.brush",O).on("touchend.brush",P):S.on("mousemove.brush",O).on("mouseup.brush",P),b.interrupt().selectAll("*").interrupt(),T)A[0]=o[0]-A[0],A[1]=l[0]-A[1];else if(w){var C=+/w$/.test(w),L=+/^n/.test(w);v=[o[1-C]-A[0],l[1-L]-A[1]],A[0]=o[C],A[1]=l[L]}else i.event.altKey&&(d=A.slice());function I(){32==i.event.keyCode&&(T||(d=null,A[0]-=o[1],A[1]-=l[1],T=2),H())}function E(){32==i.event.keyCode&&2==T&&(A[0]+=o[1],A[1]+=l[1],T=0,H())}function O(){var e=i.mouse(m),t=!1;v&&(e[0]+=v[0],e[1]+=v[1]),T||(i.event.altKey?(d||(d=[(o[0]+o[1])/2,(l[0]+l[1])/2]),A[0]=o[+(e[0]<d[0])],A[1]=l[+(e[1]<d[1])]):d=null),_&&D(e,r,0)&&(p(b),t=!0),k&&D(e,a,1)&&(g(b),t=!0),t&&(f(b),x({type:"brush",mode:T?"move":"resize"}))}function D(n,r,a){var i,u,h=bo(r),f=h[0],p=h[1],g=A[a],v=a?l:o,m=v[1]-v[0];if(T&&(f-=g,p-=m+g),i=(a?c:s)?Math.max(f,Math.min(p,n[a])):n[a],T?u=(i+=g)+m:(d&&(g=Math.max(f,Math.min(p,2*d[a]-i))),g<i?(u=i,i=g):u=g),v[0]!=i||v[1]!=u)return a?t=null:e=null,v[0]=i,v[1]=u,!0}function P(){O(),b.style("pointer-events","all").selectAll(".resize").style("display",h.empty()?"none":null),i.select("body").style("cursor",null),S.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),M(),x({type:"brushend"})}b.style("pointer-events","none").selectAll(".resize").style("display",null),i.select("body").style("cursor",y.style("cursor")),x({type:"brushstart"}),O()}return h.event=function(r){r.each((function(){var r=n.of(this,arguments),a={x:o,y:l,i:e,j:t},s=this.__chart__||a;this.__chart__=a,Tl?i.select(this).transition().each("start.brush",(function(){e=s.i,t=s.j,o=s.x,l=s.y,r({type:"brushstart"})})).tween("brush:brush",(function(){var n=ai(o,a.x),i=ai(l,a.y);return e=t=null,function(e){o=a.x=n(e),l=a.y=i(e),r({type:"brush",mode:"resize"})}})).each("end.brush",(function(){e=a.i,t=a.j,r({type:"brush",mode:"resize"}),r({type:"brushend"})})):(r({type:"brushstart"}),r({type:"brush",mode:"resize"}),r({type:"brushend"}))}))},h.x=function(e){return arguments.length?(d=jl[!(r=e)<<1|!a],h):r},h.y=function(e){return arguments.length?(d=jl[!r<<1|!(a=e)],h):a},h.clamp=function(e){return arguments.length?(r&&a?(s=!!e[0],c=!!e[1]):r?s=!!e:a&&(c=!!e),h):r&&a?[s,c]:r?s:a?c:null},h.extent=function(n){var i,s,c,u,d;return arguments.length?(r&&(i=n[0],s=n[1],a&&(i=i[0],s=s[0]),e=[i,s],r.invert&&(i=r(i),s=r(s)),s<i&&(d=i,i=s,s=d),i==o[0]&&s==o[1]||(o=[i,s])),a&&(c=n[0],u=n[1],r&&(c=c[1],u=u[1]),t=[c,u],a.invert&&(c=a(c),u=a(u)),u<c&&(d=c,c=u,u=d),c==l[0]&&u==l[1]||(l=[c,u])),h):(r&&(e?(i=e[0],s=e[1]):(i=o[0],s=o[1],r.invert&&(i=r.invert(i),s=r.invert(s)),s<i&&(d=i,i=s,s=d))),a&&(t?(c=t[0],u=t[1]):(c=l[0],u=l[1],a.invert&&(c=a.invert(c),u=a.invert(u)),u<c&&(d=c,c=u,u=d))),r&&a?[[i,c],[s,u]]:r?[i,s]:a&&[c,u])},h.clear=function(){return h.empty()||(o=[0,0],l=[0,0],e=t=null),h},h.empty=function(){return!!r&&o[0]==o[1]||!!a&&l[0]==l[1]},i.rebind(h,n,"on")};var Nl={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},jl=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Rl=Nt.format=hn.timeFormat,Fl=Rl.utc,Bl=Fl("%Y-%m-%dT%H:%M:%S.%LZ");function Hl(e){return e.toISOString()}function Vl(e,t,n){function r(t){return e(t)}function a(e,n){var r=(e[1]-e[0])/n,a=i.bisect(Ul,r);return a==Ul.length?[t.year,Co(e.map((function(e){return e/31536e6})),n)[2]]:a?t[r/Ul[a-1]<Ul[a]/r?a-1:a]:[Wl,Co(e,n)[2]]}return r.invert=function(t){return Gl(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain(t),r):e.domain().map(Gl)},r.nice=function(e,t){var n=r.domain(),i=xo(n),o=null==e?a(i,10):"number"==typeof e&&a(i,e);function l(n){return!isNaN(n)&&!e.range(n,Gl(+n+1),t).length}return o&&(e=o[0],t=o[1]),r.domain(_o(n,t>1?{floor:function(t){for(;l(t=e.floor(t));)t=Gl(t-1);return t},ceil:function(t){for(;l(t=e.ceil(t));)t=Gl(+t+1);return t}}:e))},r.ticks=function(e,t){var n=xo(r.domain()),i=null==e?a(n,10):"number"==typeof e?a(n,e):!e.range&&[{range:e},t];return i&&(e=i[0],t=i[1]),e.range(n[0],Gl(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return Vl(e.copy(),t,n)},Ao(r,e)}function Gl(e){return new Date(e)}Rl.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Hl:Bl,Hl.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},Hl.toString=Bl.toString,Nt.second=Bt((function(e){return new jt(1e3*Math.floor(e/1e3))}),(function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))}),(function(e){return e.getSeconds()})),Nt.seconds=Nt.second.range,Nt.seconds.utc=Nt.second.utc.range,Nt.minute=Bt((function(e){return new jt(6e4*Math.floor(e/6e4))}),(function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))}),(function(e){return e.getMinutes()})),Nt.minutes=Nt.minute.range,Nt.minutes.utc=Nt.minute.utc.range,Nt.hour=Bt((function(e){var t=e.getTimezoneOffset()/60;return new jt(36e5*(Math.floor(e/36e5-t)+t))}),(function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))}),(function(e){return e.getHours()})),Nt.hours=Nt.hour.range,Nt.hours.utc=Nt.hour.utc.range,Nt.month=Bt((function(e){return(e=Nt.day(e)).setDate(1),e}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e){return e.getMonth()})),Nt.months=Nt.month.range,Nt.months.utc=Nt.month.utc.range;var Ul=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],ql=[[Nt.second,1],[Nt.second,5],[Nt.second,15],[Nt.second,30],[Nt.minute,1],[Nt.minute,5],[Nt.minute,15],[Nt.minute,30],[Nt.hour,1],[Nt.hour,3],[Nt.hour,6],[Nt.hour,12],[Nt.day,1],[Nt.day,2],[Nt.week,1],[Nt.month,1],[Nt.month,3],[Nt.year,1]],Zl=Rl.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Jn]]),Wl={range:function(e,t,n){return i.range(Math.ceil(e/n)*n,+t,n).map(Gl)},floor:P,ceil:P};ql.year=Nt.year,Nt.scale=function(){return Vl(i.scale.linear(),ql,Zl)};var Yl=ql.map((function(e){return[e[0].utc,e[1]]})),Xl=Fl.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Jn]]);function $l(e){return JSON.parse(e.responseText)}function Jl(e){var t=s.createRange();return t.selectNode(s.body),t.createContextualFragment(e.responseText)}Yl.year=Nt.year.utc,Nt.scale.utc=function(){return Vl(i.scale.linear(),Yl,Xl)},i.text=xt((function(e){return e.responseText})),i.json=function(e,t){return bt(e,"application/json",$l,t)},i.html=function(e,t){return bt(e,"text/html",Jl,t)},i.xml=xt((function(e){return e.responseXML})),this.d3=i,void 0===(a="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=a)}()},c5s0:function(e,t,n){"use strict";var r=n("/CZE"),a=n("plED"),i=n("DdeV"),o=n("QYPY");e.exports=function(e,t){function n(n,a){return r.coerce(e,t,i,n,a)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var l,s,c=t._colorAxes;function u(e,t){return r.coerce(l,s,i.coloraxis,e,t)}for(var d in c){var h=c[d];if(h[0])l=e[d]||{},(s=a.newContainer(t,d,"coloraxis"))._name=d,o(l,s,t,u,{prefix:"",cLetter:"c"});else{for(var f=0;f<h[2].length;f++)h[2][f]();delete t._colorAxes[d]}}}},c8nr:function(e,t,n){"use strict";t.xmlns="http://www.w3.org/2000/xmlns/",t.svg="http://www.w3.org/2000/svg",t.xlink="http://www.w3.org/1999/xlink",t.svgAttrs={xmlns:t.svg,"xmlns:xlink":t.xlink}},cADB:function(e,t,n){"use strict";function r(e,t,n,r,a){var i=t.c2p(r?e.s0:e.p0,!0),o=t.c2p(r?e.s1:e.p1,!0),l=n.c2p(r?e.p0:e.s0,!0),s=n.c2p(r?e.p1:e.s1,!0);return a?[(i+o)/2,(l+s)/2]:r?[o,(l+s)/2]:[(i+o)/2,s]}e.exports=function(e,t){var n,a=e.cd,i=e.xaxis,o=e.yaxis,l=a[0].trace,s="funnel"===l.type,c="h"===l.orientation,u=[];if(!1===t)for(n=0;n<a.length;n++)a[n].selected=0;else for(n=0;n<a.length;n++){var d=a[n],h="ct"in d?d.ct:r(d,i,o,c,s);t.contains(h,!1,n,e)?(u.push({pointNumber:n,x:i.c2d(d.x),y:o.c2d(d.y)}),d.selected=1):d.selected=0}return u}},cDf5:function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},cIkR:function(e,t,n){"use strict";var r=n("/CZE");e.exports=function(e){return r.isPlainObject(e.colorbar)}},cLT0:function(e,t,n){"use strict";var r=n("GbLo"),a=n("/CZE"),i=n("BkK/"),o=n("6AZA").BADNUM,l=n("3oHU"),s=n("Cb1W"),c=n("EGun"),u=n("QTaS");function d(e,t,n,r,a,o,s){var c=t._length,u=e._fullLayout,d=n._id,h=r._id,f=u._firstScatter[p(t)]===t.uid,v=(g(t,u,n,r)||{}).orientation,m=t.fill;n._minDtick=0,r._minDtick=0;var y={padded:!0},x={padded:!0};s&&(y.ppad=x.ppad=s);var b=c<2||a[0]!==a[c-1]||o[0]!==o[c-1];b&&("tozerox"===m||"tonextx"===m&&(f||"h"===v))?y.tozero=!0:(t.error_y||{}).visible||"tonexty"!==m&&"tozeroy"!==m&&(l.hasMarkers(t)||l.hasText(t))||(y.padded=!1,y.ppad=0),b&&("tozeroy"===m||"tonexty"===m&&(f||"v"===v))?x.tozero=!0:"tonextx"!==m&&"tozerox"!==m||(x.padded=!1),d&&(t._extremes[d]=i.findExtremes(n,a,y)),h&&(t._extremes[h]=i.findExtremes(r,o,x))}function h(e,t){if(l.hasMarkers(e)){var n,r=e.marker,o=1.6*(e.marker.sizeref||1);if(n="area"===e.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/o),3)}:function(e){return Math.max((e||0)/o,3)},a.isArrayOrTypedArray(r.size)){var s={type:"linear"};i.setConvert(s);for(var c=s.makeCalcdata(e.marker,"size"),u=new Array(t),d=0;d<t;d++)u[d]=n(c[d]);return u}return n(r.size)}}function f(e,t){var n=p(t),r=e._firstScatter;r[n]||(r[n]=t.uid)}function p(e){var t=e.stackgroup;return e.xaxis+e.yaxis+e.type+(t?"-"+t:"")}function g(e,t,n,r){var a=e.stackgroup;if(a){var i=t._scatterStackOpts[n._id+r._id][a],o="v"===i.orientation?r:n;return"linear"===o.type||"log"===o.type?i:void 0}}e.exports={calc:function(e,t){var n,l,p,v,m,y,x=e._fullLayout,b=i.getFromId(e,t.xaxis||"x"),w=i.getFromId(e,t.yaxis||"y"),_=b.makeCalcdata(t,"x"),k=w.makeCalcdata(t,"y"),T=t._length,M=new Array(T),A=t.ids,S=g(t,x,b,w),C=!1;f(x,t);var L,I="x",E="y";for(S?(a.pushUnique(S.traceIndices,t._expandedIndex),(n="v"===S.orientation)?(E="s",L="x"):(I="s",L="y"),m="interpolate"===S.stackgaps):d(e,t,b,w,_,k,h(t,T)),l=0;l<T;l++){var O=M[l]={},D=r(_[l]),P=r(k[l]);D&&P?(O[I]=_[l],O[E]=k[l]):S&&(n?D:P)?(O[L]=n?_[l]:k[l],O.gap=!0,m?(O.s=o,C=!0):O.s=0):O[I]=O[E]=o,A&&(O.id=String(A[l]))}if(c(M,t),s(e,t),u(M,t),S){for(l=0;l<M.length;)M[l][L]===o?M.splice(l,1):l++;if(a.sort(M,(function(e,t){return e[L]-t[L]||e.i-t.i})),C){for(l=0;l<M.length-1&&M[l].gap;)l++;for((y=M[l].s)||(y=M[l].s=0),p=0;p<l;p++)M[p].s=y;for(v=M.length-1;v>l&&M[v].gap;)v--;for(y=M[v].s,p=M.length-1;p>v;p--)M[p].s=y;for(;l<v;)if(M[++l].gap){for(p=l+1;M[p].gap;)p++;for(var z=M[l-1][L],N=M[l-1].s,j=(M[p].s-N)/(M[p][L]-z);l<p;)M[l].s=N+(M[l][L]-z)*j,l++}}}return M},calcMarkerSize:h,calcAxisExpansion:d,setFirstScatter:f,getStackOpts:g}},cPlZ:function(e,t,n){"use strict";var r=n("JZU4"),a=n("NPlu");e.exports={moduleType:"component",name:"annotations",layoutAttributes:n("u0qo"),supplyLayoutDefaults:n("u1sj"),includeBasePlot:n("N9FU")("annotations"),calcAutorange:n("zYTo"),draw:r.draw,drawOne:r.drawOne,drawRaw:r.drawRaw,hasClickToShow:a.hasClickToShow,onClick:a.onClick,convertCoords:n("NRvR")}},cRi9:function(e,t,n){"use strict";var r=n("GbLo"),a=n("Nx4I"),i=n("/CZE"),o=n("5azm"),l=n("15jM"),s=n("2S8E"),c=n("J+Po"),u=n("UAgb"),d=n("0YvE"),h=n("dDsA"),f=n("GkA6"),p=n("0wH6").WEEKDAY_PATTERN,g=n("0wH6").HOUR_PATTERN;function v(e,t,n){function a(n,r){return i.coerce(e,t,l.rangebreaks,n,r)}if(a("enabled")){var o=a("bounds");if(o&&o.length>=2){var s,c,u="";if(2===o.length)for(s=0;s<2;s++)if(c=y(o[s])){u=p;break}var d=a("pattern",u);if(d===p)for(s=0;s<2;s++)(c=y(o[s]))&&(t.bounds[s]=o[s]=c-1);if(d)for(s=0;s<2;s++)switch(c=o[s],d){case p:if(!r(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(!r(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===n.autorange){var h=n.range;if(h[0]<h[1]){if(o[0]<h[0]&&o[1]>h[1])return void(t.enabled=!1)}else if(o[0]>h[0]&&o[1]<h[1])return void(t.enabled=!1)}}else{var f=a("values");if(!f||!f.length)return void(t.enabled=!1);a("dvalue")}}}e.exports=function(e,t,n,r,g){var m=r.letter,y=r.font||{},x=r.splomStash||{},b=n("visible",!r.visibleDflt),w=t._template||{},_=t.type||w.type||"-";"date"===_&&a.getComponentMethod("calendars","handleDefaults")(e,t,"calendar",r.calendar);f(t,g);var k=!t.isValidRange(e.range);k&&r.reverseDflt&&(k="reversed"),!n("autorange",k)||"linear"!==_&&"-"!==_||n("rangemode"),n("range"),t.cleanRange(),d(e,t,n,r),"category"===_||r.noHover||n("hoverformat");var T=n("color"),M=T!==l.color.dflt?T:y.color,A=x.label||g._dfltTitle[m];if(u(e,t,n,_,r,{pass:1}),!b)return t;n("title.text",A),i.coerceFont(n,"title.font",{family:y.family,size:Math.round(1.2*y.size),color:M}),s(e,t,n,_),u(e,t,n,_,r,{pass:2}),c(e,t,n,r),h(e,t,n,{dfltColor:T,bgColor:r.bgColor,showGrid:r.showGrid,attributes:l}),(t.showline||t.ticks)&&n("mirror"),r.automargin&&n("automargin");var S,C="multicategory"===_;r.noTickson||"category"!==_&&!C||!t.ticks&&!t.showgrid||(C&&(S="boundaries"),n("tickson",S));C&&(n("showdividers")&&(n("dividercolor"),n("dividerwidth")));if("date"===_)if(o(e,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:v}),t.rangebreaks.length){for(var L=0;L<t.rangebreaks.length;L++)if(t.rangebreaks[L].pattern===p){t._hasDayOfWeekBreaks=!0;break}if(f(t,g),g._has("scattergl")||g._has("splom"))for(var I=0;I<r.data.length;I++){var E=r.data[I];"scattergl"!==E.type&&"splom"!==E.type||(E.visible=!1,i.warn(E.type+" traces do not work on axes with rangebreaks. Setting trace "+E.index+" to `visible: false`."))}}else delete t.rangebreaks;return t};var m={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function y(e){if("string"==typeof e)return m[e.substr(0,3).toLowerCase()]}},cU9g:function(e,t,n){"use strict";var r=n("/CZE");e.exports=function(e,t){for(var n=0;n<e.length;n++)e[n].i=n;r.mergeArray(t.text,e,"tx"),r.mergeArray(t.hovertext,e,"htx");var a=t.marker;if(a){r.mergeArray(a.opacity,e,"mo"),r.mergeArray(a.color,e,"mc");var i=a.line;i&&(r.mergeArray(i.color,e,"mlc"),r.mergeArrayCastPositive(i.width,e,"mlw"))}}},cWyK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("/rf6");function a(e,t,n){if(null!==e)for(var r,i,o,l,s,c,u,d,h=0,f=0,p=e.type,g="FeatureCollection"===p,v="Feature"===p,m=g?e.features.length:1,y=0;y<m;y++){s=(d=!!(u=g?e.features[y].geometry:v?e.geometry:e)&&"GeometryCollection"===u.type)?u.geometries.length:1;for(var x=0;x<s;x++){var b=0,w=0;if(null!==(l=d?u.geometries[x]:u)){c=l.coordinates;var _=l.type;switch(h=!n||"Polygon"!==_&&"MultiPolygon"!==_?0:1,_){case null:break;case"Point":if(!1===t(c,f,y,b,w))return!1;f++,b++;break;case"LineString":case"MultiPoint":for(r=0;r<c.length;r++){if(!1===t(c[r],f,y,b,w))return!1;f++,"MultiPoint"===_&&b++}"LineString"===_&&b++;break;case"Polygon":case"MultiLineString":for(r=0;r<c.length;r++){for(i=0;i<c[r].length-h;i++){if(!1===t(c[r][i],f,y,b,w))return!1;f++}"MultiLineString"===_&&b++,"Polygon"===_&&w++}"Polygon"===_&&b++;break;case"MultiPolygon":for(r=0;r<c.length;r++){for(w=0,i=0;i<c[r].length;i++){for(o=0;o<c[r][i].length-h;o++){if(!1===t(c[r][i][o],f,y,b,w))return!1;f++}w++}b++}break;case"GeometryCollection":for(r=0;r<l.geometries.length;r++)if(!1===a(l.geometries[r],t,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function i(e,t){var n;switch(e.type){case"FeatureCollection":for(n=0;n<e.features.length&&!1!==t(e.features[n].properties,n);n++);break;case"Feature":t(e.properties,0)}}function o(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var n=0;n<e.features.length&&!1!==t(e.features[n],n);n++);}function l(e,t){var n,r,a,i,o,l,s,c,u,d,h=0,f="FeatureCollection"===e.type,p="Feature"===e.type,g=f?e.features.length:1;for(n=0;n<g;n++){for(l=f?e.features[n].geometry:p?e.geometry:e,c=f?e.features[n].properties:p?e.properties:{},u=f?e.features[n].bbox:p?e.bbox:void 0,d=f?e.features[n].id:p?e.id:void 0,o=(s=!!l&&"GeometryCollection"===l.type)?l.geometries.length:1,a=0;a<o;a++)if(null!==(i=s?l.geometries[a]:l))switch(i.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(i,h,c,u,d))return!1;break;case"GeometryCollection":for(r=0;r<i.geometries.length;r++)if(!1===t(i.geometries[r],h,c,u,d))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,h,c,u,d))return!1;h++}}function s(e,t){l(e,(function(e,n,a,i,o){var l,s=null===e?null:e.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return!1!==t(r.feature(e,a,{bbox:i,id:o}),n,0)&&void 0}switch(s){case"MultiPoint":l="Point";break;case"MultiLineString":l="LineString";break;case"MultiPolygon":l="Polygon"}for(var c=0;c<e.coordinates.length;c++){var u={type:l,coordinates:e.coordinates[c]};if(!1===t(r.feature(u,a),n,c))return!1}}))}function c(e,t){s(e,(function(e,n,i){var o=0;if(e.geometry){var l=e.geometry.type;if("Point"!==l&&"MultiPoint"!==l){var s,c=0,u=0,d=0;return!1!==a(e,(function(a,l,h,f,p){if(void 0===s||n>c||f>u||p>d)return s=a,c=n,u=f,d=p,void(o=0);var g=r.lineString([s,a],e.properties);if(!1===t(g,n,i,p,o))return!1;o++,s=a}))&&void 0}}}))}function u(e,t){if(!e)throw new Error("geojson is required");s(e,(function(e,n,a){if(null!==e.geometry){var i=e.geometry.type,o=e.geometry.coordinates;switch(i){case"LineString":if(!1===t(e,n,a,0,0))return!1;break;case"Polygon":for(var l=0;l<o.length;l++)if(!1===t(r.lineString(o[l],e.properties),n,a,l))return!1}}}))}t.coordEach=a,t.coordReduce=function(e,t,n,r){var i=n;return a(e,(function(e,r,a,o,l){i=0===r&&void 0===n?e:t(i,e,r,a,o,l)}),r),i},t.propEach=i,t.propReduce=function(e,t,n){var r=n;return i(e,(function(e,a){r=0===a&&void 0===n?e:t(r,e,a)})),r},t.featureEach=o,t.featureReduce=function(e,t,n){var r=n;return o(e,(function(e,a){r=0===a&&void 0===n?e:t(r,e,a)})),r},t.coordAll=function(e){var t=[];return a(e,(function(e){t.push(e)})),t},t.geomEach=l,t.geomReduce=function(e,t,n){var r=n;return l(e,(function(e,a,i,o,l){r=0===a&&void 0===n?e:t(r,e,a,i,o,l)})),r},t.flattenEach=s,t.flattenReduce=function(e,t,n){var r=n;return s(e,(function(e,a,i){r=0===a&&0===i&&void 0===n?e:t(r,e,a,i)})),r},t.segmentEach=c,t.segmentReduce=function(e,t,n){var r=n,a=!1;return c(e,(function(e,i,o,l,s){r=!1===a&&void 0===n?e:t(r,e,i,o,l,s),a=!0})),r},t.lineEach=u,t.lineReduce=function(e,t,n){var r=n;return u(e,(function(e,a,i,o){r=0===a&&void 0===n?e:t(r,e,a,i,o)})),r},t.findSegment=function(e,t){if(t=t||{},!r.isObject(t))throw new Error("options is invalid");var n,a=t.featureIndex||0,i=t.multiFeatureIndex||0,o=t.geometryIndex||0,l=t.segmentIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":a<0&&(a=e.features.length+a),s=s||e.features[a].properties,n=e.features[a].geometry;break;case"Feature":s=s||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return l<0&&(l=c.length+l-1),r.lineString([c[l],c[l+1]],s,t);case"Polygon":return o<0&&(o=c.length+o),l<0&&(l=c[o].length+l-1),r.lineString([c[o][l],c[o][l+1]],s,t);case"MultiLineString":return i<0&&(i=c.length+i),l<0&&(l=c[i].length+l-1),r.lineString([c[i][l],c[i][l+1]],s,t);case"MultiPolygon":return i<0&&(i=c.length+i),o<0&&(o=c[i].length+o),l<0&&(l=c[i][o].length-l-1),r.lineString([c[i][o][l],c[i][o][l+1]],s,t)}throw new Error("geojson is invalid")},t.findPoint=function(e,t){if(t=t||{},!r.isObject(t))throw new Error("options is invalid");var n,a=t.featureIndex||0,i=t.multiFeatureIndex||0,o=t.geometryIndex||0,l=t.coordIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":a<0&&(a=e.features.length+a),s=s||e.features[a].properties,n=e.features[a].geometry;break;case"Feature":s=s||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var c=n.coordinates;switch(n.type){case"Point":return r.point(c,s,t);case"MultiPoint":return i<0&&(i=c.length+i),r.point(c[i],s,t);case"LineString":return l<0&&(l=c.length+l),r.point(c[l],s,t);case"Polygon":return o<0&&(o=c.length+o),l<0&&(l=c[o].length+l),r.point(c[o][l],s,t);case"MultiLineString":return i<0&&(i=c.length+i),l<0&&(l=c[i].length+l),r.point(c[i][l],s,t);case"MultiPolygon":return i<0&&(i=c.length+i),o<0&&(o=c[i].length+o),l<0&&(l=c[i][o].length-l),r.point(c[i][o][l],s,t)}throw new Error("geojson is invalid")}},chCF:function(e,t,n){"use strict";var r=n("/CZE"),a=n("5azm"),i=n("nF9v"),o=n("5jll").name,l=i.steps;function s(e,t,n){function o(n,a){return r.coerce(e,t,i,n,a)}for(var l=a(e,t,{name:"steps",handleItemDefaults:c}),s=0,u=0;u<l.length;u++)l[u].visible&&s++;if(s<2?t.visible=!1:o("visible")){t._stepCount=s;var d=t._visibleSteps=r.filterVisible(l);(l[o("active")]||{}).visible||(t.active=d[0]._index),o("x"),o("y"),r.noneOrAll(e,t,["x","y"]),o("xanchor"),o("yanchor"),o("len"),o("lenmode"),o("pad.t"),o("pad.r"),o("pad.b"),o("pad.l"),r.coerceFont(o,"font",n.font),o("currentvalue.visible")&&(o("currentvalue.xanchor"),o("currentvalue.prefix"),o("currentvalue.suffix"),o("currentvalue.offset"),r.coerceFont(o,"currentvalue.font",t.font)),o("transition.duration"),o("transition.easing"),o("bgcolor"),o("activebgcolor"),o("bordercolor"),o("borderwidth"),o("ticklen"),o("tickwidth"),o("tickcolor"),o("minorticklen")}}function c(e,t){function n(n,a){return r.coerce(e,t,l,n,a)}if("skip"===e.method||Array.isArray(e.args)?n("visible"):t.visible=!1){n("method"),n("args");var a=n("label","step-"+t._index);n("value",a),n("execute")}}e.exports=function(e,t){a(e,t,{name:o,handleItemDefaults:s})}},cqRZ:function(e,t,n){"use strict";e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},culP:function(e,t,n){"use strict";var r=n("bljh"),a=n("pwgW"),i=n("k6aH").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,n=r.select(this);n.style({opacity:t.opacity}),n.selectAll("path.surface").each((function(e){r.select(this).call(a,e,t)}))}))}},cvCv:function(e,t){e.exports=function(e){return function(){return e}}},d655:function(e,t,n){"use strict";e.exports={attributes:n("BDWl"),supplyDefaults:n("h+LG"),calc:n("BiVG"),plot:n("+oog"),colorbar:n("/LM6"),style:n("xDfF"),hoverPoints:n("1vus"),moduleType:"trace",name:"heatmap",basePlotModule:n("kc20"),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(" ")}}},dDsA:function(e,t,n){"use strict";var r=n("Zss7").mix,a=n("37PH").lightFraction,i=n("/CZE");e.exports=function(e,t,n,o){var l=(o=o||{}).dfltColor;function s(n,r){return i.coerce2(e,t,o.attributes,n,r)}var c=s("linecolor",l),u=s("linewidth");n("showline",o.showLine||!!c||!!u)||(delete t.linecolor,delete t.linewidth);var d=s("gridcolor",r(l,o.bgColor,o.blend||a).toRgbString()),h=s("gridwidth");if(n("showgrid",o.showGrid||!!d||!!h)||(delete t.gridcolor,delete t.gridwidth),!o.noZeroLine){var f=s("zerolinecolor",l),p=s("zerolinewidth");n("zeroline",o.showGrid||!!f||!!p)||(delete t.zerolinecolor,delete t.zerolinewidth)}}},dNZO:function(e,t,n){"use strict";var r=n("GbLo"),a=n("avjU").isArrayOrTypedArray;function i(e,t){return function(){var n,r,o,l,s,c=e;for(l=0;l<t.length-1;l++){if(-1===(n=t[l])){for(r=!0,o=[],s=0;s<c.length;s++)o[s]=i(c[s],t.slice(l+1))(),o[s]!==o[0]&&(r=!1);return r?o[0]:o}if("number"==typeof n&&!a(c))return;if("object"!=typeof(c=c[n])||null===c)return}if("object"==typeof c&&null!==c&&null!==(o=c[t[l]]))return o}}e.exports=function(e,t){if(r(t))t=String(t);else if("string"!=typeof t||"[-1]"===t.substr(t.length-4))throw"bad property string";for(var n,a,o,l=0,c=t.split(".");l<c.length;){if(n=String(c[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(n[1])c[l]=n[1];else{if(0!==l)throw"bad property string";c.splice(0,1)}for(a=n[2].substr(1,n[2].length-2).split("]["),o=0;o<a.length;o++)l++,c.splice(l,0,Number(a[o]))}l++}return"object"!=typeof e?function(e,t,n){return{set:function(){throw"bad container"},get:function(){},astr:t,parts:n,obj:e}}(e,t,c):{set:s(e,c,t),get:i(e,c),astr:t,parts:c,obj:e}};var o=/(^|\.)args\[/;function l(e,t){return void 0===e||null===e&&!t.match(o)}function s(e,t,n){return function(r){var i,o,s=e,h="",f=[[e,h]],p=l(r,n);for(o=0;o<t.length-1;o++){if("number"==typeof(i=t[o])&&!a(s))throw"array index but container is not an array";if(-1===i){if(p=!u(s,t.slice(o+1),r,n))break;return}if(!d(s,i,t[o+1],p))break;if("object"!=typeof(s=s[i])||null===s)throw"container is not an object";h=c(h,i),f.push([s,h])}if(p){if(o===t.length-1&&(delete s[t[o]],Array.isArray(s)&&+t[o]==s.length-1))for(;s.length&&void 0===s[s.length-1];)s.pop()}else s[t[o]]=r}}function c(e,t){var n=t;return r(t)?n="["+t+"]":e&&(n="."+t),e+n}function u(e,t,n,r){var i,o=a(n),c=!0,u=n,h=r.replace("-1",0),f=!o&&l(n,h),p=t[0];for(i=0;i<e.length;i++)h=r.replace("-1",i),o&&(f=l(u=n[i%n.length],h)),f&&(c=!1),d(e,i,p,f)&&s(e[i],t,r.replace("-1",i))(u);return c}function d(e,t,n,r){if(void 0===e[t]){if(r)return!1;e[t]="number"==typeof n?[]:{}}return!0}},dVlp:function(e,t,n){"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:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'><defs><style>.cls-1 {fill: #3f4f75;} .cls-2 {fill: #80cfbe;} .cls-3 {fill: #fff;}</style></defs><title>plotly-logomark</title><g id='symbol'><rect class='cls-1' width='132' height='132' rx='6' ry='6'/><circle class='cls-2' cx='78' cy='54' r='6'/><circle class='cls-2' cx='102' cy='30' r='6'/><circle class='cls-2' cx='78' cy='30' r='6'/><circle class='cls-2' cx='54' cy='30' r='6'/><circle class='cls-2' cx='30' cy='30' r='6'/><circle class='cls-2' cx='30' cy='54' r='6'/><path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/><path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/><path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/><path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/></g></svg>"}}},dZSj:function(e,t,n){"use strict";var r=n("bljh"),a=n("0RW4"),i=n("/CZE"),o=n("k6aH").resizeText;function l(e,t,n){var r=t.data.data,o=!t.children,l=r.i,s=i.castOption(n,l,"marker.line.color")||a.defaultLine,c=i.castOption(n,l,"marker.line.width")||0;e.style("stroke-width",c).call(a.fill,r.color).call(a.stroke,s).style("opacity",o?n.leaf.opacity:null)}e.exports={style:function(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");o(e,t,"sunburst"),t.each((function(e){var t=r.select(this),n=e[0].trace;t.style("opacity",n.opacity),t.selectAll("path.surface").each((function(e){r.select(this).call(l,e,n)}))}))},styleOne:l}},"dnh+":function(e,t,n){"use strict";e.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",role:"info",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 *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(" ")},funnelgap:{valType:"number",min:0,max:1,role:"style",editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,role:"style",editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}},drJC:function(e,t,n){"use strict";e.exports=function(){"undefined"!=typeof MathJax&&("local"!==(window.PlotlyConfig||{}).MathJaxConfig&&(MathJax.Hub.Config({messageStyle:"none",skipStartupTypeset:!0,displayAlign:"left",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]}}),MathJax.Hub.Configured()))}},e6NF:function(e,t,n){"use strict";e.exports={sunburstcolorway:{valType:"colorlist",role:"style",editType:"calc",description:["Sets the default sunburst 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 `extendsunburstcolors`."].join(" ")},extendsunburstcolors:{valType:"boolean",dflt:!0,role:"style",editType:"calc",description:["If `true`, the sunburst slice colors (whether given by `sunburstcolorway` 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(" ")}}},"eN+q":function(e,t,n){"use strict";e.exports={FORMAT_LINK:"https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format",DATE_FORMAT_LINK:"https://github.com/d3/d3-3.x-api-reference/blob/master/Time-Formatting.md#format"}},eNjM:function(e,t,n){"use strict";e.exports={hiddenlabels:{valType:"data_array",role:"info",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",role:"style",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,role:"style",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(" ")}}},eO4U:function(e,t,n){"use strict";var r=n("bljh"),a=n("/CZE"),i=a.rad2deg,o=n("Y9zF").MID_SHIFT,l=n("g9E0"),s=n("SbTw"),c=n("A3kh"),u=n("BkK/"),d=n("cRi9"),h=n("86IV"),f=n("15jM"),p=n("0RW4"),g={left:"start",center:"middle",right:"end"},v={left:0,center:.5,right:1},m=/[yzafpnยตmkMGTPEZY]/;function y(e){return e&&e.duration>0}function x(e){e.each((function(e){p.stroke(r.select(this),e.line.color)})).each((function(e){p.fill(r.select(this),e.color)})).style("stroke-width",(function(e){return e.line.width}))}function b(e,t,n){var r=e._fullLayout,i=a.extendFlat({type:"linear",ticks:"outside",range:n,showline:!0},t),o={type:"linear",_id:"x"+t._id},l={letter:"x",font:r.font,noHover:!0,noTickson:!0};function s(e,t){return a.coerce(i,o,f,e,t)}return d(i,o,s,l,r),h(i,o,s,l),o}function w(e,t){return"translate("+e+","+t+")"}function _(e,t,n){return[Math.min(t/e.width,n/e.height),e,t+"x"+n]}function k(e,t,n,a){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),o=r.select(i);return o.text(e).attr("x",0).attr("y",0).attr("text-anchor",n).attr("data-unformatted",e).call(c.convertToTspans,a).call(l.font,t),l.bBox(o.node())}function T(e,t,n,r,i,o){var l="_cache"+t;e[l]&&e[l].key===i||(e[l]={key:i,value:n});var s=a.aggNums(o,null,[e[l].value,r],2);return e[l].value=s,s}e.exports=function(e,t,n,d){var h,f=e._fullLayout;y(n)&&d&&(h=d()),a.makeTraceGroups(f._indicatorlayer,t,"trace").each((function(t){var d,M,A,S,C,L=t[0].trace,I=r.select(this),E=L._hasGauge,O=L._isAngular,D=L._isBullet,P=L.domain,z={w:f._size.w*(P.x[1]-P.x[0]),h:f._size.h*(P.y[1]-P.y[0]),l:f._size.l+f._size.w*P.x[0],r:f._size.r+f._size.w*(1-P.x[1]),t:f._size.t+f._size.h*(1-P.y[1]),b:f._size.b+f._size.h*P.y[0]},N=z.l+z.w/2,j=z.t+z.h/2,R=Math.min(z.w/2,z.h),F=s.innerRadius*R,B=L.align||"center";if(M=j,E){if(O&&(d=N,M=j+R/2,A=function(e){return function(e,t){var n=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height);return[t/n,e,t]}(e,.9*F)}),D){var H=s.bulletPadding,V=1-s.bulletNumberDomainSize+H;d=z.l+(V+(1-V)*v[B])*z.w,A=function(e){return _(e,(s.bulletNumberDomainSize-H)*z.w,z.h)}}}else d=z.l+v[B]*z.w,A=function(e){return _(e,z.w,z.h)};!function(e,t,n,i){var o,s,d,h=n[0].trace,f=i.numbersX,x=i.numbersY,_=h.align||"center",M=g[_],A=i.transitionOpts,S=i.onComplete,C=a.ensureSingle(t,"g","numbers"),L=[];h._hasNumber&&L.push("number");h._hasDelta&&(L.push("delta"),"left"===h.delta.position&&L.reverse());var I=C.selectAll("text").data(L);function E(t,n,r,a){if(!t.match("s")||r>=0==a>=0||n(r).slice(-1).match(m)||n(a).slice(-1).match(m))return n;var i=t.slice().replace("s","f").replace(/\d+/,(function(e){return parseInt(e)-1})),o=b(e,{tickformat:i});return function(e){return Math.abs(e)<1?u.tickText(o,e).text:n(e)}}I.enter().append("text"),I.attr("text-anchor",(function(){return M})).attr("class",(function(e){return e})).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),I.exit().remove();var O,D=h.mode+h.align;h._hasDelta&&(O=function(){var t=b(e,{tickformat:h.delta.valueformat},h._range);t.setScale(),u.prepTicks(t);var a=function(e){return u.tickText(t,e).text},i=function(e){return h.delta.relative?e.relativeDelta:e.delta},o=function(e,t){return 0===e||"number"!=typeof e||isNaN(e)?"-":(e>0?h.delta.increasing.symbol:h.delta.decreasing.symbol)+t(e)},d=function(e){return e.delta>=0?h.delta.increasing.color:h.delta.decreasing.color};void 0===h._deltaLastValue&&(h._deltaLastValue=i(n[0]));var f=C.select("text.delta");function g(){f.text(o(i(n[0]),a)).call(p.fill,d(n[0])).call(c.convertToTspans,e)}return f.call(l.font,h.delta.font).call(p.fill,d({delta:h._deltaLastValue})),y(A)?f.transition().duration(A.duration).ease(A.easing).tween("text",(function(){var e=r.select(this),t=i(n[0]),l=h._deltaLastValue,s=E(h.delta.valueformat,a,l,t),c=r.interpolateNumber(l,t);return h._deltaLastValue=t,function(t){e.text(o(c(t),s)),e.call(p.fill,d({delta:c(t)}))}})).each("end",(function(){g(),S&&S()})).each("interrupt",(function(){g(),S&&S()})):g(),s=k(o(i(n[0]),a),h.delta.font,M,e),f}(),D+=h.delta.position+h.delta.font.size+h.delta.font.family+h.delta.valueformat,D+=h.delta.increasing.symbol+h.delta.decreasing.symbol,d=s);h._hasNumber&&(!function(){var t=b(e,{tickformat:h.number.valueformat},h._range);t.setScale(),u.prepTicks(t);var a=function(e){return u.tickText(t,e).text},i=h.number.suffix,s=h.number.prefix,d=C.select("text.number");function f(){var t="number"==typeof n[0].y?s+a(n[0].y)+i:"-";d.text(t).call(l.font,h.number.font).call(c.convertToTspans,e)}y(A)?d.transition().duration(A.duration).ease(A.easing).each("end",(function(){f(),S&&S()})).each("interrupt",(function(){f(),S&&S()})).attrTween("text",(function(){var e=r.select(this),t=r.interpolateNumber(n[0].lastY,n[0].y);h._lastValue=n[0].y;var o=E(h.number.valueformat,a,n[0].lastY,n[0].y);return function(n){e.text(s+o(t(n))+i)}})):f(),o=k(s+a(n[0].y)+i,h.number.font,M,e)}(),D+=h.number.font.size+h.number.font.family+h.number.valueformat+h.number.suffix+h.number.prefix,d=o);if(h._hasDelta&&h._hasNumber){var P,z,N=[(o.left+o.right)/2,(o.top+o.bottom)/2],j=[(s.left+s.right)/2,(s.top+s.bottom)/2],R=.75*h.delta.font.size;"left"===h.delta.position&&(P=T(h,"deltaPos",0,-1*(o.width*v[h.align]+s.width*(1-v[h.align])+R),D,Math.min),z=N[1]-j[1],d={width:o.width+s.width+R,height:Math.max(o.height,s.height),left:s.left+P,right:o.right,top:Math.min(o.top,s.top+z),bottom:Math.max(o.bottom,s.bottom+z)}),"right"===h.delta.position&&(P=T(h,"deltaPos",0,o.width*(1-v[h.align])+s.width*v[h.align]+R,D,Math.max),z=N[1]-j[1],d={width:o.width+s.width+R,height:Math.max(o.height,s.height),left:o.left,right:s.right+P,top:Math.min(o.top,s.top+z),bottom:Math.max(o.bottom,s.bottom+z)}),"bottom"===h.delta.position&&(P=null,z=s.height,d={width:Math.max(o.width,s.width),height:o.height+s.height,left:Math.min(o.left,s.left),right:Math.max(o.right,s.right),top:o.bottom-o.height,bottom:o.bottom+s.height}),"top"===h.delta.position&&(P=null,z=o.top,d={width:Math.max(o.width,s.width),height:o.height+s.height,left:Math.min(o.left,s.left),right:Math.max(o.right,s.right),top:o.bottom-o.height-s.height,bottom:o.bottom}),O.attr({dx:P,dy:z})}(h._hasNumber||h._hasDelta)&&C.attr("transform",(function(){var e=i.numbersScaler(d);D+=e[2];var t,n=T(h,"numbersScale",1,e[0],D,Math.min);h._scaleNumbers||(n=1),t=h._isAngular?x-n*d.bottom:x-n*(d.top+d.bottom)/2,h._numbersTop=n*d.top+t;var r=d[_];"center"===_&&(r=(d.left+d.right)/2);var a=f-n*r;return w(a=T(h,"numbersTranslate",0,a,D,Math.max),t)+" scale("+n+")"}))}(e,I,t,{numbersX:d,numbersY:M,numbersScaler:A,transitionOpts:n,onComplete:h}),E&&(S={range:L.gauge.axis.range,color:L.gauge.bgcolor,line:{color:L.gauge.bordercolor,width:0},thickness:1},C={range:L.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:L.gauge.bordercolor,width:L.gauge.borderwidth},thickness:1});var G=I.selectAll("g.angular").data(O?t:[]);G.exit().remove();var U=I.selectAll("g.angularaxis").data(O?t:[]);U.exit().remove(),O&&function(e,t,n,a){var l,s,c,d,h=n[0].trace,f=a.size,p=a.radius,g=a.innerRadius,v=a.gaugeBg,m=a.gaugeOutline,_=[f.l+f.w/2,f.t+f.h/2+p/2],k=a.gauge,T=a.layer,M=a.transitionOpts,A=a.onComplete,S=Math.PI/2;function C(e){var t=h.gauge.axis.range[0],n=(e-t)/(h.gauge.axis.range[1]-t)*Math.PI-S;return n<-S?-S:n>S?S:n}function L(e){return r.svg.arc().innerRadius((g+p)/2-e/2*(p-g)).outerRadius((g+p)/2+e/2*(p-g)).startAngle(-S)}function I(e){e.attr("d",(function(e){return L(e.thickness).startAngle(C(e.range[0])).endAngle(C(e.range[1]))()}))}k.enter().append("g").classed("angular",!0),k.attr("transform",w(_[0],_[1])),T.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),T.selectAll("g.xangularaxistick,path,text").remove(),(l=b(e,h.gauge.axis)).type="linear",l.range=h.gauge.axis.range,l._id="xangularaxis",l.setScale();var E=function(e){return(l.range[0]-e.x)/(l.range[1]-l.range[0])*Math.PI+Math.PI},O={},D=u.makeLabelFns(l,0).labelStandoff;O.xFn=function(e){var t=E(e);return Math.cos(t)*D},O.yFn=function(e){var t=E(e),n=Math.sin(t)>0?.2:1;return-Math.sin(t)*(D+e.fontSize*n)+Math.abs(Math.cos(t))*(e.fontSize*o)},O.anchorFn=function(e){var t=E(e),n=Math.cos(t);return Math.abs(n)<.1?"middle":n>0?"start":"end"},O.heightFn=function(e,t,n){var r=E(e);return-.5*(1+Math.sin(r))*n};var P=function(e){return w(_[0]+p*Math.cos(e),_[1]-p*Math.sin(e))};c=function(e){return P(E(e))};if(s=u.calcTicks(l),d=u.getTickSigns(l)[2],l.visible){d="inside"===l.ticks?-1:1;var z=(l.linewidth||1)/2;u.drawTicks(e,l,{vals:s,layer:T,path:"M"+d*z+",0h"+d*l.ticklen,transFn:function(e){var t=E(e);return P(t)+"rotate("+-i(t)+")"}}),u.drawLabels(e,l,{vals:s,layer:T,transFn:c,labelFns:O})}var N=[v].concat(h.gauge.steps),j=k.selectAll("g.bg-arc").data(N);j.enter().append("g").classed("bg-arc",!0).append("path"),j.select("path").call(I).call(x),j.exit().remove();var R=L(h.gauge.bar.thickness),F=k.selectAll("g.value-arc").data([h.gauge.bar]);F.enter().append("g").classed("value-arc",!0).append("path");var B=F.select("path");y(M)?(B.transition().duration(M.duration).ease(M.easing).each("end",(function(){A&&A()})).each("interrupt",(function(){A&&A()})).attrTween("d",(H=R,V=C(n[0].lastY),G=C(n[0].y),function(){var e=r.interpolate(V,G);return function(t){return H.endAngle(e(t))()}})),h._lastValue=n[0].y):B.attr("d","number"==typeof n[0].y?R.endAngle(C(n[0].y)):"M0,0Z");var H,V,G;B.call(x),F.exit().remove(),N=[];var U=h.gauge.threshold.value;U&&N.push({range:[U,U],color:h.gauge.threshold.color,line:{color:h.gauge.threshold.line.color,width:h.gauge.threshold.line.width},thickness:h.gauge.threshold.thickness});var q=k.selectAll("g.threshold-arc").data(N);q.enter().append("g").classed("threshold-arc",!0).append("path"),q.select("path").call(I).call(x),q.exit().remove();var Z=k.selectAll("g.gauge-outline").data([m]);Z.enter().append("g").classed("gauge-outline",!0).append("path"),Z.select("path").call(I).call(x),Z.exit().remove()}(e,0,t,{radius:R,innerRadius:F,gauge:G,layer:U,size:z,gaugeBg:S,gaugeOutline:C,transitionOpts:n,onComplete:h});var q=I.selectAll("g.bullet").data(D?t:[]);q.exit().remove();var Z=I.selectAll("g.bulletaxis").data(D?t:[]);Z.exit().remove(),D&&function(e,t,n,r){var a,i,o,l,c,d=n[0].trace,h=r.gauge,f=r.layer,g=r.gaugeBg,v=r.gaugeOutline,m=r.size,w=d.domain,_=r.transitionOpts,k=r.onComplete;h.enter().append("g").classed("bullet",!0),h.attr("transform","translate("+m.l+", "+m.t+")"),f.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),f.selectAll("g.xbulletaxistick,path,text").remove();var T=m.h,M=d.gauge.bar.thickness*T,A=w.x[0],S=w.x[0]+(w.x[1]-w.x[0])*(d._hasNumber||d._hasDelta?1-s.bulletNumberDomainSize:1);(a=b(e,d.gauge.axis))._id="xbulletaxis",a.domain=[A,S],a.setScale(),i=u.calcTicks(a),o=u.makeTransFn(a),l=u.getTickSigns(a)[2],c=m.t+m.h,a.visible&&(u.drawTicks(e,a,{vals:"inside"===a.ticks?u.clipEnds(a,i):i,layer:f,path:u.makeTickPath(a,c,l),transFn:o}),u.drawLabels(e,a,{vals:i,layer:f,transFn:o,labelFns:u.makeLabelFns(a,c)}));function C(e){e.attr("width",(function(e){return Math.max(0,a.c2p(e.range[1])-a.c2p(e.range[0]))})).attr("x",(function(e){return a.c2p(e.range[0])})).attr("y",(function(e){return.5*(1-e.thickness)*T})).attr("height",(function(e){return e.thickness*T}))}var L=[g].concat(d.gauge.steps),I=h.selectAll("g.bg-bullet").data(L);I.enter().append("g").classed("bg-bullet",!0).append("rect"),I.select("rect").call(C).call(x),I.exit().remove();var E=h.selectAll("g.value-bullet").data([d.gauge.bar]);E.enter().append("g").classed("value-bullet",!0).append("rect"),E.select("rect").attr("height",M).attr("y",(T-M)/2).call(x),y(_)?E.select("rect").transition().duration(_.duration).ease(_.easing).each("end",(function(){k&&k()})).each("interrupt",(function(){k&&k()})).attr("width",Math.max(0,a.c2p(Math.min(d.gauge.axis.range[1],n[0].y)))):E.select("rect").attr("width","number"==typeof n[0].y?Math.max(0,a.c2p(Math.min(d.gauge.axis.range[1],n[0].y))):0);E.exit().remove();var O=n.filter((function(){return d.gauge.threshold.value})),D=h.selectAll("g.threshold-bullet").data(O);D.enter().append("g").classed("threshold-bullet",!0).append("line"),D.select("line").attr("x1",a.c2p(d.gauge.threshold.value)).attr("x2",a.c2p(d.gauge.threshold.value)).attr("y1",(1-d.gauge.threshold.thickness)/2*T).attr("y2",(1-(1-d.gauge.threshold.thickness)/2)*T).call(p.stroke,d.gauge.threshold.line.color).style("stroke-width",d.gauge.threshold.line.width),D.exit().remove();var P=h.selectAll("g.gauge-outline").data([v]);P.enter().append("g").classed("gauge-outline",!0).append("rect"),P.select("rect").call(C).call(x),P.exit().remove()}(e,0,t,{gauge:q,layer:Z,size:z,gaugeBg:S,gaugeOutline:C,transitionOpts:n,onComplete:h});var W=I.selectAll("text.title").data(t);W.exit().remove(),W.enter().append("text").classed("title",!0),W.attr("text-anchor",(function(){return D?g.right:g[L.title.align]})).text(L.title.text).call(l.font,L.title.font).call(c.convertToTspans,e),W.attr("transform",(function(){var e,t=z.l+z.w*v[L.title.align],n=s.titlePadding,r=l.bBox(W.node());if(E){if(O)if(L.gauge.axis.visible)e=l.bBox(U.node()).top-n-r.bottom;else e=z.t+z.h/2-R/2-r.bottom-n;D&&(e=M-(r.top+r.bottom)/2,t=z.l-s.bulletPadding*z.w)}else e=L._numbersTop-n-r.bottom;return w(t,e)}))}))}},eXRl:function(e,t,n){"use strict";var r=n("/CZE"),a=n("BVrX").counter,i=n("gfA5").attributes,o=n("0wH6").idRegex,l=n("plED"),s={rows:{valType:"integer",min:1,role:"info",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",role:"info",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,role:"info",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:[a("xy").toString(),""],editType:"plot"},role:"info",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"},role:"info",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"},role:"info",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",role:"info",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,role:"info",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,role:"info",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",role:"info",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",role:"info",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,n){var r=t[n+"axes"],a=Object.keys((e._splomAxes||{})[n]||{});return Array.isArray(r)?r:a.length?a:void 0}function u(e,t,n,r,a,i){var o=t(e+"gap",n),l=t("domain."+e);t(e+"side",r);for(var s=new Array(a),c=l[0],u=(l[1]-c)/(a-o),d=u*(1-o),h=0;h<a;h++){var f=c+u*h;s[i?a-1-h:h]=[f,f+d]}return s}function d(e,t,n,r,a){var i,o=new Array(n);function l(e,n){-1!==t.indexOf(n)&&void 0===r[n]?(o[e]=n,r[n]=e):o[e]=""}if(Array.isArray(e))for(i=0;i<n;i++)l(i,e[i]);else for(l(0,a),i=1;i<n;i++)l(i,a+(i+1));return o}e.exports={moduleType:"component",name:"grid",schema:{layout:{grid:s}},layoutAttributes:s,sizeDefaults:function(e,t){var n=e.grid||{},a=c(t,n,"x"),i=c(t,n,"y");if(e.grid||a||i){var o,d,h=Array.isArray(n.subplots)&&Array.isArray(n.subplots[0]),f=Array.isArray(a),p=Array.isArray(i),g=f&&a!==n.xaxes&&p&&i!==n.yaxes;h?(o=n.subplots.length,d=n.subplots[0].length):(p&&(o=i.length),f&&(d=a.length));var v=l.newContainer(t,"grid"),m=T("rows",o),y=T("columns",d);if(m*y>1){if(!h&&!f&&!p)"independent"===T("pattern")&&(h=!0);v._hasSubplotGrid=h;var x,b,w="top to bottom"===T("roworder"),_=h?.2:.1,k=h?.3:.1;g&&t._splomGridDflt&&(x=t._splomGridDflt.xside,b=t._splomGridDflt.yside),v._domains={x:u("x",T,_,x,y),y:u("y",T,k,b,m,w)}}else delete t.grid}function T(e,t){return r.coerce(n,v,s,e,t)}},contentDefaults:function(e,t){var n=t.grid;if(n&&n._domains){var r,a,i,o,l,s,u,h=e.grid||{},f=t._subplots,p=n._hasSubplotGrid,g=n.rows,v=n.columns,m="independent"===n.pattern,y=n._axisMap={};if(p){var x=h.subplots||[];s=n.subplots=new Array(g);var b=1;for(r=0;r<g;r++){var w=s[r]=new Array(v),_=x[r]||[];for(a=0;a<v;a++)if(m?(l=1===b?"xy":"x"+b+"y"+b,b++):l=_[a],w[a]="",-1!==f.cartesian.indexOf(l)){if(u=l.indexOf("y"),i=l.slice(0,u),o=l.slice(u),void 0!==y[i]&&y[i]!==a||void 0!==y[o]&&y[o]!==r)continue;w[a]=l,y[i]=a,y[o]=r}}}else{var k=c(t,h,"x"),T=c(t,h,"y");n.xaxes=d(k,f.xaxis,v,y,"x"),n.yaxes=d(T,f.yaxis,g,y,"y")}var M=n._anchors={},A="top to bottom"===n.roworder;for(var S in y){var C,L,I,E=S.charAt(0),O=n[E+"side"];if(O.length<8)M[S]="free";else if("x"===E){if("t"===O.charAt(0)===A?(C=0,L=1,I=g):(C=g-1,L=-1,I=-1),p){var D=y[S];for(r=C;r!==I;r+=L)if((l=s[r][D])&&(u=l.indexOf("y"),l.slice(0,u)===S)){M[S]=l.slice(u);break}}else for(r=C;r!==I;r+=L)if(o=n.yaxes[r],-1!==f.cartesian.indexOf(S+o)){M[S]=o;break}}else if("l"===O.charAt(0)?(C=0,L=1,I=v):(C=v-1,L=-1,I=-1),p){var P=y[S];for(r=C;r!==I;r+=L)if((l=s[P][r])&&(u=l.indexOf("y"),l.slice(u)===S)){M[S]=l.slice(0,u);break}}else for(r=C;r!==I;r+=L)if(i=n.xaxes[r],-1!==f.cartesian.indexOf(i+S)){M[S]=i;break}}}}}},efHY:function(e,t,n){"use strict";t.isGrouped=function(e){return-1!==(e.traceorder||"").indexOf("grouped")},t.isVertical=function(e){return"h"!==e.orientation},t.isReversed=function(e){return-1!==(e.traceorder||"").indexOf("reversed")}},el8q:function(e,t,n){"use strict";e.exports={moduleType:"trace",name:"indicator",basePlotModule:n("ZDyq"),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:n("HIIg"),supplyDefaults:n("GLsQ").supplyDefaults,calc:n("WtF/").calc,plot:n("eO4U"),meta:{description:["An indicator is used to visualize a single `value` along with some","contextual information such as `steps` or a `threshold`, using a","combination of three visual elements: a number, a delta, and/or a gauge.","Deltas are taken with respect to a `reference`.","Gauges can be either angular or bullet (aka linear) gauges."].join(" ")}}},en0M:function(e,t,n){"use strict";e.exports={attributes:n("i9ir"),supplyDefaults:n("9VKb"),colorbar:n("/LM6"),calc:n("0K3i"),calcGeoJSON:n("U4zm").calcGeoJSON,plot:n("U4zm").plot,style:n("56vX").style,styleOnSelect:n("56vX").styleOnSelect,hoverPoints:n("A40U"),eventData:n("qeth"),selectPoints:n("7252"),moduleType:"trace",name:"choropleth",basePlotModule:n("npri"),categories:["geo","noOpacity","showLegend"],meta:{description:["The data that describes the choropleth value-to-color mapping","is set in `z`.","The geographic locations corresponding to each value in `z`","are set in `locations`."].join(" ")}}},f56O:function(e,t,n){"use strict";var r=n("/CZE"),a=n("BkK/"),i=n("bcxm"),o=n("wAWO"),l=n("lUdJ"),s=n("WRPy"),c=n("DDk4").calcAllAutoBins;function u(e,t,n,r){var a,i=new Array(e);if(r)for(a=0;a<e;a++)i[a]=1/(t[a+1]-t[a]);else{var o=1/n;for(a=0;a<e;a++)i[a]=o}return i}function d(e,t){return{start:e(t.start),end:e(t.end),size:t.size}}function h(e,t,n,r,a,i){var o,l=e.length-1,c=new Array(l),u=s(n,r,e,a,i);for(o=0;o<l;o++){var d=(t||[])[o];c[o]=void 0===d?[u(e[o]),u(e[o+1],!0)]:[d,d]}return c}e.exports=function(e,t){var n,s,f,p,g=a.getFromId(e,t.xaxis),v=a.getFromId(e,t.yaxis),m=t.xcalendar,y=t.ycalendar,x=function(e){return g.r2c(e,0,m)},b=function(e){return v.r2c(e,0,y)},w=c(e,t,g,"x"),_=w[0],k=w[1],T=c(e,t,v,"y"),M=T[0],A=T[1],S=t._length;k.length>S&&k.splice(S,k.length-S),A.length>S&&A.splice(S,A.length-S);var C=[],L=[],I=[],E="string"==typeof _.size,O="string"==typeof M.size,D=[],P=[],z=E?D:_,N=O?P:M,j=0,R=[],F=[],B=t.histnorm,H=t.histfunc,V=-1!==B.indexOf("density"),G="max"===H||"min"===H?null:0,U=i.count,q=o[B],Z=!1,W=[],Y=[],X="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";X&&"count"!==H&&(Z="avg"===H,U=i[H]);var $=_.size,J=x(_.start),K=x(_.end)+(J-a.tickIncrement(J,$,!1,m))/1e6;for(n=J;n<K;n=a.tickIncrement(n,$,!1,m))L.push(G),D.push(n),Z&&I.push(0);D.push(n);var Q,ee=L.length,te=(n-J)/ee,ne=(Q=J+te/2,g.c2r(Q,0,m)),re=M.size,ae=b(M.start),ie=b(M.end)+(ae-a.tickIncrement(ae,re,!1,y))/1e6;for(n=ae;n<ie;n=a.tickIncrement(n,re,!1,y)){C.push(L.slice()),P.push(n);var oe=new Array(ee);for(s=0;s<ee;s++)oe[s]=[];F.push(oe),Z&&R.push(I.slice())}P.push(n);var le=C.length,se=(n-ae)/le,ce=function(e){return v.c2r(e,0,y)}(ae+se/2);V&&(W=u(L.length,z,te,E),Y=u(C.length,N,se,O)),E||"date"!==g.type||(z=d(x,z)),O||"date"!==v.type||(N=d(b,N));var ue=!0,de=!0,he=new Array(ee),fe=new Array(le),pe=1/0,ge=1/0,ve=1/0,me=1/0;for(n=0;n<S;n++){var ye=k[n],xe=A[n];f=r.findBin(ye,z),p=r.findBin(xe,N),f>=0&&f<ee&&p>=0&&p<le&&(j+=U(f,n,C[p],X,R[p]),F[p][f].push(n),ue&&(void 0===he[f]?he[f]=ye:he[f]!==ye&&(ue=!1)),de&&(void 0===fe[p]?fe[p]=xe:fe[p]!==xe&&(de=!1)),pe=Math.min(pe,ye-D[f]),ge=Math.min(ge,D[f+1]-ye),ve=Math.min(ve,xe-P[p]),me=Math.min(me,P[p+1]-xe))}if(Z)for(p=0;p<le;p++)j+=l(C[p],R[p]);if(q)for(p=0;p<le;p++)q(C[p],j,W,Y[p]);return{x:k,xRanges:h(D,ue&&he,pe,ge,g,m),x0:ne,dx:te,y:A,yRanges:h(P,de&&fe,ve,me,v,y),y0:ce,dy:se,z:C,pts:F}}},f7dW:function(e,t,n){"use strict";e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},f8PX:function(e,t,n){"use strict";var r=n("Nx4I"),a=n("6BKz").hover;e.exports=function(e,t,n){var i=r.getComponentMethod("annotations","onClick")(e,e._hoverdata);function o(){e.emit("plotly_click",{points:e._hoverdata,event:t})}void 0!==n&&a(e,t,n,!0),e._hoverdata&&t&&t.target&&(i&&i.then?i.then(o):o(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}},f9ru:function(e,t,n){"use strict";var r=n("BkK/"),a=n("/CZE").mergeArray,i=n("QTaS"),o=n("6AZA").BADNUM;function l(e){return"a"===e||"absolute"===e}function s(e){return"t"===e||"total"===e}e.exports=function(e,t){var n,c,u=r.getFromId(e,t.xaxis||"x"),d=r.getFromId(e,t.yaxis||"y");"h"===t.orientation?(n=u.makeCalcdata(t,"x"),c=d.makeCalcdata(t,"y")):(n=d.makeCalcdata(t,"y"),c=u.makeCalcdata(t,"x"));for(var h,f=Math.min(c.length,n.length),p=new Array(f),g=0,v=!1,m=0;m<f;m++){var y=n[m]||0,x=!1;(n[m]!==o||s(t.measure[m])||l(t.measure[m]))&&m+1<f&&(n[m+1]!==o||s(t.measure[m+1])||l(t.measure[m+1]))&&(x=!0);var b=p[m]={i:m,p:c[m],s:y,rawS:y,cNext:x};l(t.measure[m])?(g=b.s,b.isSum=!0,b.dir="totals",b.s=g):s(t.measure[m])?(b.isSum=!0,b.dir="totals",b.s=g):(b.isSum=!1,b.dir=b.rawS<0?"decreasing":"increasing",h=b.s,b.s=g+h,g+=h),"totals"===b.dir&&(v=!0),t.ids&&(b.id=String(t.ids[m])),b.v=(t.base||0)+g}return p.length&&(p[0].hasTotals=v),a(t.text,p,"tx"),a(t.hovertext,p,"htx"),i(p,t),p}},fEMZ:function(e,t,n){"use strict";var r=n("bljh"),a=n("g9E0"),i=n("/CZE"),o=n("A3kh"),l=n("x5FY").toMoveInsideBar,s=n("k6aH"),c=s.recordMinTextSize,u=s.clearMinTextSize,d=n("WeBh"),h=n("wK8V"),f=h.attachFxHandlers,p=h.determineInsideTextFont,g=h.layoutAreas,v=h.prerenderTitles,m=h.positionTitleOutside,y=h.formatSliceLabel;function x(e,t){return"l"+(t[0]-e[0])+","+(t[1]-e[1])}e.exports=function(e,t){var n=e._fullLayout;u("funnelarea",n),v(t,e),g(t,n._size),i.makeTraceGroups(n._funnelarealayer,t,"trace").each((function(t){var s=r.select(this),u=t[0],h=u.trace;!function(e){if(!e.length)return;var t=e[0],n=t.trace,r=n.aspectratio,a=n.baseratio;a>.999&&(a=.999);var i,o=Math.pow(a,2),l=t.vTotal,s=l,c=l*o/(1-o)/l;function u(){var e,t={x:e=Math.sqrt(c),y:-e};return[t.x,t.y]}var d,h,f=[];for(f.push(u()),d=e.length-1;d>-1;d--)if(!(h=e[d]).hidden){var p=h.v/s;c+=p,f.push(u())}var g=1/0,v=-1/0;for(d=0;d<f.length;d++)i=f[d],g=Math.min(g,i[1]),v=Math.max(v,i[1]);for(d=0;d<f.length;d++)f[d][1]-=(v+g)/2;var m=f[f.length-1][0],y=t.r,x=(v-g)/2,b=y/m,w=y/x*r;for(t.r=w*x,d=0;d<f.length;d++)f[d][0]*=b,f[d][1]*=w;var _=[-(i=f[0])[0],i[1]],k=[i[0],i[1]],T=0;for(d=e.length-1;d>-1;d--)if(!(h=e[d]).hidden){var M=f[T+=1][0],A=f[T][1];h.TL=[-M,A],h.TR=[M,A],h.BL=_,h.BR=k,h.pxmid=(S=h.TR,C=h.BR,[.5*(S[0]+C[0]),.5*(S[1]+C[1])]),_=h.TL,k=h.TR}var S,C}(t),s.each((function(){var s=r.select(this).selectAll("g.slice").data(t);s.enter().append("g").classed("slice",!0),s.exit().remove(),s.each((function(s,g){if(s.hidden)r.select(this).selectAll("path,g").remove();else{s.pointNumber=s.i,s.curveNumber=h.index;var v=u.cx,m=u.cy,b=r.select(this),w=b.selectAll("path.surface").data([s]);w.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),b.call(f,e,t);var _="M"+(v+s.TR[0])+","+(m+s.TR[1])+x(s.TR,s.BR)+x(s.BR,s.BL)+x(s.BL,s.TL)+"Z";w.attr("d",_),y(e,s,u);var k=d.castOption(h.textposition,s.pts),T=b.selectAll("g.slicetext").data(s.text&&"none"!==k?[0]:[]);T.enter().append("g").classed("slicetext",!0),T.exit().remove(),T.each((function(){var u=i.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),d=i.ensureUniformFontSize(e,p(h,s,n.font));u.text(s.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(a.font,d).call(o.convertToTspans,e);var f,y,x,b=a.bBox(u.node()),w=Math.min(s.BL[1],s.BR[1])+m,_=Math.max(s.TL[1],s.TR[1])+m;y=Math.max(s.TL[0],s.BL[0])+v,x=Math.min(s.TR[0],s.BR[0])+v,(f=l(y,x,w,_,b,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"})).fontSize=d.size,c(h.type,f,n),t[g].transform=f,u.attr("transform",i.getTextTransform(f))}))}}));var g=r.select(this).selectAll("g.titletext").data(h.title.text?[0]:[]);g.enter().append("g").classed("titletext",!0),g.exit().remove(),g.each((function(){var t=i.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),l=h.title.text;h._meta&&(l=i.templateString(l,h._meta)),t.text(l).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(a.font,h.title.font).call(o.convertToTspans,e);var s=m(u,n._size);t.attr("transform","translate("+s.x+","+s.y+")"+(s.scale<1?"scale("+s.scale+")":"")+"translate("+s.tx+","+s.ty+")")}))}))}))}},fHvi:function(e,t,n){"use strict";(function(e){var r=n("MQ60"),a=n.n(r),i=n("L2JU"),o=n("al3m"),l=n("ZeYI"),s=n("+8Ue"),c=n("+Yeh"),u=n("NpOY");t.a={name:"analyze-view",mixins:[o.a,l.a],props:["reportId"],data:()=>({selectedGraphType:"DataTable",dataTableItems:{isdatatable:!1,headers:"",chartdata:"",chartdataJSON:"",isCrossTab:!1,crossTabHeaders:[],crossTabData:[],totalArray:[],selected:[]},saveReportDialog:!1,currencyFormat:"Default",filterDataItems:{isNormalFilter:"true",complexFilters:[],allFilters:[],selectedFilters:[],permanentFilterList:[],errorFilter:"",checkedFilters:[],filterId:""},goClicked:!1,pagination:{rowsPerPage:5,page:1},isFetchingData:!1,rowsPerPageItems:[5,10,25,100],AppliedFilters:"",showAppliedFilters:!1,graphTypes:["DataTable","Column","Bar","Line","HVLine","Scatter","Pie","Donut","Radar","StackedBar","StackedArea","Funnel","StackedFunnel","Bubble","Gauge","Geo","Heatmap","Treemap","Sunburst","Waterfall"],items:"",report:"",showAnalyzeFilterDrawer:!1,errorCode:"DEFAULT",checkItem:"",errorDim:"",errorMeas:"",encodeOperDict:{eq:"=",lt:"<",gt:">",ge:">=",le:"<=",ne:"!=",bw:"bw",lk:"like",ms:"="},reportFiltersArr:[],decodeOperDict:{eq:"Equal To",gt:"Greater Than",lt:"Less Than",ne:"Not Equal To",ge:"Greater Equal To",le:"Lesser Equal To",bw:"Between",lk:"Like",ms:"Equal To"}}),components:{draggable:a.a,"cub-data-table":s.a,"cub-data-table-crosstab":c.a,"cub-save":u.a},created(){this.$store.commit("deleteAllDimensions"),this.$store.commit("deleteAllMeasures"),this.$store.commit("deleteAllRows"),this.$store.commit("deleteAllColumns"),this.items=this.$store.state.itemList,this.reportId&&this.populateReportItems(this.reportId)},mounted(){console.log(this.$store)},computed:{...Object(i.b)(["selectedMeasures","selectedDimensions","getReportById","getItemMetaById","getMetaNameById","getAllFilters","getSelectedFilters","getStandardFilterArray"]),selectedFilters:{get:function(){return this.$store.state.selectedFilters}},selectedRows:{get(){return this.$store.state.selectedItems.selectedRows},set(e){this.$store.commit("draggedRows",e)}},selectedColumns:{get(){return this.$store.state.selectedItems.selectedColumns},set(e){this.$store.commit("draggedColumns",e)}},selectedDimensionNames:function(){var e=[];for(var t in this.selectedDimensions)e.push(this.selectedDimensions[t].Name);return e},selectedMeasureNames:function(){var e=[];for(var t in this.selectedMeasures)e.push(this.selectedMeasures[t].Name);return e},selectedRowNames:function(){var e=[];for(var t in this.selectedRows)e.push(this.selectedRows[t].Name);return e},selectedColumnNames:function(){var e=[];for(var t in this.selectedColumns)e.push(this.selectedColumns[t].Name);return e},complexFilterStr:function(){var e="";for(var t in this.filterDataItems.selectedFilters)this.filterDataItems.selectedFilters[t].isNormalFilter||(e+=this.filterDataItems.selectedFilters[t].FilterValues);return e},selectedDimIds:function(){var e=[];if(this.selectedRows.length)for(var t in this.selectedRows)e.push(this.selectedRows[t].Id);if(this.selectedColumns.length)for(var n in this.selectedColumns){var r=this.selectedColumns[n].Id;+r<1e4&&e.push(r)}return e},selectedMeasIds:function(){var e=[];for(var t in this.selectedColumns){+this.selectedColumns[t].Id>1e4&&e.push(this.selectedColumns[t].Id)}return e},selectedRowIds:function(){var e=[];for(var t in this.selectedRows)e.push(this.selectedRows[t].Id);return e},selectedColumnIds:function(){var e=[];for(var t in this.selectedColumns)e.push(this.selectedColumns[t].Id);return e},pivotLevel:function(){var e=0;for(var t in this.selectedColumns)this.selectedColumns[t].Id<1e4&&e++;return e},selectedFilterStr:function(){var e="";for(var t in this.reportFiltersArr)this.reportFiltersArr[t].isNormalFilter&&(e+="["+this.reportFiltersArr[t].FilterItemId+"("+this.reportFiltersArr[t].FilterOper+")"+this.reportFiltersArr[t].FilterValues+"]");return e}},methods:{redrawGraph(e){this.selectedGraphType=e,this.drawChart()},resetBreadcrumbs(){this.drillLabels.splice(1)},breadcrumbClick(e,t,n){if(t)this.drillLabels=this.drillLabels.slice(0,t+1),this.dataTableItems.isCrossTab?this.plotAnyChart(e,n.depth,n,"chart_div",this.crossTabHeader.nmeas,this.selectedGraphType):this.plotAnyChart(e,n.depth,n,"chart_div",this.selectedMeasures.length,this.selectedGraphType);else if(this.resetBreadcrumbs(),this.dataTableItems.isCrossTab){var r={Target:"chart_div"};r.data=this.dataTableItems.chartdata,this.drawCrossTabGraph(r,this.report,this.selectedGraphType)}else this.drawPlotlyCharts("chart_div",this.dataTableItems.chartdata,this.selectedDimensions.length,this.selectedMeasures.length,this.selectedGraphType)},exportData(){if(this.dataTableItems.chartdata.length>0)if(this.dataTableItems.isCrossTab){for(var e,t="",n="",r=0;r<this.selectedColumns.length;r++)this.selectedColumns[r].Id<1e4&&(t=this.selectedColumns[r].Name,n=this.selectedColumns[r]);for(var a=0;a<this.dataTableItems.chartdata[0].length;a++)t==this.dataTableItems.chartdata[0][a]&&(e=a);var i=this.dataTableItems.chartdata.slice(1);this.dataTableItems.crossTabHeaders=this.getHeader(i,this.selectedRows.length,this.selectedColumns.length,this.selectedMeasures.length,this.selectedRowIds,this.selectedColumnIds,this.selectedColumnNames,this.selectedRowNames,this.selectedMeasureNames,e,n),this.dataTableItems.crossTabData=this.getAllValues(this.dataTableItems.crossTabHeaders,i,this.selectedRows.length,this.selectedColumns.length,this.selectedMeasures.length,this.selectedMeasureNames,this.selectedDimensions[0]),this.exportToExcelCrossTab_SheetJS(this.dataTableItems.chartdata,"","",this.selectedDimIds,this.selectedMeasIds)}else this.dataTableItems.totalArray=this.getTotals(this.dataTableItems.chartdata,this.selectedDimIds.length),this.exportToExcel_SheetJS(this.dataTableItems.chartdata,"","",this.selectedDimIds.concat(this.selectedMeasIds),this.dataTableItems.totalArray)},toggleRow(e){if(e.draggedContext&&(e=e.draggedContext.element),!(e.Id>1e4)){var t=this.selectedDimensions.indexOf(e);if(-1==t)this.selectedDimensions.length>=7?(this.$store.commit("setErrorStatus",!0),this.$store.commit("setErrorCode","DIM_LIMIT_REACHED")):(this.$store.commit("insertDimensions",e),this.$store.commit("insertRows",e));else{this.$store.commit("deleteDimensions",t);var n=this.selectedRows.indexOf(e);if(-1!=n)this.$store.commit("deleteRows",n);else{var r=this.selectedColumns.indexOf(e);-1!=r&&this.$store.commit("deleteColumns",r)}}}},toggleColumn(e){e.draggedContext&&(e=e.draggedContext.element);var t=this.selectedColumns.indexOf(e);-1==t?this.$store.commit("insertColumns",e):this.$store.commit("deleteColumns",t),e.Id>1e4?-1==(t=this.selectedMeasures.indexOf(e))?this.$store.commit("insertMeasures",e):this.$store.commit("deleteMeasures",t):-1==(t=this.selectedDimensions.indexOf(e))?this.selectedDimensions.length>=7?(this.$store.commit("setErrorStatus",!0),this.$store.commit("setErrorCode","DIM_LIMIT_REACHED")):this.pivotLevel<1?this.$store.commit("insertDimensions",e):(this.$store.commit("setErrorStatus",!0),this.$store.commit("setErrorCode","PIVOT_LIMIT_REACHED")):this.$store.commit("deleteDimensions",t)},checkMDRearrange(e){if(e.to.className==e.to.className)return!0;var t=e.to.className;return!("rowdroparea"==t&&+e.draggedContext.element.Id>=1e4)&&("coldroparea"==t&&+e.draggedContext.element.Id<1e4&&this.pivotLevel>=1?(this.$store.commit("setErrorStatus",!0),this.$store.commit("setErrorCode","PIVOT_LIMIT_REACHED"),!1):void 0)},getVueReport(){if(this.resetBreadcrumbs(),0==this.selectedMeasures.length)this.$store.commit("setErrorStatus",!0),this.$store.commit("setErrorCode","NO_MEASURE");else if(0==this.selectedDimensions.length&&0==this.reportFiltersArr.length)this.$store.commit("setErrorStatus",!0),this.$store.commit("setErrorCode","NEITHER_DIM_NOR_FILTER");else{if(this.pagination.rowsPerPage=5,this.pagination.page=1,this.selectedMeasureNames.length!=this.selectedColumnNames.length?this.dataTableItems.isCrossTab=!0:this.dataTableItems.isCrossTab=!1,this.reportFiltersArr.length){var e="Applied Filters:";for(var t in this.reportFiltersArr)this.reportFiltersArr[t].isNormalFilter&&(e+=this.getMetaNameById(this.reportFiltersArr[t].FilterItemId)+" "+this.encodeOperDict[this.reportFiltersArr[t].FilterOper]+" "+this.reportFiltersArr[t].FilterValues.replace(/:/g,",")),t<this.reportFiltersArr.length-1&&(e+=", ");this.showAppliedFilters=!0,this.AppliedFilters=e}else this.AppliedFilters="";var n=new Object;n.authToken=this.auth_token,n.dimensionList=this.selectedDimIds.join(":"),n.measureList=this.selectedMeasIds.join(":"),n.dimensionFilterList=this.selectedFilterStr,this.complexFilterStr.length?n.complexFilterStr="{"+this.complexFilterStr+"}":n.complexFilterStr="",this.goClicked=!0,this.dataTableItems.isdatatable=!1,this.isFetchingData=!0,this.$store.dispatch("getReportData",n).then(e=>{e&&this.vueCallback(e),this.isFetchingData=!1})}},vueCallback(e){if("error"==e)return this.$store.commit("setErrorStatus",!0),this.$store.commit("setErrorCode","DEFAULT"),0;e.length<2&&(e[0]=this.selectedRowNames.concat(this.selectedColumnNames),this.dataTableItems.isCrossTab=!1,this.selectedGraphType="DataTable");this.dataTableItems.chartdata=e,this.drawChart()},drawChart(){if(this.resetBreadcrumbs(),this.dataTableItems.isdatatable=!1,e("#chart_div").html(""),"DataTable"!=this.selectedGraphType)if(this.dataTableItems.isCrossTab){var t={Target:"chart_div"};t.data=this.dataTableItems.chartdata,this.drawCrossTabGraph(t,this.report,this.selectedGraphType)}else this.drawPlotlyCharts("chart_div",this.dataTableItems.chartdata,this.selectedDimensions.length,this.selectedMeasures.length,this.selectedGraphType);else{var n=this.dataTableItems.chartdata;this.selectedDimIds;if(this.dataTableItems.isCrossTab){this.dataTableItems.isdatatable=!0;var r=new Object;r.DimensionIds=this.selectedDimIds.join(":"),r.MeasureIds=this.selectedMeasIds.join(":"),this.report=r}else this.dataTableItems.chartdataJSON=arrToObject(n),this.dataTableItems.headers=arrayToJson(n[0].slice(-1*(this.selectedDimIds.length+this.selectedMeasIds.length)),this.selectedDimIds.concat(this.selectedMeasIds)),this.dataTableItems.isdatatable=!0}},clearSelection(){this.$store.commit("deleteAllRows"),this.$store.commit("deleteAllColumns"),this.$store.commit("deleteAllDimensions"),this.$store.commit("deleteAllMeasures"),this.$store.commit("deleteAllSelectedFilters"),this.$store.commit("deleteAllCheckedFilters"),this.AppliedFilters="",e("#chart_div").html(""),this.reportId=""},applyFilters(e){console.log(this.getSelectedFilters);for(var t=[],n=0;n<this.getSelectedFilters.length;n++){this.getSelectedFilters[n].IsValid=!0;for(var r=0;r<e.length;r++)this.getSelectedFilters[n].FilterItemId==e[r].FilterItemId&&(this.getSelectedFilters[n].IsValid=!1)}for(n=0;n<this.getSelectedFilters.length;n++)this.getSelectedFilters[n].IsValid&&t.push(this.getSelectedFilters[n]);this.reportFiltersArr=e.concat(t),this.getVueReport()},populateReportItems(e){this.$store.commit("deleteAllRows"),this.$store.commit("deleteAllColumns"),this.$store.commit("deleteAllDimensions"),this.$store.commit("deleteAllMeasures");var t=this.$store.getters.getReportById(e);this.report=t;for(var n=t.DimensionIds.split(":").filter((function(e){return 0!=e.length})),r=t.MeasureIds.split(":").filter((function(e){return 0!=e.length})),a=0;a<n.length;a++){var i=this.getItemMetaById(n[a]);this.$store.commit("insertDimensions",i),"CrossTab"!=t.ReportLayout&&this.$store.commit("insertRows",i)}for(var o=0;o<r.length;o++){i=this.getItemMetaById(r[o]);this.$store.commit("insertMeasures",i),this.$store.commit("insertColumns",i)}if("CrossTab"==t.ReportLayout){var l=this.$store.getters.selectedDimensions.length-1;this.$store.commit("insertColumns",this.$store.getters.selectedDimensions[l]);for(a=0;a<l;a++)this.$store.commit("insertRows",this.$store.getters.selectedDimensions[a])}var s="";this.$store.dispatch("getGraphProperties",e).then(e=>{if(e){s=e.Data;for(var t=0;t<s.length;t++)"graphtype"==s[t].Name&&(this.selectedGraphType=s[t].Value),console.log("in if"+this.selectedGraphType);""==this.selectedGraphType&&(this.selectedGraphType="DataTable"),this.applyFilters(this.getStandardFilterArray)}})}}}}).call(this,n("+2Rf"))},fJ8H:function(e,t,n){"use strict";e.exports={moduleType:"component",name:"images",layoutAttributes:n("1y5b"),supplyLayoutDefaults:n("S2oI"),includeBasePlot:n("N9FU")("images"),draw:n("/0lf"),convertCoords:n("YXRs")}},ffJW:function(e,t,n){"use strict";var r={};function a(e){e&&null!==e.timer&&(clearTimeout(e.timer),e.timer=null)}t.throttle=function(e,t,n){var i=r[e],o=Date.now();if(!i){for(var l in r)r[l].ts<o-6e4&&delete r[l];i=r[e]={ts:0,timer:null}}function s(){n(),i.ts=Date.now(),i.onDone&&(i.onDone(),i.onDone=null)}a(i),o>i.ts+t?s():i.timer=setTimeout((function(){s(),i.timer=null}),t)},t.done=function(e){var t=r[e];return t&&t.timer?new Promise((function(e){var n=t.onDone;t.onDone=function(){n&&n(),e(),t.onDone=null}})):Promise.resolve()},t.clear=function(e){if(e)a(r[e]),delete r[e];else for(var n in r)t.clear(n)}},fiWp:function(e,t,n){"use strict";var r,a="object"==typeof Reflect?Reflect:null,i=a&&"function"==typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var s=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var a,i,o,l;if(c(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),o=i[t]),void 0===o)o=i[t]=n,++e._eventsCount;else if("function"==typeof o?o=i[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(a=u(e))>0&&o.length>a&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,l=s,console&&console.warn&&console.warn(l)}return e}function h(){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 f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=h.bind(r);return a.listener=n,r.wrapFn=a,a}function p(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(a):v(a,a.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return u(this)},l.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,a=this._events;if(void 0!==a)r=r&&void 0===a.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=a[e];if(void 0===s)return!1;if("function"==typeof s)i(s,this,t);else{var c=s.length,u=v(s,c);for(n=0;n<c;++n)i(u[n],this,t)}return!0},l.prototype.addListener=function(e,t){return d(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return d(this,e,t,!0)},l.prototype.once=function(e,t){return c(t),this.on(e,f(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,f(this,e,t)),this},l.prototype.removeListener=function(e,t){var n,r,a,i,o;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){o=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,a),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var a,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(a=i[r])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return p(this,e,!0)},l.prototype.rawListeners=function(e){return p(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},fpYS:function(e,t,n){"use strict";var r=n("BkK/");e.exports=function(e,t,n){var a={},i={_fullLayout:n},o=r.getFromTrace(i,t,"x"),l=r.getFromTrace(i,t,"y");return a.xLabel=r.tickText(o,e.x,!0).text,a.yLabel=r.tickText(l,e.y,!0).text,a}},fu4d:function(e,t,n){"use strict";var r=n("/CZE"),a=n("yzSc").overrideAll,i=n("jC0I"),o={error_x:r.extendFlat({},i),error_y:r.extendFlat({},i)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var l={error_x:r.extendFlat({},i),error_y:r.extendFlat({},i),error_z:r.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:a(l,"calc","nested"),scattergl:a(o,"calc","nested")}},supplyDefaults:n("IBVe"),calc:n("2z/O"),makeComputeError:n("PDHv"),plot:n("VTo0"),style:n("r91y"),hoverInfo:function(e,t,n){(t.error_y||{}).visible&&(n.yerr=e.yh-e.y,t.error_y.symmetric||(n.yerrneg=e.y-e.ys));(t.error_x||{}).visible&&(n.xerr=e.xh-e.x,t.error_x.symmetric||(n.xerrneg=e.x-e.xs))}}},g3i2:function(e,t,n){"use strict";var r=n("/CZE"),a=n("0RW4"),i=n("xMdC").isUnifiedHover,o=n("VNna"),l=n("plED"),s=n("poX/"),c=n("15jM"),u=n("teKd"),d=n("cRi9"),h=n("at2O").handleConstraintDefaults,f=n("86IV"),p=n("PBw4"),g=p.id2name,v=p.name2id,m=n("0wH6").AX_ID_PATTERN,y=n("Nx4I"),x=y.traceIs,b=y.getComponentMethod;function w(e,t,n){Array.isArray(e[t])?e[t].push(n):e[t]=[n]}e.exports=function(e,t,n){var p,y,_={},k={},T={},M={},A={},S={},C={},L={},I={},E={};for(p=0;p<n.length;p++){var O=n[p];if(x(O,"cartesian")||x(O,"gl2d")){var D,P;if(O.xaxis)D=g(O.xaxis),w(_,D,O);else if(O.xaxes)for(y=0;y<O.xaxes.length;y++)w(_,g(O.xaxes[y]),O);if(O.yaxis)P=g(O.yaxis),w(_,P,O);else if(O.yaxes)for(y=0;y<O.yaxes.length;y++)w(_,g(O.yaxes[y]),O);if("funnel"===O.type?"h"===O.orientation?(D&&(k[D]=!0),P&&(C[P]=!0)):P&&(T[P]=!0):"image"===O.type?(P&&(L[P]=!0),D&&(L[D]=!0)):(P&&(A[P]=!0,S[P]=!0),x(O,"carpet")&&("carpet"!==O.type||O._cheater)||D&&(M[D]=!0)),"carpet"===O.type&&O._cheater&&D&&(k[D]=!0),x(O,"2dMap")&&(I[D]=!0,I[P]=!0),x(O,"oriented"))E["h"===O.orientation?P:D]=!0}}var z=t._subplots,N=z.xaxis,j=z.yaxis,R=r.simpleMap(N,g),F=r.simpleMap(j,g),B=R.concat(F),H=a.background;N.length&&j.length&&(H=r.coerce(e,t,s,"plot_bgcolor"));var V,G,U,q,Z,W=a.combine(H,t.paper_bgcolor);function Y(){var e=_[V]||[];Z._traceIndices=e.map((function(e){return e._expandedIndex})),Z._annIndices=[],Z._shapeIndices=[],Z._imgIndices=[],Z._subplotsWith=[],Z._counterAxes=[],Z._name=Z._attr=V,Z._id=G}function X(e,t){return r.coerce(q,Z,c,e,t)}function $(e,t){return r.coerce2(q,Z,c,e,t)}function J(e){return"x"===e?j:N}function K(t,n){for(var r="x"===t?R:F,a=[],i=0;i<r.length;i++){var o=r[i];o===n||(e[o]||{}).overlaying||a.push(v(o))}return a}var Q={x:J("x"),y:J("y")},ee=Q.x.concat(Q.y),te={},ne=[];function re(){var e=q.matches;m.test(e)&&-1===ee.indexOf(e)&&(te[e]=q.type,ne=Object.keys(te))}var ae=o(e,t,n),ie=i(ae);for(p=0;p<B.length;p++){V=B[p],G=v(V),U=V.charAt(0),r.isPlainObject(e[V])||(e[V]={}),q=e[V],Z=l.newContainer(t,V,U+"axis"),Y();var oe="x"===U&&!M[V]&&k[V]||"y"===U&&!A[V]&&T[V],le="y"===U&&(!S[V]&&C[V]||L[V]),se={letter:U,font:t.font,outerTicks:I[V],showGrid:!E[V],data:_[V]||[],bgColor:W,calendar:t.calendar,automargin:!0,visibleDflt:oe,reverseDflt:le,splomStash:((t._splomAxes||{})[U]||{})[G]};X("uirevision",t.uirevision),u(q,Z,X,se),d(q,Z,X,se,t);var ce=ie&&U===ae.charAt(0),ue=$("spikecolor",ie?Z.color:void 0),de=$("spikethickness",ie?1.5:void 0),he=$("spikedash",ie?"dot":void 0),fe=$("spikemode",ie?"across":void 0),pe=$("spikesnap",ie?"hovered data":void 0);X("showspikes",!!(ce||ue||de||he||fe||pe))||(delete Z.spikecolor,delete Z.spikethickness,delete Z.spikedash,delete Z.spikemode,delete Z.spikesnap),f(q,Z,X,{letter:U,counterAxes:Q[U],overlayableAxes:K(U,V),grid:t.grid}),X("title.standoff"),re(),Z._input=q}for(p=0;p<ne.length;){G=ne[p++],U=(V=g(G)).charAt(0),r.isPlainObject(e[V])||(e[V]={}),q=e[V],Z=l.newContainer(t,V,U+"axis"),Y();var ge={letter:U,font:t.font,outerTicks:I[V],showGrid:!E[V],data:[],bgColor:W,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,splomStash:((t._splomAxes||{})[U]||{})[G]};X("uirevision",t.uirevision),Z.type=te[G]||"linear",d(q,Z,X,ge,t),f(q,Z,X,{letter:U,counterAxes:Q[U],overlayableAxes:K(U,V),grid:t.grid}),X("fixedrange"),re(),Z._input=q}var ve=b("rangeslider","handleDefaults"),me=b("rangeselector","handleDefaults");for(p=0;p<R.length;p++)V=R[p],q=e[V],Z=t[V],ve(e,t,V),"date"===Z.type&&me(q,Z,t,F,Z.calendar),X("fixedrange");for(p=0;p<F.length;p++){V=F[p],q=e[V],Z=t[V];var ye=t[g(Z.anchor)];X("fixedrange",b("rangeslider","isVisible")(ye))}var xe=t._axisConstraintGroups=[],be=t._axisMatchGroups=[],we=ee.concat(ne),_e=B.concat(r.simpleMap(ne,g));for(p=0;p<_e.length;p++){var ke,Te;U=(V=_e[p]).charAt(0),q=e[V],Z=t[V],ke="y"===U&&!q.hasOwnProperty("scaleanchor")&&L[V]?Z.anchor:void 0,Te=!q.hasOwnProperty("constrain")&&L[V]?"domain":void 0,h(q,Z,X,{allAxisIds:we,layoutOut:t,scaleanchorDflt:ke,constrainDflt:Te})}for(p=0;p<be.length;p++){var Me=be[p],Ae=null,Se=null;for(G in Me)(Z=t[g(G)]).matches||(Ae=Z.range,Se=Z.autorange);if(null===Ae||null===Se)for(G in Me){Ae=(Z=t[g(G)]).range,Se=Z.autorange;break}for(G in Me)(Z=t[g(G)]).matches&&(Z.range=Ae.slice(),Z.autorange=Se),Z._matchGroup=Me;if(xe.length)for(G in Me)for(y=0;y<xe.length;y++){var Ce=xe[y];for(var Le in Ce)G===Le&&(r.warn("Axis "+Le+" is set with both a *scaleanchor* and *matches* constraint; ignoring the scale constraint."),delete Ce[Le],Object.keys(Ce).length<2&&xe.splice(y,1))}}}},g9E0:function(e,t,n){"use strict";var r=n("bljh"),a=n("GbLo"),i=n("Zss7"),o=n("Nx4I"),l=n("0RW4"),s=n("wlgE"),c=n("/CZE"),u=n("A3kh"),d=n("c8nr"),h=n("Y9zF").LINE_SPACING,f=n("cqRZ").DESELECTDIM,p=n("3oHU"),g=n("GXgJ"),v=n("xMdC").appendArrayPointValue,m=e.exports={};m.font=function(e,t,n,r){c.isPlainObject(t)&&(r=t.color,n=t.size,t=t.family),t&&e.style("font-family",t),n+1&&e.style("font-size",n+"px"),r&&e.call(l.fill,r)},m.setPosition=function(e,t,n){e.attr("x",t).attr("y",n)},m.setSize=function(e,t,n){e.attr("width",t).attr("height",n)},m.setRect=function(e,t,n,r,a){e.call(m.setPosition,t,n).call(m.setSize,r,a)},m.translatePoint=function(e,t,n,r){var i=n.c2p(e.x),o=r.c2p(e.y);return!!(a(i)&&a(o)&&t.node())&&("text"===t.node().nodeName?t.attr("x",i).attr("y",o):t.attr("transform","translate("+i+","+o+")"),!0)},m.translatePoints=function(e,t,n){e.each((function(e){var a=r.select(this);m.translatePoint(e,a,t,n)}))},m.hideOutsideRangePoint=function(e,t,n,r,a,i){t.attr("display",n.isPtWithinRange(e,a)&&r.isPtWithinRange(e,i)?null:"none")},m.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var n=t.xaxis,a=t.yaxis;e.each((function(t){var i=t[0].trace,l=i.xcalendar,s=i.ycalendar,c=o.traceIs(i,"bar-like")?".bartext":".point,.textpoint";e.selectAll(c).each((function(e){m.hideOutsideRangePoint(e,r.select(this),n,a,l,s)}))}))}},m.crispRound=function(e,t,n){return t&&a(t)?e._context.staticPlot?t:t<1?1:Math.round(t):n||0},m.singleLineStyle=function(e,t,n,r,a){t.style("fill","none");var i=(((e||[])[0]||{}).trace||{}).line||{},o=n||i.width||0,s=a||i.dash||"";l.stroke(t,r||i.color),m.dashLine(t,s,o)},m.lineGroupStyle=function(e,t,n,a){e.style("fill","none").each((function(e){var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,s=a||i.dash||"";r.select(this).call(l.stroke,n||i.color).call(m.dashLine,s,o)}))},m.dashLine=function(e,t,n){n=+n||0,t=m.dashStyle(t,n),e.style({"stroke-dasharray":t,"stroke-width":n+"px"})},m.dashStyle=function(e,t){t=+t||1;var n=Math.max(t,3);return"solid"===e?e="":"dot"===e?e=n+"px,"+n+"px":"dash"===e?e=3*n+"px,"+3*n+"px":"longdash"===e?e=5*n+"px,"+5*n+"px":"dashdot"===e?e=3*n+"px,"+n+"px,"+n+"px,"+n+"px":"longdashdot"===e&&(e=5*n+"px,"+2*n+"px,"+n+"px,"+2*n+"px"),e},m.singleFillStyle=function(e){var t=(((r.select(e.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;t&&e.call(l.fill,t)},m.fillGroupStyle=function(e){e.style("stroke-width",0).each((function(e){var t=r.select(this);e[0].trace&&t.call(l.fill,e[0].trace.fillcolor)}))};var y=n("M1CZ");m.symbolNames=[],m.symbolFuncs=[],m.symbolNeedLines={},m.symbolNoDot={},m.symbolNoFill={},m.symbolList=[],Object.keys(y).forEach((function(e){var t=y[e],n=t.n;m.symbolList.push(n,e,n+100,e+"-open"),m.symbolNames[n]=e,m.symbolFuncs[n]=t.f,t.needLine&&(m.symbolNeedLines[n]=!0),t.noDot?m.symbolNoDot[n]=!0:m.symbolList.push(n+200,e+"-dot",n+300,e+"-open-dot"),t.noFill&&(m.symbolNoFill[n]=!0)}));var x=m.symbolNames.length;function b(e,t){var n=e%100;return m.symbolFuncs[n](t)+(e>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}m.symbolNumber=function(e){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=m.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=x||e>=400?0:Math.floor(Math.max(e,0))};var w={x1:1,x2:0,y1:0,y2:0},_={x1:0,x2:0,y1:1,y2:0},k=r.format("~.1f"),T={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:w},horizontalreversed:{node:"linearGradient",attrs:w,reversed:!0},vertical:{node:"linearGradient",attrs:_},verticalreversed:{node:"linearGradient",attrs:_,reversed:!0}};m.gradient=function(e,t,n,a,o,s){for(var u=o.length,d=T[a],h=new Array(u),f=0;f<u;f++)d.reversed?h[u-1-f]=[k(100*(1-o[f][0])),o[f][1]]:h[f]=[k(100*o[f][0]),o[f][1]];var p=t._fullLayout,g="g"+p._uid+"-"+n,v=p._defs.select(".gradients").selectAll("#"+g).data([a+h.join(";")],c.identity);v.exit().remove(),v.enter().append(d.node).each((function(){var e=r.select(this);d.attrs&&e.attr(d.attrs),e.attr("id",g);var t=e.selectAll("stop").data(h);t.exit().remove(),t.enter().append("stop"),t.each((function(e){var t=i(e[1]);r.select(this).attr({offset:e[0]+"%","stop-color":l.tinyRGB(t),"stop-opacity":t.getAlpha()})}))})),e.style(s,D(g,t)).style(s+"-opacity",null);var m=function(e){return"."+e.attr("class").replace(/\s/g,".")},y=m(r.select(e.node().parentNode))+">"+m(e);p._gradientUrlQueryParts[y]=1},m.initGradients=function(e){var t=e._fullLayout;c.ensureSingle(t._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),t._gradientUrlQueryParts={}},m.pointStyle=function(e,t,n){if(e.size()){var a=m.makePointStyleFns(t);e.each((function(e){m.singlePointStyle(e,r.select(this),t,a,n)}))}},m.singlePointStyle=function(e,t,n,r,a){var i=n.marker,o=i.line;if(t.style("opacity",r.selectedOpacityFn?r.selectedOpacityFn(e):void 0===e.mo?i.opacity:e.mo),r.ms2mrc){var s;s="various"===e.ms||"various"===i.size?3:r.ms2mrc(e.ms),e.mrc=s,r.selectedSizeFn&&(s=e.mrc=r.selectedSizeFn(e));var u=m.symbolNumber(e.mx||i.symbol)||0;e.om=u%200>=100,t.attr("d",b(u,s))}var d,h,f,p=!1;if(e.so)f=o.outlierwidth,h=o.outliercolor,d=i.outliercolor;else{var g=(o||{}).width;f=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,h="mlc"in e?e.mlcc=r.lineScale(e.mlc):c.isArrayOrTypedArray(o.color)?l.defaultLine:o.color,c.isArrayOrTypedArray(i.color)&&(d=l.defaultLine,p=!0),d="mc"in e?e.mcc=r.markerScale(e.mc):i.color||"rgba(0,0,0,0)",r.selectedColorFn&&(d=r.selectedColorFn(e))}if(e.om)t.call(l.stroke,d).style({"stroke-width":(f||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:f)+"px");var v=i.gradient,y=e.mgt;if(y?p=!0:y=v&&v.type,Array.isArray(y)&&(y=y[0],T[y]||(y=0)),y&&"none"!==y){var x=e.mgc;x?p=!0:x=v.color;var w=n.uid;p&&(w+="-"+e.i),m.gradient(t,a,w,y,[[0,x],[1,d]],"fill")}else l.fill(t,d);f&&l.stroke(t,h)}},m.makePointStyleFns=function(e){var t={},n=e.marker;return t.markerScale=m.tryColorscale(n,""),t.lineScale=m.tryColorscale(n,"line"),o.traceIs(e,"symbols")&&(t.ms2mrc=p.isBubble(e)?g(e):function(){return(n.size||6)/2}),e.selectedpoints&&c.extendFlat(t,m.makeSelectedPointStyleFns(e)),t},m.makeSelectedPointStyleFns=function(e){var t={},n=e.selected||{},r=e.unselected||{},a=e.marker||{},i=n.marker||{},l=r.marker||{},s=a.opacity,u=i.opacity,d=l.opacity,h=void 0!==u,p=void 0!==d;(c.isArrayOrTypedArray(s)||h||p)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?a.opacity:e.mo;return e.selected?h?u:t:p?d:f*t});var g=a.color,v=i.color,m=l.color;(v||m)&&(t.selectedColorFn=function(e){var t=e.mcc||g;return e.selected?v||t:m||t});var y=a.size,x=i.size,b=l.size,w=void 0!==x,_=void 0!==b;return o.traceIs(e,"symbols")&&(w||_)&&(t.selectedSizeFn=function(e){var t=e.mrc||y/2;return e.selected?w?x/2:t:_?b/2:t}),t},m.makeSelectedTextStyleFns=function(e){var t={},n=e.selected||{},r=e.unselected||{},a=e.textfont||{},i=n.textfont||{},o=r.textfont||{},s=a.color,c=i.color,u=o.color;return t.selectedTextColorFn=function(e){var t=e.tc||s;return e.selected?c||t:u||(c?t:l.addOpacity(t,f))},t},m.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var n=m.makeSelectedPointStyleFns(t),a=t.marker||{},i=[];n.selectedOpacityFn&&i.push((function(e,t){e.style("opacity",n.selectedOpacityFn(t))})),n.selectedColorFn&&i.push((function(e,t){l.fill(e,n.selectedColorFn(t))})),n.selectedSizeFn&&i.push((function(e,t){var r=t.mx||a.symbol||0,i=n.selectedSizeFn(t);e.attr("d",b(m.symbolNumber(r),i)),t.mrc2=i})),i.length&&e.each((function(e){for(var t=r.select(this),n=0;n<i.length;n++)i[n](t,e)}))}},m.tryColorscale=function(e,t){var n=t?c.nestedProperty(e,t).get():e;if(n){var r=n.color;if((n.colorscale||n._colorAx)&&c.isArrayOrTypedArray(r))return s.makeColorScaleFuncFromTrace(n)}return c.identity};var M={start:1,end:-1,middle:0,bottom:1,top:-1};function A(e,t,n,a){var i=r.select(e.node().parentNode),o=-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle",l=-1!==t.indexOf("left")?"end":-1!==t.indexOf("right")?"start":"middle",s=a?a/.8+1:0,c=(u.lineCount(e)-1)*h+1,d=M[l]*s,f=.75*n+M[o]*s+(M[o]-1)*c*n/2;e.attr("text-anchor",l),i.attr("transform","translate("+d+","+f+")")}function S(e,t){var n=e.ts||t.textfont.size;return a(n)&&n>0?n:0}m.textPointStyle=function(e,t,n){if(e.size()){var a;if(t.selectedpoints){var i=m.makeSelectedTextStyleFns(t);a=i.selectedTextColorFn}var o=t.texttemplate,l=n._fullLayout;e.each((function(e){var i=r.select(this),s=o?c.extractOption(e,t,"txt","texttemplate"):c.extractOption(e,t,"tx","text");if(s||0===s){if(o){var d=t._module.formatLabels?t._module.formatLabels(e,t,l):{},h={};v(h,t,e.i);var f=t._meta||{};s=c.texttemplateString(s,d,l._d3locale,h,e,f)}var p=e.tp||t.textposition,g=S(e,t),y=a?a(e):e.tc||t.textfont.color;i.call(m.font,e.tf||t.textfont.family,g,y).text(s).call(u.convertToTspans,n).call(A,p,g,e.mrc)}else i.remove()}))}},m.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var n=m.makeSelectedTextStyleFns(t);e.each((function(e){var a=r.select(this),i=n.selectedTextColorFn(e),o=e.tp||t.textposition,s=S(e,t);l.fill(a,i),A(a,o,s,e.mrc2||e.mrc)}))}};function C(e,t,n,a){var i=e[0]-t[0],o=e[1]-t[1],l=n[0]-t[0],s=n[1]-t[1],c=Math.pow(i*i+o*o,.25),u=Math.pow(l*l+s*s,.25),d=(u*u*i-c*c*l)*a,h=(u*u*o-c*c*s)*a,f=3*u*(c+u),p=3*c*(c+u);return[[r.round(t[0]+(f&&d/f),2),r.round(t[1]+(f&&h/f),2)],[r.round(t[0]-(p&&d/p),2),r.round(t[1]-(p&&h/p),2)]]}m.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var n,r="M"+e[0],a=[];for(n=1;n<e.length-1;n++)a.push(C(e[n-1],e[n],e[n+1],t));for(r+="Q"+a[0][0]+" "+e[1],n=2;n<e.length-1;n++)r+="C"+a[n-2][1]+" "+a[n-1][0]+" "+e[n];return r+="Q"+a[e.length-3][1]+" "+e[e.length-1]},m.smoothclosed=function(e,t){if(e.length<3)return"M"+e.join("L")+"Z";var n,r="M"+e[0],a=e.length-1,i=[C(e[a],e[0],e[1],t)];for(n=1;n<a;n++)i.push(C(e[n-1],e[n],e[n+1],t));for(i.push(C(e[a-1],e[a],e[0],t)),n=1;n<=a;n++)r+="C"+i[n-1][1]+" "+i[n][0]+" "+e[n];return r+="C"+i[a][1]+" "+i[0][0]+" "+e[0]+"Z"};var L={hv:function(e,t){return"H"+r.round(t[0],2)+"V"+r.round(t[1],2)},vh:function(e,t){return"V"+r.round(t[1],2)+"H"+r.round(t[0],2)},hvh:function(e,t){return"H"+r.round((e[0]+t[0])/2,2)+"V"+r.round(t[1],2)+"H"+r.round(t[0],2)},vhv:function(e,t){return"V"+r.round((e[1]+t[1])/2,2)+"H"+r.round(t[0],2)+"V"+r.round(t[1],2)}},I=function(e,t){return"L"+r.round(t[0],2)+","+r.round(t[1],2)};m.steps=function(e){var t=L[e]||I;return function(e){for(var n="M"+r.round(e[0][0],2)+","+r.round(e[0][1],2),a=1;a<e.length;a++)n+=t(e[a-1],e[a]);return n}},m.makeTester=function(){var e=c.ensureSingleById(r.select("body"),"svg","js-plotly-tester",(function(e){e.attr(d.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})})),t=c.ensureSingle(e,"path","js-reference-point",(function(e){e.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})}));m.tester=e,m.testref=t},m.savedBBoxes={};var E=0;function O(e){var t=e.getAttribute("data-unformatted");if(null!==t)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}function D(e,t){if(!e)return null;var n=t._context;return"url('"+(n._exportedPlot?"":n._baseUrl||"")+"#"+e+"')"}m.bBox=function(e,t,n){var a,i,o;if(n||(n=O(e)),n){if(a=m.savedBBoxes[n])return c.extendFlat({},a)}else if(1===e.childNodes.length){var l=e.childNodes[0];if(n=O(l)){var s=+l.getAttribute("x")||0,d=+l.getAttribute("y")||0,h=l.getAttribute("transform");if(!h){var f=m.bBox(l,!1,n);return s&&(f.left+=s,f.right+=s),d&&(f.top+=d,f.bottom+=d),f}if(n+="~"+s+"~"+d+"~"+h,a=m.savedBBoxes[n])return c.extendFlat({},a)}}t?i=e:(o=m.tester.node(),i=e.cloneNode(!0),o.appendChild(i)),r.select(i).attr("transform",null).call(u.positionText,0,0);var p=i.getBoundingClientRect(),g=m.testref.node().getBoundingClientRect();t||o.removeChild(i);var v={height:p.height,width:p.width,left:p.left-g.left,top:p.top-g.top,right:p.right-g.left,bottom:p.bottom-g.top};return E>=1e4&&(m.savedBBoxes={},E=0),n&&(m.savedBBoxes[n]=v),E++,c.extendFlat({},v)},m.setClipUrl=function(e,t,n){e.attr("clip-path",D(t,n))},m.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(e,t,n){return[t,n].join(" ")})).split(" ");return{x:+t[0]||0,y:+t[1]||0}},m.setTranslate=function(e,t,n){var r=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[r]("transform")||"";return t=t||0,n=n||0,i=i.replace(/(\btranslate\(.*?\);?)/,"").trim(),i=(i+=" translate("+t+", "+n+")").trim(),e[a]("transform",i),i},m.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(e,t,n){return[t,n].join(" ")})).split(" ");return{x:+t[0]||1,y:+t[1]||1}},m.setScale=function(e,t,n){var r=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",i=e[r]("transform")||"";return t=t||1,n=n||1,i=i.replace(/(\bscale\(.*?\);?)/,"").trim(),i=(i+=" scale("+t+", "+n+")").trim(),e[a]("transform",i),i};var P=/\s*sc.*/;m.setPointGroupScale=function(e,t,n){if(t=t||1,n=n||1,e){var r=1===t&&1===n?"":" scale("+t+","+n+")";e.each((function(){var e=(this.getAttribute("transform")||"").replace(P,"");e=(e+=r).trim(),this.setAttribute("transform",e)}))}};var z=/translate\([^)]*\)\s*$/;m.setTextPointsScale=function(e,t,n){e&&e.each((function(){var e,a=r.select(this),i=a.select("text");if(i.node()){var o=parseFloat(i.attr("x")||0),l=parseFloat(i.attr("y")||0),s=(a.attr("transform")||"").match(z);e=1===t&&1===n?[]:["translate("+o+","+l+")","scale("+t+","+n+")","translate("+-o+","+-l+")"],s&&e.push(s),a.attr("transform",e.join(" "))}}))}},gGJ9:function(e,t,n){"use strict";var r=n("bljh"),a=n("g9E0"),i=n("0RW4"),o=n("cqRZ").DESELECTDIM,l=n("LfN2"),s=n("k6aH").resizeText,c=l.styleTextPoints;e.exports={style:function(e,t,n){var l=n||r.select(e).selectAll("g.funnellayer").selectAll("g.trace");s(e,l,"funnel"),l.style("opacity",(function(e){return e[0].trace.opacity})),l.each((function(t){var n=r.select(this),l=t[0].trace;n.selectAll(".point > path").each((function(e){if(!e.isBlank){var t=l.marker;r.select(this).call(i.fill,e.mc||t.color).call(i.stroke,e.mlc||t.line.color).call(a.dashLine,t.line.dash,e.mlw||t.line.width).style("opacity",l.selectedpoints&&!e.selected?o:1)}})),c(n,l,e),n.selectAll(".regions").each((function(){r.select(this).selectAll("path").style("stroke-width",0).call(i.fill,l.connector.fillcolor)})),n.selectAll(".lines").each((function(){var e=l.connector.line;a.lineGroupStyle(r.select(this).selectAll("path"),e.width,e.color,e.dash)}))}))}}},gfA5:function(e,t,n){"use strict";var r=n("kJIm").extendFlat;t.attributes=function(e,t){t=t||{};var n={valType:"info_array",role:"info",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]},a=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",o=t.description?" "+t.description:"",l={x:r({},n,{description:["Sets the horizontal domain of this ",a,i,"(in plot fraction).",o].join("")}),y:r({},n,{description:["Sets the vertical domain of this ",a,i,"(in plot fraction).",o].join("")}),editType:e.editType};return e.noGridCell||(l.row={valType:"integer",min:0,dflt:0,role:"info",editType:e.editType,description:["If there is a layout grid, use the domain ","for this row in the grid for this ",a,i,".",o].join("")},l.column={valType:"integer",min:0,dflt:0,role:"info",editType:e.editType,description:["If there is a layout grid, use the domain ","for this column in the grid for this ",a,i,".",o].join("")}),l},t.defaults=function(e,t,n,r){var a=r&&r.x||[0,1],i=r&&r.y||[0,1],o=t.grid;if(o){var l=n("domain.column");void 0!==l&&(l<o.columns?a=o._domains.x[l]:delete e.domain.column);var s=n("domain.row");void 0!==s&&(s<o.rows?i=o._domains.y[s]:delete e.domain.row)}var c=n("domain.x",a),u=n("domain.y",i);c[0]<c[1]||(e.domain.x=a.slice()),u[0]<u[1]||(e.domain.y=i.slice())}},ghsG:function(e,t,n){"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})}))}},gqVr:function(e,t,n){"use strict";var r=n("/CZE"),a=n("Nx4I");function i(e,t,n,a){a=a||r.identity,Array.isArray(e)&&(t[0][n]=a(e))}e.exports=function(e){var t=e.calcdata,n=e._fullLayout;function o(e){return function(t){return r.coerceHoverinfo({hoverinfo:t},{_module:e._module},n)}}for(var l=0;l<t.length;l++){var s=t[l],c=s[0].trace;if(!a.traceIs(c,"pie-like")){var u=a.traceIs(c,"2dMap")?i:r.fillArray;u(c.hoverinfo,s,"hi",o(c)),c.hovertemplate&&u(c.hovertemplate,s,"ht"),c.hoverlabel&&(u(c.hoverlabel.bgcolor,s,"hbg"),u(c.hoverlabel.bordercolor,s,"hbc"),u(c.hoverlabel.font.size,s,"hts"),u(c.hoverlabel.font.color,s,"htc"),u(c.hoverlabel.font.family,s,"htf"),u(c.hoverlabel.namelength,s,"hnl"),u(c.hoverlabel.align,s,"hta"))}}}},grU7:function(e,t,n){"use strict";e.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,role:"style",editType:t,description:"The amount of padding (in px) along the top of the component."},r:{valType:"number",dflt:0,role:"style",editType:t,description:"The amount of padding (in px) on the right side of the component."},b:{valType:"number",dflt:0,role:"style",editType:t,description:"The amount of padding (in px) along the bottom of the component."},l:{valType:"number",dflt:0,role:"style",editType:t,description:"The amount of padding (in px) on the left side of the component."},editType:t}}},"h+LG":function(e,t,n){"use strict";var r=n("/CZE"),a=n("QeBV"),i=n("yPDV"),o=n("QYPY"),l=n("BDWl");e.exports=function(e,t,n,s){function c(n,a){return r.coerce(e,t,l,n,a)}a(e,t,c,s)?(c("text"),c("hovertext"),c("hovertemplate"),i(e,t,c,s),c("hoverongaps"),c("connectgaps",r.isArray1D(t.z)&&!1!==t.zsmooth),o(e,t,s,c,{prefix:"",cLetter:"z"})):t.visible=!1}},h0EB:function(e,t,n){"use strict";(function(t){var r=n("fiWp").EventEmitter,a={init:function(e){if(e._ev instanceof r)return e;var n=new r,a=new r;return e._ev=n,e._internalEv=a,e.on=n.on.bind(n),e.once=n.once.bind(n),e.removeListener=n.removeListener.bind(n),e.removeAllListeners=n.removeAllListeners.bind(n),e._internalOn=a.on.bind(a),e._internalOnce=a.once.bind(a),e._removeInternalListener=a.removeListener.bind(a),e._removeAllInternalListeners=a.removeAllListeners.bind(a),e.emit=function(r,i){void 0!==t&&t(e).trigger(r,i),n.emit(r,i),a.emit(r,i)},e},triggerHandler:function(e,n,r){var a,i;void 0!==t&&(a=t(e).triggerHandler(n,r));var o=e._ev;if(!o)return a;var l,s=o._events[n];if(!s)return a;function c(e){return e.listener?(o.removeListener(n,e.listener),e.fired?void 0:(e.fired=!0,e.listener.apply(o,[r]))):e.apply(o,[r])}for(s=Array.isArray(s)?s:[s],l=0;l<s.length-1;l++)c(s[l]);return i=c(s[l]),void 0!==a?a:i},purge:function(e){return delete e._ev,delete e.on,delete e.once,delete e.removeListener,delete e.removeAllListeners,delete e.emit,delete e._ev,delete e._internalEv,delete e._internalOn,delete e._internalOnce,delete e._removeInternalListener,delete e._removeAllInternalListeners,e}};e.exports=a}).call(this,n("+2Rf"))},"hN+Y":function(e,t,n){"use strict";var r=n("/CZE"),a=n("Nx4I"),i=!0;e.exports=function(e,t,n){var o=t._fullLayout;if(!t._dragged&&!t._editing){var l,s=o.legend.itemclick,c=o.legend.itemdoubleclick;if(1===n&&"toggle"===s&&"toggleothers"===c&&i&&t.data&&t._context.showTips?(r.notifier(r._(t,"Double-click on legend to isolate one trace"),"long"),i=!1):i=!1,1===n?l=s:2===n&&(l=c),l){var u,d,h,f,p,g=o.hiddenlabels?o.hiddenlabels.slice():[],v=e.data()[0][0],m=t._fullData,y=v.trace,x=y.legendgroup,b={},w=[],_=[],k=[];if(a.traceIs(y,"pie-like")){var T=v.label,M=g.indexOf(T);"toggle"===l?-1===M?g.push(T):g.splice(M,1):"toggleothers"===l&&(g=[],t.calcdata[0].forEach((function(e){T!==e.label&&g.push(e.label)})),t._fullLayout.hiddenlabels&&t._fullLayout.hiddenlabels.length===g.length&&-1===M&&(g=[])),a.call("_guiRelayout",t,"hiddenlabels",g)}else{var A,S=x&&x.length,C=[];if(S)for(u=0;u<m.length;u++)(A=m[u]).visible&&A.legendgroup===x&&C.push(u);if("toggle"===l){var L;switch(y.visible){case!0:L="legendonly";break;case!1:L=!1;break;case"legendonly":L=!0}if(S)for(u=0;u<m.length;u++)!1!==m[u].visible&&m[u].legendgroup===x&&R(m[u],L);else R(y,L)}else if("toggleothers"===l){var I,E,O,D,P=!0;for(u=0;u<m.length;u++)if(I=m[u]===y,O=!0!==m[u].showlegend,!(I||O||(E=S&&m[u].legendgroup===x)||!0!==m[u].visible||a.traceIs(m[u],"notLegendIsolatable"))){P=!1;break}for(u=0;u<m.length;u++)if(!1!==m[u].visible&&!a.traceIs(m[u],"notLegendIsolatable"))switch(y.visible){case"legendonly":R(m[u],!0);break;case!0:D=!!P||"legendonly",I=m[u]===y,O=!0!==m[u].showlegend&&!m[u].legendgroup,E=I||S&&m[u].legendgroup===x,R(m[u],!(!E&&!O)||D)}}for(u=0;u<_.length;u++)if(h=_[u]){var z=h.constructUpdate(),N=Object.keys(z);for(d=0;d<N.length;d++)f=N[d],(b[f]=b[f]||[])[k[u]]=z[f]}for(p=Object.keys(b),u=0;u<p.length;u++)for(f=p[u],d=0;d<w.length;d++)b[f].hasOwnProperty(d)||(b[f][d]=void 0);a.call("_guiRestyle",t,b,w)}}}function j(e,t,n){var r=w.indexOf(e),a=b[t];return a||(a=b[t]=[]),-1===w.indexOf(e)&&(w.push(e),r=w.length-1),a[r]=n,r}function R(e,t){var n=e._fullInput;if(a.hasTransform(n,"groupby")){var i=_[n.index];if(!i){var o=a.getTransformIndices(n,"groupby"),l=o[o.length-1];i=r.keyedContainer(n,"transforms["+l+"].styles","target","value.visible"),_[n.index]=i}var s=i.get(e._group);void 0===s&&(s=!0),!1!==s&&i.set(e._group,t),k[n.index]=j(n.index,"visible",!1!==n.visible)}else{var c=!1!==n.visible&&t;j(n.index,"visible",c)}}}},hVte:function(e,t,n){"use strict";var r=n("h0EB"),a=n("ffJW"),i=n("G4gu").getGraphDiv,o=n("f7dW"),l=e.exports={};l.wrapped=function(e,t,n){(e=i(e))._fullLayout&&a.clear(e._fullLayout._uid+o.HOVERID),l.raw(e,t,n)},l.raw=function(e,t){var n=e._fullLayout,a=e._hoverdata;t||(t={}),t.target&&!1===r.triggerHandler(e,"plotly_beforehover",t)||(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),e._hoverdata=void 0,t.target&&a&&e.emit("plotly_unhover",{event:t,points:a}))}},hriN:function(e,t,n){"use strict";var r=n("GbLo"),a=n("Zss7"),i=n("0RW4"),o={};function l(e){return function(t,n){return!!t&&(!!(t=a(t)).isValid()&&(t=i.addOpacity(t,t.getAlpha()),e[n]||(e[n]=t),t))}}function s(e,t){var n,r=JSON.stringify(e),i=t[r];if(!i){for(i=e.slice(),n=0;n<e.length;n++)i.push(a(e[n]).lighten(20).toHexString());for(n=0;n<e.length;n++)i.push(a(e[n]).darken(20).toHexString());t[r]=i}return i}e.exports={calc:function(e,t){var n,a,i=[],o=e._fullLayout,s=o.hiddenlabels||[],c=t.labels,u=t.marker.colors||[],d=t.values,h=t._length,f=t._hasValues&&h;if(t.dlabel)for(c=new Array(h),n=0;n<h;n++)c[n]=String(t.label0+n*t.dlabel);var p={},g=l(o["_"+t.type+"colormap"]),v=0,m=!1;for(n=0;n<h;n++){var y,x,b;if(f){if(y=d[n],!r(y))continue;if((y=+y)<0)continue}else y=1;void 0!==(x=c[n])&&""!==x||(x=n);var w=p[x=String(x)];void 0===w?(p[x]=i.length,(b=-1!==s.indexOf(x))||(v+=y),i.push({v:y,label:x,color:g(u[n],x),i:n,pts:[n],hidden:b})):(m=!0,(a=i[w]).v+=y,a.pts.push(n),a.hidden||(v+=y),!1===a.color&&u[n]&&(a.color=g(u[n],x)))}return("funnelarea"===t.type?m:t.sort)&&i.sort((function(e,t){return t.v-e.v})),i[0]&&(i[0].vTotal=v),i},crossTraceCalc:function(e,t){var n=(t||{}).type;n||(n="pie");var r=e._fullLayout,a=e.calcdata,i=r[n+"colorway"],l=r["_"+n+"colormap"];r["extend"+n+"colors"]&&(i=s(i,o));for(var c=0,u=0;u<a.length;u++){var d=a[u];if(d[0].trace.type===n)for(var h=0;h<d.length;h++){var f=d[h];!1===f.color&&(l[f.label]?f.color=l[f.label]:(l[f.label]=f.color=i[c%i.length],c++))}}},makePullColorFn:l,generateExtendedColors:s}},i5jP:function(e,t){var n={left:0,top:0};e.exports=function(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var a=e.clientX||0,i=e.clientY||0,o=(l=t,l===window||l===document||l===document.body?n:l.getBoundingClientRect());var l;return r[0]=a-o.left,r[1]=i-o.top,r}},i6kf:function(e,t,n){"use strict";e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}},i9ir:function(e,t,n){"use strict";var r=n("lNV6").hovertemplateAttrs,a=n("VvME"),i=n("9Okp"),o=n("qHYo"),l=n("37PH").defaultLine,s=n("kJIm").extendFlat,c=a.marker.line;e.exports=s({locations:{valType:"data_array",editType:"calc",description:["Sets the coordinates via location IDs or names.","See `locationmode` for more info."].join(" ")},locationmode:a.locationmode,z:{valType:"data_array",editType:"calc",description:"Sets the color values."},geojson:s({},a.geojson,{description:["Sets optional GeoJSON data associated with this trace.","If not given, the features on the base map are used.","It can be set as a valid GeoJSON object or as a URL string.","Note that we only accept GeoJSONs of type *FeatureCollection* or *Feature*","with geometries of type *Polygon* or *MultiPolygon*."].join(" ")}),featureidkey:a.featureidkey,text:s({},a.text,{description:"Sets the text elements associated with each location."}),hovertext:s({},a.hovertext,{description:"Same as `text`."}),marker:{line:{color:s({},c.color,{dflt:l}),width:s({},c.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,role:"style",editType:"style",description:"Sets the opacity of the locations."},editType:"calc"},selected:{marker:{opacity:a.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:a.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:s({},o.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:r(),showlegend:s({},o.showlegend,{dflt:!1})},i("",{cLetter:"z",editTypeOverride:"calc"}))},iHwY:function(e,t,n){"use strict";var r=n("bljh"),a=n("Nx4I"),i=n("u3HJ"),o=n("0RW4"),l=n("g9E0"),s=n("/CZE"),c=n("A3kh"),u=n("PBw4"),d=n("Y9zF"),h=d.LINE_SPACING,f=d.FROM_TL,p=d.FROM_BR,g=n("sZtP"),v=n("nTMW");function m(e){return e._id}function y(e,t,n){var r=s.ensureSingle(e,"rect","selector-rect",(function(e){e.attr("shape-rendering","crispEdges")}));r.attr({rx:g.rx,ry:g.ry}),r.call(o.stroke,t.bordercolor).call(o.fill,function(e,t){return t._isActive||t._isHovered?e.activecolor:e.bgcolor}(t,n)).style("stroke-width",t.borderwidth+"px")}function x(e,t,n,r){s.ensureSingle(e,"text","selector-text",(function(e){e.classed("user-select-none",!0).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)}(n,r._fullLayout._meta)).call((function(e){c.convertToTspans(e,r)}))}e.exports=function(e){var t=e._fullLayout._infolayer.selectAll(".rangeselector").data(function(e){for(var t=u.list(e,"x",!0),n=[],r=0;r<t.length;r++){var a=t[r];a.rangeselector&&a.rangeselector.visible&&n.push(a)}return n}(e),m);t.enter().append("g").classed("rangeselector",!0),t.exit().remove(),t.style({cursor:"pointer","pointer-events":"all"}),t.each((function(t){var n=r.select(this),o=t,u=o.rangeselector,d=n.selectAll("g.button").data(s.filterVisible(u.buttons));d.enter().append("g").classed("button",!0),d.exit().remove(),d.each((function(t){var n=r.select(this),i=v(o,t);t._isActive=function(e,t,n){if("all"===t.step)return!0===e.autorange;var r=Object.keys(n);return e.range[0]===n[r[0]]&&e.range[1]===n[r[1]]}(o,t,i),n.call(y,u,t),n.call(x,u,t,e),n.on("click",(function(){e._dragged||a.call("_guiRelayout",e,i)})),n.on("mouseover",(function(){t._isHovered=!0,n.call(y,u,t)})),n.on("mouseout",(function(){t._isHovered=!1,n.call(y,u,t)}))})),function(e,t,n,a,o){var u=0,d=0,v=n.borderwidth;t.each((function(){var e=r.select(this).select(".selector-text"),t=n.font.size*h,a=Math.max(t*c.lineCount(e),16)+3;d=Math.max(d,a)})),t.each((function(){var e=r.select(this),t=e.select(".selector-rect"),a=e.select(".selector-text"),i=a.node()&&l.bBox(a.node()).width,o=n.font.size*h,s=c.lineCount(a),f=Math.max(i+10,g.minButtonWidth);e.attr("transform","translate("+(v+u)+","+v+")"),t.attr({x:0,y:0,width:f,height:d}),c.positionText(a,f/2,d/2-(s-1)*o/2+3),u+=f+5}));var m=e._fullLayout._size,y=m.l+m.w*n.x,x=m.t+m.h*(1-n.y),b="left";s.isRightAnchor(n)&&(y-=u,b="right");s.isCenterAnchor(n)&&(y-=u/2,b="center");var w="top";s.isBottomAnchor(n)&&(x-=d,w="bottom");s.isMiddleAnchor(n)&&(x-=d/2,w="middle");u=Math.ceil(u),d=Math.ceil(d),y=Math.round(y),x=Math.round(x),i.autoMargin(e,a+"-range-selector",{x:n.x,y:n.y,l:u*f[b],r:u*p[b],b:d*p[w],t:d*f[w]}),o.attr("transform","translate("+y+","+x+")")}(e,d,u,o._name,n)}))}},iJj1:function(e,t,n){"use strict";var r=n("xMdC").appendArrayMultiPointValues;e.exports=function(e,t){var n={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,v:e.v};return 1===e.pts.length&&(n.pointNumber=n.i=e.pts[0]),r(n,t,e.pts),"funnelarea"===t.type&&(delete n.v,delete n.i),n}},iQ3r:function(e,t,n){"use strict";var r=n("BkK/").hoverLabelText,a=n("0RW4").opacity,i=n("rJf6").hoverOnBars,o=n("uM7j"),l=o.INCREASING.SYMBOL,s=o.DECREASING.SYMBOL;e.exports=function(e,t,n,o){var c=i(e,t,n,o);if(c){var u=c.cd,d=u[0].trace,h="h"===d.orientation,f=h?e.xa:e.ya,p=u[c.index],g=p.isSum?p.b+p.s:p.rawS;if(!p.isSum){c.initial=p.b+p.s-g,c.delta=g,c.final=c.initial+c.delta;var v=_(Math.abs(c.delta));c.deltaLabel=g<0?"("+v+")":v,c.finalLabel=_(c.final),c.initialLabel=_(c.initial)}var m=p.hi||d.hoverinfo,y=[];if(m&&"none"!==m&&"skip"!==m){var x="all"===m,b=m.split("+"),w=function(e){return x||-1!==b.indexOf(e)};p.isSum||(!w("final")||w(h?"x":"y")||y.push(c.finalLabel),w("delta")&&(g<0?y.push(c.deltaLabel+" "+s):y.push(c.deltaLabel+" "+l)),w("initial")&&y.push("Initial: "+c.initialLabel))}return y.length&&(c.extraText=y.join("<br>")),c.color=function(e,t){var n=e[t.dir].marker,r=n.color,i=n.line.color,o=n.line.width;if(a(r))return r;if(a(i)&&o)return i}(d,p),[c]}function _(e){return r(f,e)}}},iauE:function(e,t,n){"use strict";e.exports={attributes:n("Df4R"),layoutAttributes:n("kc6j"),supplyDefaults:n("4WVA").supplyDefaults,crossTraceDefaults:n("4WVA").crossTraceDefaults,supplyLayoutDefaults:n("IkQw"),calc:n("f9ru"),crossTraceCalc:n("tTmA"),plot:n("Nurt"),style:n("A9f/").style,hoverPoints:n("iQ3r"),eventData:n("W+yT"),selectPoints:n("cADB"),moduleType:"trace",name:"waterfall",basePlotModule:n("kc20"),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{description:["Draws waterfall trace which is useful graph to displays the","contribution of various elements (either positive or negative)","in a bar chart. 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(" ")}}},ix2X:function(e,t,n){"use strict";var r=n("bljh"),a=n("Nx4I"),i=n("u3HJ"),o=n("/CZE"),l=n("g9E0"),s=n("0RW4"),c=n("GZnn"),u=n("kc20"),d=n("PBw4"),h=n("Tv4R"),f=n("DzeQ"),p=n("IvnK");function g(e,t,n,r){var a=o.ensureSingle(e,"rect",p.bgClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})),i=r.borderwidth%2==0?r.borderwidth:r.borderwidth-1,s=-r._offsetShift,c=l.crispRound(t,r.borderwidth);a.attr({width:r._width+i,height:r._height+i,transform:"translate("+s+","+s+")",fill:r.bgcolor,stroke:r.bordercolor,"stroke-width":c})}function v(e,t,n,r){var a=t._fullLayout;o.ensureSingleById(a._topdefs,"clipPath",r._clipId,(function(e){e.append("rect").attr({x:0,y:0})})).select("rect").attr({width:r._width,height:r._height})}function m(e,t,n,a){var s,c=t.calcdata,h=e.selectAll("g."+p.rangePlotClassName).data(n._subplotsWith,o.identity);h.enter().append("g").attr("class",(function(e){return p.rangePlotClassName+" "+e})).call(l.setClipUrl,a._clipId,t),h.order(),h.exit().remove(),h.each((function(e,o){var l=r.select(this),h=0===o,f=d.getFromId(t,e,"y"),p=f._name,g=a[p],v={data:[],layout:{xaxis:{type:n.type,domain:[0,1],range:a.range.slice(),calendar:n.calendar},width:a._width,height:a._height,margin:{t:0,b:0,l:0,r:0}},_context:t._context};n.rangebreaks&&(v.layout.xaxis.rangebreaks=n.rangebreaks),v.layout[p]={type:f.type,domain:[0,1],range:"match"!==g.rangemode?g.range.slice():f.range.slice(),calendar:f.calendar},f.rangebreaks&&(v.layout[p].rangebreaks=f.rangebreaks),i.supplyDefaults(v);var m=v._fullLayout.xaxis,y=v._fullLayout[p];m.clearCalc(),m.setScale(),y.clearCalc(),y.setScale();var x={id:e,plotgroup:l,xaxis:m,yaxis:y,isRangePlot:!0};h?s=x:(x.mainplot="xy",x.mainplotinfo=s),u.rangePlot(t,x,function(e,t){for(var n=[],r=0;r<e.length;r++){var a=e[r],i=a[0].trace;i.xaxis+i.yaxis===t&&n.push(a)}return n}(c,e))}))}function y(e,t,n,r,a){(o.ensureSingle(e,"rect",p.maskMinClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})).attr("height",r._height).call(s.fill,p.maskColor),o.ensureSingle(e,"rect",p.maskMaxClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("height",r._height).call(s.fill,p.maskColor),"match"!==a.rangemode)&&(o.ensureSingle(e,"rect",p.maskMinOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",r._width).call(s.fill,p.maskOppAxisColor),o.ensureSingle(e,"rect",p.maskMaxOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})})).attr("width",r._width).style("border-top",p.maskOppBorder).call(s.fill,p.maskOppAxisColor))}function x(e,t,n,r){t._context.staticPlot||o.ensureSingle(e,"rect",p.slideBoxClassName,(function(e){e.attr({y:0,cursor:p.slideBoxCursor,"shape-rendering":"crispEdges"})})).attr({height:r._height,fill:p.slideBoxFill})}function b(e,t,n,r){var a=o.ensureSingle(e,"g",p.grabberMinClassName),i=o.ensureSingle(e,"g",p.grabberMaxClassName),l={x:0,width:p.handleWidth,rx:p.handleRadius,fill:s.background,stroke:s.defaultLine,"stroke-width":p.handleStrokeWidth,"shape-rendering":"crispEdges"},c={y:Math.round(r._height/4),height:Math.round(r._height/2)};if(o.ensureSingle(a,"rect",p.handleMinClassName,(function(e){e.attr(l)})).attr(c),o.ensureSingle(i,"rect",p.handleMaxClassName,(function(e){e.attr(l)})).attr(c),!t._context.staticPlot){var u={width:p.grabAreaWidth,x:0,y:0,fill:p.grabAreaFill,cursor:p.grabAreaCursor};o.ensureSingle(a,"rect",p.grabAreaMinClassName,(function(e){e.attr(u)})).attr("height",r._height),o.ensureSingle(i,"rect",p.grabAreaMaxClassName,(function(e){e.attr(u)})).attr("height",r._height)}}e.exports=function(e){for(var t=e._fullLayout,n=t._rangeSliderData,i=0;i<n.length;i++){var l=n[i][p.name];l._clipId=l._id+"-"+t._uid}var s=t._infolayer.selectAll("g."+p.containerClassName).data(n,(function(e){return e._name}));s.exit().each((function(e){var n=e[p.name];t._topdefs.select("#"+n._clipId).remove()})).remove(),0!==n.length&&(s.enter().append("g").classed(p.containerClassName,!0).attr("pointer-events","all"),s.each((function(n){var i=r.select(this),l=n[p.name],s=t[d.id2name(n.anchor)],u=l[d.id2name(n.anchor)];if(l.range){var w,_=o.simpleMap(l.range,n.r2l),k=o.simpleMap(n.range,n.r2l);w=k[0]<k[1]?[Math.min(_[0],k[0]),Math.max(_[1],k[1])]:[Math.max(_[0],k[0]),Math.min(_[1],k[1])],l.range=l._input.range=o.simpleMap(w,n.l2r)}n.cleanRange("rangeslider.range");var T=t._size,M=n.domain;l._width=T.w*(M[1]-M[0]);var A=Math.round(T.l+T.w*M[0]),S=Math.round(T.t+T.h*(1-n._counterDomainMin)+("bottom"===n.side?n._depth:0)+l._offsetShift+p.extraPad);i.attr("transform","translate("+A+","+S+")"),l._rl=o.simpleMap(l.range,n.r2l);var C=l._rl[0],L=l._rl[1],I=L-C;if(l.p2d=function(e){return e/l._width*I+C},l.d2p=function(e){return(e-C)/I*l._width},n.rangebreaks){var E=n.locateBreaks(C,L);if(E.length){var O,D,P=0;for(O=0;O<E.length;O++)P+=(D=E[O]).max-D.min;var z=l._width/(L-C-P),N=[-z*C];for(O=0;O<E.length;O++)D=E[O],N.push(N[N.length-1]-z*(D.max-D.min));for(l.d2p=function(e){for(var t=N[0],n=0;n<E.length;n++){var r=E[n];if(e>=r.max)t=N[n+1];else if(e<r.min)break}return t+z*e},O=0;O<E.length;O++)(D=E[O]).pmin=l.d2p(D.min),D.pmax=l.d2p(D.max);l.p2d=function(e){for(var t=N[0],n=0;n<E.length;n++){var r=E[n];if(e>=r.pmax)t=N[n+1];else if(e<r.pmin)break}return(e-t)/z}}}if("match"!==u.rangemode){var j=s.r2l(u.range[0]),R=s.r2l(u.range[1])-j;l.d2pOppAxis=function(e){return(e-j)/R*l._height}}i.call(g,e,n,l).call(v,e,n,l).call(m,e,n,l).call(y,e,n,l,u).call(x,e,n,l).call(b,e,n,l),function(e,t,n,i){var l=e.select("rect."+p.slideBoxClassName).node(),s=e.select("rect."+p.grabAreaMinClassName).node(),c=e.select("rect."+p.grabAreaMaxClassName).node();e.on("mousedown",(function(){var u=r.event,d=u.target,p=u.clientX,g=p-e.node().getBoundingClientRect().left,v=i.d2p(n._rl[0]),m=i.d2p(n._rl[1]),y=h.coverSlip();function x(e){var u,h,x,b=+e.clientX-p;switch(d){case l:x="ew-resize",u=v+b,h=m+b;break;case s:x="col-resize",u=v+b,h=m;break;case c:x="col-resize",u=v,h=m+b;break;default:x="ew-resize",u=g,h=g+b}if(h<u){var w=h;h=u,u=w}i._pixelMin=u,i._pixelMax=h,f(r.select(y),x),function(e,t,n,r){function i(e){return n.l2r(o.constrain(e,r._rl[0],r._rl[1]))}var l=i(r.p2d(r._pixelMin)),s=i(r.p2d(r._pixelMax));window.requestAnimationFrame((function(){a.call("_guiRelayout",t,n._name+".range",[l,s])}))}(0,t,n,i)}y.addEventListener("mousemove",x),y.addEventListener("mouseup",(function e(){y.removeEventListener("mousemove",x),y.removeEventListener("mouseup",e),o.removeElement(y)}))}))}(i,e,n,l),function(e,t,n,r,a,i){var l=p.handleWidth/2;function s(e){return o.constrain(e,0,r._width)}function c(e){return o.constrain(e,0,r._height)}function u(e){return o.constrain(e,-l,r._width+l)}var d=s(r.d2p(n._rl[0])),h=s(r.d2p(n._rl[1]));if(e.select("rect."+p.slideBoxClassName).attr("x",d).attr("width",h-d),e.select("rect."+p.maskMinClassName).attr("width",d),e.select("rect."+p.maskMaxClassName).attr("x",h).attr("width",r._width-h),"match"!==i.rangemode){var f=r._height-c(r.d2pOppAxis(a._rl[1])),g=r._height-c(r.d2pOppAxis(a._rl[0]));e.select("rect."+p.maskMinOppAxisClassName).attr("x",d).attr("height",f).attr("width",h-d),e.select("rect."+p.maskMaxOppAxisClassName).attr("x",d).attr("y",g).attr("height",r._height-g).attr("width",h-d),e.select("rect."+p.slideBoxClassName).attr("y",f).attr("height",g-f)}var v=Math.round(u(d-l))-.5,m=Math.round(u(h-l))+.5;e.select("g."+p.grabberMinClassName).attr("transform","translate("+v+",0.5)"),e.select("g."+p.grabberMaxClassName).attr("transform","translate("+m+",0.5)")}(i,0,n,l,s,u),"bottom"===n.side&&c.draw(e,n._id+"title",{propContainer:n,propName:n._name+".title",placeholder:t._dfltTitle.x,attributes:{x:n._offset+n._length/2,y:S+l._height+l._offsetShift+10+1.5*n.title.font.size,"text-anchor":"middle"}})})))}},iyXT:function(e,t,n){"use strict";e.exports=i;var r=n("/CZE").distinctVals,a=n("6AZA").BADNUM;function i(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var n=1/0,i=[],o=0;o<e.length;o++){for(var l=e[o],s=0;s<l.length;s++){var c=l[s];c.p!==a&&i.push(c.p)}l[0]&&l[0].width1&&(n=Math.min(l[0].width1,n))}this.positions=i;var u=r(i);this.distinctPositions=u.vals,1===u.vals.length&&n!==1/0?this.minDiff=n:this.minDiff=Math.min(u.minDiff,n),this.binWidth=this.minDiff,this.bins={}}i.prototype.put=function(e,t){var n=this.getLabel(e,t),r=this.bins[n]||0;return this.bins[n]=r+t,r},i.prototype.get=function(e,t){var n=this.getLabel(e,t);return this.bins[n]||0},i.prototype.getLabel=function(e,t){return(t<0&&this.sepNegVal?"v":"^")+(this.overlapNoMerge?e:Math.round(e/this.binWidth))}},"j/Ga":function(e,t,n){"use strict";e.exports=l;var r=n("bljh"),a=n("0RW4"),i=n("g9E0"),o=n("/CZE");function l(e,t,n){this.gd=e,this.container=t,this.id=n,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}l.barWidth=2,l.barLength=20,l.barRadius=2,l.barPad=1,l.barColor="#808BA4",l.prototype.enable=function(e,t,n){var o=this.gd._fullLayout,s=o.width,c=o.height;this.position=e;var u,d,h,f,p=this.position.l,g=this.position.w,v=this.position.t,m=this.position.h,y=this.position.direction,x="down"===y,b="left"===y,w="up"===y,_=g,k=m;x||b||"right"===y||w||(this.position.direction="down",x=!0),x||w?(d=(u=p)+_,x?(h=v,k=(f=Math.min(h+k,c))-h):k=(f=v+k)-(h=Math.max(f-k,0))):(f=(h=v)+k,b?_=(d=p+_)-(u=Math.max(d-_,0)):(u=p,_=(d=Math.min(u+_,s))-u)),this._box={l:u,t:h,w:_,h:k};var T=g>_,M=l.barLength+2*l.barPad,A=l.barWidth+2*l.barPad,S=p,C=v+m;C+A>c&&(C=c-A);var L=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);L.exit().on(".drag",null).remove(),L.enter().append("rect").classed("scrollbar-horizontal",!0).call(a.fill,l.barColor),T?(this.hbar=L.attr({rx:l.barRadius,ry:l.barRadius,x:S,y:C,width:M,height:A}),this._hbarXMin=S+M/2,this._hbarTranslateMax=_-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=m>k,E=l.barWidth+2*l.barPad,O=l.barLength+2*l.barPad,D=p+g,P=v;D+E>s&&(D=s-E);var z=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);z.exit().on(".drag",null).remove(),z.enter().append("rect").classed("scrollbar-vertical",!0).call(a.fill,l.barColor),I?(this.vbar=z.attr({rx:l.barRadius,ry:l.barRadius,x:D,y:P,width:E,height:O}),this._vbarYMin=P+O/2,this._vbarTranslateMax=k-O):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var N=this.id,j=u-.5,R=I?d+E+.5:d+.5,F=h-.5,B=T?f+A+.5:f+.5,H=o._topdefs.selectAll("#"+N).data(T||I?[0]:[]);if(H.exit().remove(),H.enter().append("clipPath").attr("id",N).append("rect"),T||I?(this._clipRect=H.select("rect").attr({x:Math.floor(j),y:Math.floor(F),width:Math.ceil(R)-Math.floor(j),height:Math.ceil(B)-Math.floor(F)}),this.container.call(i.setClipUrl,N,this.gd),this.bg.attr({x:p,y:v,width:g,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||I){var V=r.behavior.drag().on("dragstart",(function(){r.event.sourceEvent.preventDefault()})).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(V);var G=r.behavior.drag().on("dragstart",(function(){r.event.sourceEvent.preventDefault(),r.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(G),I&&this.vbar.on(".drag",null).call(G)}this.setTranslate(t,n)},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-=r.event.dx),this.vbar&&(t-=r.event.dy),this.setTranslate(e,t)},l.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=r.event.deltaY),this.vbar&&(t+=r.event.deltaY),this.setTranslate(e,t)},l.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var n=e+this._hbarXMin,a=n+this._hbarTranslateMax;e=(o.constrain(r.event.x,n,a)-n)/(a-n)*(this.position.w-this._box.w)}if(this.vbar){var i=t+this._vbarYMin,l=i+this._vbarTranslateMax;t=(o.constrain(r.event.y,i,l)-i)/(l-i)*(this.position.h-this._box.h)}this.setTranslate(e,t)},l.prototype.setTranslate=function(e,t){var n=this.position.w-this._box.w,r=this.position.h-this._box.h;if(e=o.constrain(e||0,0,n),t=o.constrain(t||0,0,r),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 a=e/n;this.hbar.call(i.setTranslate,e+a*this._hbarTranslateMax,t)}if(this.vbar){var l=t/r;this.vbar.call(i.setTranslate,e,t+l*this._vbarTranslateMax)}}},jC0I:function(e,t,n){"use strict";e.exports={visible:{valType:"boolean",role:"info",editType:"calc",description:["Determines whether or not this set of error bars is visible."].join(" ")},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],role:"info",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 sqaure of the","underlying data.","If *data*, the bar lengths are set with data set `array`."].join(" ")},symmetric:{valType:"boolean",role:"info",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,role:"info",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,role:"info",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,role:"info",editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,role:"info",editType:"style"},copy_ystyle:{valType:"boolean",role:"style",editType:"plot"},copy_zstyle:{valType:"boolean",role:"style",editType:"style"},color:{valType:"color",role:"style",editType:"style",description:"Sets the stoke color of the error bars."},thickness:{valType:"number",min:0,dflt:2,role:"style",editType:"style",description:"Sets the thickness (in px) of the error bars."},width:{valType:"number",min:0,role:"style",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",role:"style",editType:"style",description:["Obsolete.","Use the alpha channel in error bar `color` to set the opacity."].join(" ")}}}},jb4q:function(e,t,n){"use strict";var r=n("/CZE"),a=n("8gD/"),i=n("gfA5").defaults,o=n("HByh").handleText,l=n("wlgE"),s=l.hasColorscale,c=l.handleDefaults;e.exports=function(e,t,n,l){function u(n,i){return r.coerce(e,t,a,n,i)}var d=u("labels"),h=u("parents");if(d&&d.length&&h&&h.length){var f=u("values");f&&f.length?u("branchvalues"):u("count"),u("level"),u("maxdepth"),u("marker.line.width")&&u("marker.line.color",l.paper_bgcolor),u("marker.colors");var p=t._hasColorscale=s(e,"marker","colors")||(e.marker||{}).coloraxis;p&&c(e,t,l,u,{prefix:"marker.",cLetter:"c"}),u("leaf.opacity",p?1:.7);var g=u("text");u("texttemplate"),t.texttemplate||u("textinfo",Array.isArray(g)?"text+label":"label"),u("hovertext"),u("hovertemplate");o(e,t,l,u,"auto",{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),u("insidetextorientation"),i(t,l,u),t._length=null}else t.visible=!1}},jd7o:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("cWyK"),a=n("/rf6");t.default=function(e,t){void 0===t&&(t={});var n=0,i=0,o=0;return r.coordEach(e,(function(e){n+=e[0],i+=e[1],o++})),a.point([n/o,i/o],t.properties)}},jezF:function(e,t,n){"use strict";var r=n("bljh"),a=n("Zss7"),i=n("u3HJ"),o=n("Nx4I"),l=n("BkK/"),s=n("Tv4R"),c=n("/CZE"),u=n("kJIm").extendFlat,d=n("DzeQ"),h=n("g9E0"),f=n("0RW4"),p=n("GZnn"),g=n("A3kh"),v=n("IVx0").flipScale,m=n("cRi9"),y=n("86IV"),x=n("15jM"),b=n("Y9zF"),w=b.LINE_SPACING,_=b.FROM_TL,k=b.FROM_BR,T=n("qop6").cn;e.exports={draw:function(e){var t=e._fullLayout._infolayer.selectAll("g."+T.colorbar).data(function(e){var t,n,r,a,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 a.calc?a.calc(e,r,t):(t._fillgradient=n.reversescale?v(n.colorscale):n.colorscale,t._zrange=[n[a.min],n[a.max]])}for(var d=0;d<o.length;d++){var h=o[d],f=(r=h[0].trace)._module.colorbar;if(!0===r.visible&&f)for(var p=Array.isArray(f),g=p?f:[f],m=0;m<g.length;m++){var y=(a=g[m]).container;(n=y?r[y]:r)&&n.showscale&&((t=s(n.colorbar))._id="cb"+r.uid+(p&&y?"-"+y:""),t._traceIndex=r.index,t._propPrefix=(y?y+".":"")+"colorbar.",t._meta=r._meta,c(),l.push(t))}}for(var x in i._colorAxes)if((n=i[x]).showscale){var b=i._colorAxes[x];(t=s(n.colorbar))._id="cb"+x,t._propPrefix=x+".colorbar.",t._meta=i._meta,a={min:"cmin",max:"cmax"},"heatmap"!==b[0]&&(r=b[1],a.calc=r._module.colorbar.calc),c(),l.push(t)}return l}(e),(function(e){return e._id}));t.enter().append("g").attr("class",(function(e){return e._id})).classed(T.colorbar,!0),t.each((function(t){var n=r.select(this);c.ensureSingle(n,"rect",T.cbbg),c.ensureSingle(n,"g",T.cbfills),c.ensureSingle(n,"g",T.cblines),c.ensureSingle(n,"g",T.cbaxis,(function(e){e.classed(T.crisp,!0)})),c.ensureSingle(n,"g",T.cbtitleunshift,(function(e){e.append("g").classed(T.cbtitle,!0)})),c.ensureSingle(n,"rect",T.cboutline);var v=function(e,t,n){var o=n._fullLayout,s=o._size,d=t._fillcolor,v=t._line,b=t.title,M=b.side,A=t._zrange||r.extent(("function"==typeof d?d:v.color).domain()),S="function"==typeof v.color?v.color:function(){return v.color},C="function"==typeof d?d:function(){return d},L=t._levels,I=function(e,t,n){var r,a,i=t._levels,o=[],l=[],s=i.end+i.size/100,c=i.size,u=1.001*n[0]-.001*n[1],d=1.001*n[1]-.001*n[0];for(a=0;a<1e5&&(r=i.start+a*c,!(c>0?r>=s:r<=s));a++)r>u&&r<d&&o.push(r);if(t._fillgradient)l=[0];else if("function"==typeof t._fillcolor){var h=t._filllevels;if(h)for(s=h.end+h.size/100,c=h.size,a=0;a<1e5&&(r=h.start+a*c,!(c>0?r>=s:r<=s));a++)r>n[0]&&r<n[1]&&l.push(r);else(l=o.map((function(e){return e-i.size/2}))).push(l[l.length-1]+i.size)}else t._fillcolor&&"string"==typeof t._fillcolor&&(l=[0]);i.size<0&&(o.reverse(),l.reverse());return{line:o,fill:l}}(0,t,A),E=I.fill,O=I.line,D=Math.round(t.thickness*("fraction"===t.thicknessmode?s.w:1)),P=D/s.w,z=Math.round(t.len*("fraction"===t.lenmode?s.h:1)),N=z/s.h,j=t.xpad/s.w,R=(t.borderwidth+t.outlinewidth)/2,F=t.ypad/s.h,B=Math.round(t.x*s.w+t.xpad),H=t.x-P*({middle:.5,right:1}[t.xanchor]||0),V=t.y+N*(({top:-.5,bottom:.5}[t.yanchor]||0)-.5),G=Math.round(s.h*(1-V)),U=G-z;t._lenFrac=N,t._thickFrac=P,t._xLeftFrac=H,t._yBottomFrac=V;var q=t._axis=function(e,t,n){var r=e._fullLayout,a={type:"linear",range:n,tickmode:t.tickmode,nticks:t.nticks,tick0:t.tick0,dtick:t.dtick,tickvals:t.tickvals,ticktext:t.ticktext,ticks:t.ticks,ticklen:t.ticklen,tickwidth:t.tickwidth,tickcolor:t.tickcolor,showticklabels:t.showticklabels,tickfont:t.tickfont,tickangle:t.tickangle,tickformat:t.tickformat,exponentformat:t.exponentformat,separatethousands:t.separatethousands,showexponent:t.showexponent,showtickprefix:t.showtickprefix,tickprefix:t.tickprefix,showticksuffix:t.showticksuffix,ticksuffix:t.ticksuffix,title:t.title,showline:!0,anchor:"free",side:"right",position:1},i={type:"linear",_id:"y"+t._id},o={letter:"y",font:r.font,noHover:!0,noTickson:!0,calendar:r.calendar};function l(e,t){return c.coerce(a,i,x,e,t)}return m(a,i,l,o,r),y(a,i,l,o),i}(n,t,A);q.position=t.x+j+P,-1!==["top","bottom"].indexOf(M)&&(q.title.side=M,q.titlex=t.x+j,q.titley=V+("top"===b.side?N-F:F));if(v.color&&"auto"===t.tickmode){q.tickmode="linear",q.tick0=L.start;var Z=L.size,W=c.constrain((G-U)/50,4,15)+1,Y=(A[1]-A[0])/((t.nticks||W)*Z);if(Y>1){var X=Math.pow(10,Math.floor(Math.log(Y)/Math.LN10));Z*=X*c.roundUp(Y/X,[2,5,10]),(Math.abs(L.start)/L.size+1e-6)%1<2e-6&&(q.tick0=0)}q.dtick=Z}q.domain=[V+F,V+N-F],q.setScale(),e.attr("transform","translate("+Math.round(s.l)+","+Math.round(s.t)+")");var $,J=e.select("."+T.cbtitleunshift).attr("transform","translate(-"+Math.round(s.l)+",-"+Math.round(s.t)+")"),K=e.select("."+T.cbaxis),Q=0;function ee(r,a){var i={propContainer:q,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:o._dfltTitle.colorbar,containerGroup:e.select("."+T.cbtitle)},l="h"===r.charAt(0)?r.substr(1):"h"+r;e.selectAll("."+l+",."+l+"-math-group").remove(),p.draw(n,r,u(i,a||{}))}return c.syncOrAsync([i.previousPromises,function(){if(-1!==["top","bottom"].indexOf(M)){var e,n=s.l+(t.x+j)*s.w,r=q.title.font.size;e="top"===M?(1-(V+N-F))*s.h+s.t+3+.75*r:(1-(V+F))*s.h+s.t-3-.25*r,ee(q._id+"title",{attributes:{x:n,y:e,"text-anchor":"start"}})}},function(){if(-1!==["top","bottom"].indexOf(M)){var i=e.select("."+T.cbtitle),o=i.select("text"),u=[-t.outlinewidth/2,t.outlinewidth/2],d=i.select(".h"+q._id+"title-math-group").node(),f=15.6;if(o.node()&&(f=parseInt(o.node().style.fontSize,10)*w),d?(Q=h.bBox(d).height)>f&&(u[1]-=(Q-f)/2):o.node()&&!o.classed(T.jsPlaceholder)&&(Q=h.bBox(o.node()).height),Q){if(Q+=5,"top"===M)q.domain[1]-=Q/s.h,u[1]*=-1;else{q.domain[0]+=Q/s.h;var p=g.lineCount(o);u[1]+=(1-p)*f}i.attr("transform","translate("+u+")"),q.setScale()}}e.selectAll("."+T.cbfills+",."+T.cblines).attr("transform","translate(0,"+Math.round(s.h*(1-q.domain[1]))+")"),K.attr("transform","translate(0,"+Math.round(-s.t)+")");var m=e.select("."+T.cbfills).selectAll("rect."+T.cbfill).data(E);m.enter().append("rect").classed(T.cbfill,!0).style("stroke","none"),m.exit().remove();var y=A.map(q.c2p).map(Math.round).sort((function(e,t){return e-t}));m.each((function(e,i){var o=[0===i?A[0]:(E[i]+E[i-1])/2,i===E.length-1?A[1]:(E[i]+E[i+1])/2].map(q.c2p).map(Math.round);o[1]=c.constrain(o[1]+(o[1]>o[0])?1:-1,y[0],y[1]);var l=r.select(this).attr({x:B,width:Math.max(D,2),y:r.min(o),height:Math.max(r.max(o)-r.min(o),2)});if(t._fillgradient)h.gradient(l,n,t._id,"vertical",t._fillgradient,"fill");else{var s=C(e).replace("e-","");l.attr("fill",a(s).toHexString())}}));var x=e.select("."+T.cblines).selectAll("path."+T.cbline).data(v.color&&v.width?O:[]);x.enter().append("path").classed(T.cbline,!0),x.exit().remove(),x.each((function(e){r.select(this).attr("d","M"+B+","+(Math.round(q.c2p(e))+v.width/2%1)+"h"+D).call(h.lineGroupStyle,v.width,S(e),v.dash)})),K.selectAll("g."+q._id+"tick,path").remove();var b=B+D+(t.outlinewidth||0)/2-("outside"===t.ticks?1:0),_=l.calcTicks(q),k=l.makeTransFn(q),L=l.getTickSigns(q)[2];return l.drawTicks(n,q,{vals:"inside"===q.ticks?l.clipEnds(q,_):_,layer:K,path:l.makeTickPath(q,b,L),transFn:k}),l.drawLabels(n,q,{vals:_,layer:K,transFn:k,labelFns:l.makeLabelFns(q,b)})},function(){if(-1===["top","bottom"].indexOf(M)){var e=q.title.font.size,t=q._offset+q._length/2,a=s.l+(q.position||0)*s.w+("right"===q.side?10+e*(q.showticklabels?1:.5):-10-e*(q.showticklabels?.5:0));ee("h"+q._id+"title",{avoid:{selection:r.select(n).selectAll("g."+q._id+"tick"),side:M,offsetLeft:s.l,offsetTop:0,maxShift:o.width},attributes:{x:a,y:t,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}},i.previousPromises,function(){var r=D+t.outlinewidth/2+h.bBox(K.node()).width;if(($=J.select("text")).node()&&!$.classed(T.jsPlaceholder)){var a,o=J.select(".h"+q._id+"title-math-group").node();a=o&&-1!==["top","bottom"].indexOf(M)?h.bBox(o).width:h.bBox(J.node()).right-B-s.l,r=Math.max(r,a)}var l=2*t.xpad+r+t.borderwidth+t.outlinewidth/2,c=G-U;e.select("."+T.cbbg).attr({x:B-t.xpad-(t.borderwidth+t.outlinewidth)/2,y:U-R,width:Math.max(l,2),height:Math.max(c+2*R,2)}).call(f.fill,t.bgcolor).call(f.stroke,t.bordercolor).style("stroke-width",t.borderwidth),e.selectAll("."+T.cboutline).attr({x:B,y:U+t.ypad+("top"===M?Q:0),width:Math.max(D,2),height:Math.max(c-2*t.ypad-Q,2)}).call(f.stroke,t.outlinecolor).style({fill:"none","stroke-width":t.outlinewidth});var u=({center:.5,right:1}[t.xanchor]||0)*l;e.attr("transform","translate("+(s.l-u)+","+s.t+")");var d={},p=_[t.yanchor],g=k[t.yanchor];"pixels"===t.lenmode?(d.y=t.y,d.t=c*p,d.b=c*g):(d.t=d.b=0,d.yt=t.y+t.len*p,d.yb=t.y-t.len*g);var v=_[t.xanchor],m=k[t.xanchor];if("pixels"===t.thicknessmode)d.x=t.x,d.l=l*v,d.r=l*m;else{var y=l-D;d.l=y*v,d.r=y*m,d.xl=t.x-t.thickness*v,d.xr=t.x+t.thickness*m}i.autoMargin(n,t._id,d)}],n)}(n,t,e);v&&v.then&&(e._promises||[]).push(v),e._context.edits.colorbarPosition&&function(e,t,n){var r,a,i,l=n._fullLayout._size;s.init({element:e.node(),gd:n,prepFn:function(){r=e.attr("transform"),d(e)},moveFn:function(n,o){e.attr("transform",r+" translate("+n+","+o+")"),a=s.align(t._xLeftFrac+n/l.w,t._thickFrac,0,1,t.xanchor),i=s.align(t._yBottomFrac-o/l.h,t._lenFrac,0,1,t.yanchor);var c=s.getCursor(a,i,t.xanchor,t.yanchor);d(e,c)},doneFn:function(){if(d(e),void 0!==a&&void 0!==i){var r={};r[t._propPrefix+"x"]=a,r[t._propPrefix+"y"]=i,void 0!==t._traceIndex?o.call("_guiRestyle",n,r,t._traceIndex):o.call("_guiRelayout",n,r)}}})}(n,t,e)})),t.exit().each((function(t){i.autoMargin(e,t._id)})).remove(),t.order()}}},jxKh:function(e,t,n){"use strict";var r=n("0RW4").opacity,a=n("rJf6").hoverOnBars,i=n("/CZE").formatPercent;e.exports=function(e,t,n,o){var l=a(e,t,n,o);if(l){var s=l.cd,c=s[0].trace,u="h"===c.orientation,d=s[l.index];l[(u?"x":"y")+"LabelVal"]=d.s,l.percentInitial=d.begR,l.percentInitialLabel=i(d.begR,1),l.percentPrevious=d.difR,l.percentPreviousLabel=i(d.difR,1),l.percentTotal=d.sumR,l.percentTotalLabel=i(d.sumR,1);var h=d.hi||c.hoverinfo,f=[];if(h&&"none"!==h&&"skip"!==h){var p="all"===h,g=h.split("+"),v=function(e){return p||-1!==g.indexOf(e)};v("percent initial")&&f.push(l.percentInitialLabel+" of initial"),v("percent previous")&&f.push(l.percentPreviousLabel+" of previous"),v("percent total")&&f.push(l.percentTotalLabel+" of total")}return l.extraText=f.join("<br>"),l.color=function(e,t){var n=e.marker,a=t.mc||n.color,i=t.mlc||n.line.color,o=t.mlw||n.line.width;if(r(a))return a;if(r(i)&&o)return i}(c,d),[l]}}},jyrE:function(e,t,n){"use strict";var r=n("/CZE"),a=n("plED"),i=n("2S8E"),o=n("J+Po"),l=n("UAgb"),s=n("Z8TU");e.exports=function(e,t,n){var c=a.newContainer(t,"colorbar"),u=e.colorbar||{};function d(e,t){return r.coerce(u,c,s,e,t)}var h=d("thicknessmode");d("thickness","fraction"===h?30/(n.width-n.margin.l-n.margin.r):30);var f=d("lenmode");d("len","fraction"===f?1:n.height-n.margin.t-n.margin.b),d("x"),d("xanchor"),d("xpad"),d("y"),d("yanchor"),d("ypad"),r.noneOrAll(u,c,["x","y"]),d("outlinecolor"),d("outlinewidth"),d("bordercolor"),d("borderwidth"),d("bgcolor"),i(u,c,d,"linear");var p={outerTicks:!1,font:n.font};l(u,c,d,"linear",p),o(u,c,d,"linear",p),d("title.text",n._dfltTitle.colorbar),r.coerceFont(d,"title.font",n.font),d("title.side")}},jzia:function(e,t,n){"use strict";var r=n("37PH");e.exports={bgcolor:{valType:"color",dflt:r.background,role:"style",editType:"plot",description:"Sets the background color of the range slider."},bordercolor:{valType:"color",dflt:r.defaultLine,role:"style",editType:"plot",description:"Sets the border color of the range slider."},borderwidth:{valType:"integer",dflt:0,min:0,role:"style",editType:"plot",description:"Sets the border width of the range slider."},autorange:{valType:"boolean",dflt:!0,role:"style",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",role:"info",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,role:"style",editType:"plot",description:["The height of the range slider as a fraction of the","total plot area height."].join(" ")},visible:{valType:"boolean",dflt:!0,role:"info",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"}},k6aH:function(e,t,n){"use strict";var r=n("bljh"),a=n("/CZE");function i(e){return"_"+e+"Text_minsize"}e.exports={recordMinTextSize:function(e,t,n){if(n.uniformtext.mode){var r=i(e),a=n.uniformtext.minsize,o=t.scale*t.fontSize;t.hide=o<a,n[r]=n[r]||1/0,t.hide||(n[r]=Math.min(n[r],Math.max(o,a)))}},clearMinTextSize:function(e,t){t[i(e)]=void 0},resizeText:function(e,t,n){var i=e._fullLayout,o=i["_"+n+"Text_minsize"];if(o){var l,s="hide"===i.uniformtext.mode;switch(n){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}t.selectAll(l).each((function(e){var t=e.transform;t&&(t.scale=s&&t.hide?0:o/t.fontSize,r.select(this).select("text").attr("transform",a.getTextTransform(t)))}))}}}},kJIm:function(e,t,n){"use strict";var r=n("E4V0"),a=Array.isArray;function i(e,t,n,o){var l,s,c,u,d,h,f=e[0],p=e.length;if(2===p&&a(f)&&a(e[1])&&0===f.length){if(function(e,t){var n,r;for(n=0;n<e.length;n++){if(null!==(r=e[n])&&"object"==typeof r)return!1;void 0!==r&&(t[n]=r)}return!0}(e[1],f))return f;f.splice(0,f.length)}for(var g=1;g<p;g++)for(s in l=e[g])c=f[s],u=l[s],o&&a(u)?f[s]=u:t&&u&&(r(u)||(d=a(u)))?(d?(d=!1,h=c&&a(c)?c:[]):h=c&&r(c)?c:{},f[s]=i([h,u],t,n,o)):(void 0!==u||n)&&(f[s]=u);return f}t.extendFlat=function(){return i(arguments,!1,!1,!1)},t.extendDeep=function(){return i(arguments,!0,!1,!1)},t.extendDeepAll=function(){return i(arguments,!0,!0,!1)},t.extendDeepNoArrays=function(){return i(arguments,!0,!1,!0)}},kQMp:function(e,t,n){"use strict";var r=n("0RW4"),a=n("IVx0").hasColorscale,i=n("QYPY");e.exports=function(e,t,n,o,l){n("marker.color",o),a(e,"marker")&&i(e,t,l,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",r.defaultLine),a(e,"marker.line")&&i(e,t,l,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),n("selected.marker.color"),n("unselected.marker.color")}},"kVK+":function(e,t){t.read=function(e,t,n,r,a){var i,o,l=8*a-r-1,s=(1<<l)-1,c=s>>1,u=-7,d=n?a-1:0,h=n?-1:1,f=e[t+d];for(d+=h,i=f&(1<<-u)-1,f>>=-u,u+=l;u>0;i=256*i+e[t+d],d+=h,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===i)i=1-c;else{if(i===s)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),i-=c}return(f?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,l,s,c=8*i-a-1,u=(1<<c)-1,d=u>>1,h=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+d>=1?h/s:h*Math.pow(2,1-d))*s>=2&&(o++,s/=2),o+d>=u?(l=0,o=u):o+d>=1?(l=(t*s-1)*Math.pow(2,a),o+=d):(l=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+f]=255&l,f+=p,l/=256,a-=8);for(o=o<<a|l,c+=a;c>0;e[n+f]=255&o,f+=p,o/=256,c-=8);e[n+f-p]|=128*g}},kZ5o:function(e,t,n){"use strict";var r=n("qHYo"),a=n("gfA5").attributes,i=n("mEVB"),o=n("37PH"),l=n("lNV6").hovertemplateAttrs,s=n("lNV6").texttemplateAttrs,c=n("kJIm").extendFlat,u=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",role:"info",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",role:"info",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",role:"style",dflt:o.defaultLine,arrayOk:!0,editType:"style",description:["Sets the color of the line enclosing each sector."].join(" ")},width:{valType:"number",role:"style",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",role:"info",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",role:"info",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",role:"info",flags:["label","text","value","percent"],extras:["none"],editType:"calc",description:["Determines which trace information appear on the graph."].join(" ")},hoverinfo:c({},r.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",role:"info",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot",description:["Specifies the location of the `textinfo`."].join(" ")},textfont:c({},u,{description:"Sets the font used for `textinfo`."}),insidetextorientation:{valType:"enumerated",role:"info",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({},u,{description:"Sets the font used for `textinfo` lying inside the sector."}),outsidetextfont:c({},u,{description:"Sets the font used for `textinfo` lying outside the sector."}),automargin:{valType:"boolean",dflt:!1,role:"info",editType:"plot",description:["Determines whether outside text labels can push the margins."].join(" ")},title:{text:{valType:"string",dflt:"",role:"info",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({},u,{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"],role:"info",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:a({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",role:"style",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",role:"style",dflt:!0,editType:"calc",description:["Determines whether or not the sectors are reordered","from largest to smallest."].join(" ")},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],role:"style",dflt:"counterclockwise",editType:"calc",description:["Specifies the direction at which succeeding sectors follow","one another."].join(" ")},rotation:{valType:"number",role:"style",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",role:"style",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:"",role:"info",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({},u,{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"],role:"info",editType:"calc",description:"Deprecated in favor of `title.position`."}}}},kc20:function(e,t,n){"use strict";var r=n("bljh"),a=n("Nx4I"),i=n("/CZE"),o=n("u3HJ"),l=n("g9E0"),s=n("rWI/").getModuleCalcData,c=n("PBw4"),u=n("0wH6"),d=n("c8nr"),h=i.ensureSingle;function f(e,t,n){return i.ensureSingle(e,t,n,(function(e){e.datum(n)}))}function p(e,t,n,i,o){for(var c,d,h,f=u.traceLayerClasses,p=e._fullLayout,g=p._modules,v=[],m=[],y=0;y<g.length;y++){var x=(c=g[y]).name,b=a.modules[x].categories;if(b.svg){var w=c.layerName||x+"layer",_=c.plot;h=(d=s(n,_))[0],n=d[1],h.length&&v.push({i:f.indexOf(w),className:w,plotMethod:_,cdModule:h}),b.zoomScale&&m.push("."+w)}}v.sort((function(e,t){return e.i-t.i}));var k=t.plot.selectAll("g.mlayer").data(v,(function(e){return e.className}));if(k.enter().append("g").attr("class",(function(e){return e.className})).classed("mlayer",!0).classed("rangeplot",t.isRangePlot),k.exit().remove(),k.order(),k.each((function(n){var a=r.select(this),s=n.className;n.plotMethod(e,t,n.cdModule,a,i,o),-1===u.clipOnAxisFalseQuery.indexOf("."+s)&&l.setClipUrl(a,t.layerClipId,e)})),p._has("scattergl")&&(c=a.getModule("scattergl"),h=s(n,c)[0],c.plot(e,t,h)),!e._context.staticPlot&&(t._hasClipOnAxisFalse&&(t.clipOnAxisFalseTraces=t.plot.selectAll(u.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),m.length)){var T=t.plot.selectAll(m.join(",")).selectAll(".trace");t.zoomScalePts=T.selectAll("path.point"),t.zoomScaleTxt=T.selectAll(".textpoint")}}function g(e,t){var n=t.plotgroup,r=t.id,a=u.layerValue2layerClass[t.xaxis.layer],i=u.layerValue2layerClass[t.yaxis.layer],o=e._fullLayout._hasOnlyLargeSploms;if(t.mainplot){var l=t.mainplotinfo,s=l.plotgroup,d=r+"-x",p=r+"-y";t.gridlayer=l.gridlayer,t.zerolinelayer=l.zerolinelayer,h(l.overlinesBelow,"path",d),h(l.overlinesBelow,"path",p),h(l.overaxesBelow,"g",d),h(l.overaxesBelow,"g",p),t.plot=h(l.overplot,"g",r),h(l.overlinesAbove,"path",d),h(l.overlinesAbove,"path",p),h(l.overaxesAbove,"g",d),h(l.overaxesAbove,"g",p),t.xlines=s.select(".overlines-"+a).select("."+d),t.ylines=s.select(".overlines-"+i).select("."+p),t.xaxislayer=s.select(".overaxes-"+a).select("."+d),t.yaxislayer=s.select(".overaxes-"+i).select("."+p)}else if(o)t.xlines=h(n,"path","xlines-above"),t.ylines=h(n,"path","ylines-above"),t.xaxislayer=h(n,"g","xaxislayer-above"),t.yaxislayer=h(n,"g","yaxislayer-above");else{var g=h(n,"g","layer-subplot");t.shapelayer=h(g,"g","shapelayer"),t.imagelayer=h(g,"g","imagelayer"),t.gridlayer=h(n,"g","gridlayer"),t.zerolinelayer=h(n,"g","zerolinelayer"),h(n,"path","xlines-below"),h(n,"path","ylines-below"),t.overlinesBelow=h(n,"g","overlines-below"),h(n,"g","xaxislayer-below"),h(n,"g","yaxislayer-below"),t.overaxesBelow=h(n,"g","overaxes-below"),t.plot=h(n,"g","plot"),t.overplot=h(n,"g","overplot"),t.xlines=h(n,"path","xlines-above"),t.ylines=h(n,"path","ylines-above"),t.overlinesAbove=h(n,"g","overlines-above"),h(n,"g","xaxislayer-above"),h(n,"g","yaxislayer-above"),t.overaxesAbove=h(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+a),t.ylines=n.select(".ylines-"+i),t.xaxislayer=n.select(".xaxislayer-"+a),t.yaxislayer=n.select(".yaxislayer-"+i)}o||(f(t.gridlayer,"g",t.xaxis._id),f(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map((function(e){return e[0]})).sort(c.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0)}function v(e,t){if(e){var n={};for(var a in e.each((function(e){var a=e[0];r.select(this).remove(),m(a,t),n[a]=!0})),t._plots)for(var i=t._plots[a].overlays||[],o=0;o<i.length;o++){var l=i[o];n[l.id]&&l.plot.selectAll(".trace").remove()}}}function m(e,t){t._draggers.selectAll("g."+e).remove(),t._defs.select("#clip"+t._uid+e+"plot").remove()}t.name="cartesian",t.attr=["xaxis","yaxis"],t.idRoot=["x","y"],t.idRegex=u.idRegex,t.attrRegex=u.attrRegex,t.attributes=n("P/f8"),t.layoutAttributes=n("15jM"),t.supplyLayoutDefaults=n("g3i2"),t.transitionAxes=n("BEZi"),t.finalizeSubplots=function(e,t){var n,r,a,o=t._subplots,l=o.xaxis,s=o.yaxis,d=o.cartesian,h=d.concat(o.gl2d||[]),f={},p={};for(n=0;n<h.length;n++){var g=h[n].split("y");f[g[0]]=1,p["y"+g[1]]=1}for(n=0;n<l.length;n++)f[r=l[n]]||(a=(e[c.id2name(r)]||{}).anchor,u.idRegex.y.test(a)||(a="y"),d.push(r+a),h.push(r+a),p[a]||(p[a]=1,i.pushUnique(s,a)));for(n=0;n<s.length;n++)p[a=s[n]]||(r=(e[c.id2name(a)]||{}).anchor,u.idRegex.x.test(r)||(r="x"),d.push(r+a),h.push(r+a),f[r]||(f[r]=1,i.pushUnique(l,r)));if(!h.length){for(var v in r="",a="",e){if(u.attrRegex.test(v))"x"===v.charAt(0)?(!r||+v.substr(5)<+r.substr(5))&&(r=v):(!a||+v.substr(5)<+a.substr(5))&&(a=v)}r=r?c.name2id(r):"x",a=a?c.name2id(a):"y",l.push(r),s.push(a),d.push(r+a)}},t.plot=function(e,t,n,r){var a,i=e._fullLayout,o=i._subplots.cartesian,l=e.calcdata;if(!Array.isArray(t))for(t=[],a=0;a<l.length;a++)t.push(a);for(a=0;a<o.length;a++){for(var s,c=o[a],u=i._plots[c],d=[],h=0;h<l.length;h++){var f=l[h],g=f[0].trace;g.xaxis+g.yaxis===c&&((-1!==t.indexOf(g.index)||g.carpet)&&(s&&s[0].trace.xaxis+s[0].trace.yaxis===c&&-1!==["tonextx","tonexty","tonext"].indexOf(g.fill)&&-1===d.indexOf(s)&&d.push(s),d.push(f)),s=f)}p(e,u,d,n,r)}},t.clean=function(e,t,n,r){var a,i,o,l=r._plots||{},s=t._plots||{},u=r._subplots||{};if(r._hasOnlyLargeSploms&&!t._hasOnlyLargeSploms)for(o in l)(a=l[o]).plotgroup&&a.plotgroup.remove();var d=r._has&&r._has("gl"),h=t._has&&t._has("gl");if(d&&!h)for(o in l)(a=l[o])._scene&&a._scene.destroy();if(u.xaxis&&u.yaxis){var f=c.listIds({_fullLayout:r});for(i=0;i<f.length;i++){var p=f[i];t[c.id2name(p)]||r._infolayer.selectAll(".g-"+p+"title").remove()}}var g=r._has&&r._has("cartesian"),y=t._has&&t._has("cartesian");if(g&&!y)v(r._cartesianlayer.selectAll(".subplot"),r),r._defs.selectAll(".axesclip").remove(),delete r._axisConstraintGroups;else if(u.cartesian)for(i=0;i<u.cartesian.length;i++){var x=u.cartesian[i];if(!s[x]){var b="."+x+",."+x+"-x,."+x+"-y";r._cartesianlayer.selectAll(b).remove(),m(x,r)}}},t.drawFramework=function(e){var t=e._fullLayout,n=function(e){var t,n,r,a,i,o,l=e._fullLayout,s=l._subplots.cartesian,c=s.length,u=[],d=[];for(t=0;t<c;t++){r=s[t],a=l._plots[r],i=a.xaxis,o=a.yaxis;var h=i._mainAxis,f=o._mainAxis,p=h._id+f._id,g=l._plots[p];a.overlays=[],p!==r&&g?(a.mainplot=p,a.mainplotinfo=g,d.push(r)):(a.mainplot=void 0,a.mainPlotinfo=void 0,u.push(r))}for(t=0;t<d.length;t++)r=d[t],(a=l._plots[r]).mainplotinfo.overlays.push(a);var v=u.concat(d),m=new Array(c);for(t=0;t<c;t++){r=v[t],a=l._plots[r],i=a.xaxis,o=a.yaxis;var y=[r,i.layer,o.layer,i.overlaying||"",o.overlaying||""];for(n=0;n<a.overlays.length;n++)y.push(a.overlays[n].id);m[t]=y}return m}(e),a=t._cartesianlayer.selectAll(".subplot").data(n,String);a.enter().append("g").attr("class",(function(e){return"subplot "+e[0]})),a.order(),a.exit().call(v,t),a.each((function(n){var a=n[0],i=t._plots[a];i.plotgroup=r.select(this),g(e,i),i.draglayer=h(t._draggers,"g",a)}))},t.rangePlot=function(e,t,n){g(e,t),p(e,t,n),o.style(e)},t.toSVG=function(e){var t=e._fullLayout._glimages,n=r.select(e).selectAll(".svg-container");n.filter((function(e,t){return t===n.size()-1})).selectAll(".gl-canvas-context, .gl-canvas-focus").each((function(){var e=this.toDataURL("image/png");t.append("svg:image").attr({xmlns:d.svg,"xlink:href":e,preserveAspectRatio:"none",x:0,y:0,width:this.width,height:this.height})}))},t.updateFx=n("Guo4").updateFx},kc6j:function(e,t,n){"use strict";e.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",role:"info",editType:"calc",description:["Determines how bars at the same location coordinate","are displayed on the graph.","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(" ")},waterfallgap:{valType:"number",min:0,max:1,role:"style",editType:"calc",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,role:"style",editType:"calc",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}},kn30:function(e,t,n){"use strict";var r=n("f7dW"),a=n("mEVB")({editType:"none",description:"Sets the default hover label font used by all traces on the graph."});a.family.dflt=r.HOVERFONT,a.size.dflt=r.HOVERFONTSIZE,e.exports={clickmode:{valType:"flaglist",role:"info",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"],description:["Determines the mode of single click interactions.","*event* is the default value and emits the `plotly_click`","event. In addition this mode emits the `plotly_selected` event","in drag modes *lasso* and *select*, but with no event data attached","(kept for compatibility reasons).","The *select* flag enables selecting single","data points via click. This mode also supports persistent selections,","meaning that pressing Shift while clicking, adds to / subtracts from an","existing selection. *select* with `hovermode`: *x* can be confusing, consider","explicitly setting `hovermode`: *closest* when using this feature.","Selection events are sent accordingly as long as *event* flag is set as well.","When the *event* flag is missing, `plotly_click` and `plotly_selected`","events are not fired."].join(" ")},dragmode:{valType:"enumerated",role:"info",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",role:"info",values:["x","y","closest",!1,"x unified","y unified"],editType:"modebar",description:["Determines the mode of hover interactions.","If *closest*, a single hoverlabel will appear","for the *closest* point within the `hoverdistance`.","If *x* (or *y*), multiple hoverlabels will appear for multiple points","at the *closest* x- (or y-) coordinate within the `hoverdistance`,","with the caveat that no more than one hoverlabel will appear per trace.","If *x unified* (or *y unified*), a single hoverlabel will appear","multiple points at the closest x- (or y-) coordinate within the `hoverdistance`","with the caveat that no more than one hoverlabel will appear per trace.","In this mode, spikelines are enabled by default perpendicular to the specified axis.","If false, hover interactions are disabled.","If `clickmode` includes the *select* flag,","`hovermode` defaults to *closest*.","If `clickmode` lacks the *select* flag,","it defaults to *x* or *y* (depending on the trace's","`orientation` value) for plots based on","cartesian coordinates. For anything else the default","value is *closest*."].join(" ")},hoverdistance:{valType:"integer",min:-1,dflt:20,role:"info",editType:"none",description:["Sets the default distance (in pixels) to look for data","to add hover labels (-1 means no cutoff, 0 means no looking for data).","This is only a real distance for hovering on point-like objects,","like scatter points. For area-like objects (bars, scatter fills, etc)","hovering is on inside the area and off outside, but these objects","will not supersede hover on point-like objects in case of conflict."].join(" ")},spikedistance:{valType:"integer",min:-1,dflt:20,role:"info",editType:"none",description:["Sets the default distance (in pixels) to look for data to draw","spikelines to (-1 means no cutoff, 0 means no looking for data).","As with hoverdistance, distance does not apply to area-like objects.","In addition, some objects can be hovered on but will not generate","spikelines, such as scatter fills."].join(" ")},hoverlabel:{bgcolor:{valType:"color",role:"style",editType:"none",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",role:"style",editType:"none",description:["Sets the border color of all hover labels on graph."].join(" ")},font:a,align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",role:"style",editType:"none",description:["Sets the horizontal alignment of the text content within hover label box.","Has an effect only if the hover label text spans more two or more lines"].join(" ")},namelength:{valType:"integer",min:-1,dflt:15,role:"style",editType:"none",description:["Sets the default length (in number of characters) of the trace name in","the hover labels for all traces. -1 shows the whole name","regardless of length. 0-3 shows the first 0-3 characters, and","an integer >3 will show the whole name if it is less than that","many characters, but if it is longer, will truncate to","`namelength - 3` characters and add an ellipsis."].join(" ")},editType:"none"},selectdirection:{valType:"enumerated",role:"info",values:["h","v","d","any"],dflt:"any",description:["When `dragmode` is set to *select*, this limits the selection of the drag to","horizontal, vertical or diagonal. *h* only allows horizontal selection,","*v* only vertical, *d* only diagonal and *any* sets no limit."].join(" "),editType:"none"}}},kvrn:function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var a,i,o,l,s;for(o in t)if(a=e[o],i=t[o],a&&n.test(o))if("class"===o&&("string"==typeof a&&(s=a,e[o]=a={},a[s]=!0),"string"==typeof i&&(s=i,t[o]=i={},i[s]=!0)),"on"===o||"nativeOn"===o||"hook"===o)for(l in i)a[l]=r(a[l],i[l]);else if(Array.isArray(a))e[o]=a.concat(i);else if(Array.isArray(i))e[o]=[a].concat(i);else for(l in i)a[l]=i[l];else e[o]=t[o];return e}),{})}},l1mV:function(e,t,n){"use strict";var r=n("Y9zF").FROM_BL;e.exports=function(e,t,n){void 0===n&&(n=r[e.constraintoward||"center"]);var a=[e.r2l(e.range[0]),e.r2l(e.range[1])],i=a[0]+(a[1]-a[0])*n;e.range=e._input.range=[e.l2r(i+(a[0]-i)*t),e.l2r(i+(a[1]-i)*t)]}},l3j2:function(e,t,n){"use strict";e.exports={moduleType:"component",name:"legend",layoutAttributes:n("6Ccv"),supplyLayoutDefaults:n("6BNG"),draw:n("Q9kw"),style:n("7ncg")}},l9FN:function(e,t,n){"use strict";var r=n("lNV6").hovertemplateAttrs,a=n("lNV6").texttemplateAttrs,i=n("9Okp"),o=n("gfA5").attributes,l=n("kZ5o"),s=n("8gD/"),c=n("I8wg"),u=n("kJIm").extendFlat;e.exports={labels:s.labels,parents:s.parents,values:s.values,branchvalues:s.branchvalues,count:s.count,level:s.level,maxdepth:s.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",role:"info",editType:"plot",description:["Determines d3 treemap solver.","For more info please refer to https://github.com/d3/d3-hierarchy#treemap-tiling"].join(" ")},squarifyratio:{valType:"number",role:"info",min:1,dflt:1,editType:"plot",description:["When using *squarify* `packing` algorithm, according to https://github.com/d3/d3-hierarchy/blob/master/README.md#squarify_ratio","this option specifies the desired aspect ratio of the generated rectangles.","The ratio must be specified as a number greater than or equal to one.","Note that the orientation of the generated rectangles (tall or wide)","is not implied by the ratio; for example, a ratio of two will attempt","to produce a mixture of rectangles whose width:height ratio is either 2:1 or 1:2.","When using *squarify*, unlike d3 which uses the Golden Ratio i.e. 1.618034,","Plotly applies 1 to increase squares in treemap layouts."].join(" ")},flip:{valType:"flaglist",role:"info",flags:["x","y"],dflt:"",editType:"plot",description:["Determines if the positions obtained from solver are flipped on each axis."].join(" ")},pad:{valType:"number",role:"style",min:0,dflt:3,editType:"plot",description:["Sets the inner padding (in px)."].join(" ")},editType:"calc"},marker:u({pad:{t:{valType:"number",role:"style",min:0,editType:"plot",description:["Sets the padding form the top (in px)."].join(" ")},l:{valType:"number",role:"style",min:0,editType:"plot",description:["Sets the padding form the left (in px)."].join(" ")},r:{valType:"number",role:"style",min:0,editType:"plot",description:["Sets the padding form the right (in px)."].join(" ")},b:{valType:"number",role:"style",min:0,editType:"plot",description:["Sets the padding form the bottom (in px)."].join(" ")},editType:"calc"},colors:s.marker.colors,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style",role:"style",description:["Determines if the sector colors are faded towards","the background from the leaves up to the headers.","This option is unavailable when a `colorscale` is present,","defaults to false when `marker.colors` is set,","but otherwise defaults to true.","When set to *reversed*, the fading direction is inverted,","that is the top elements within hierarchy are drawn with fully saturated colors","while the leaves are faded towards the background color."].join(" ")},line:s.marker.line,editType:"calc"},i("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,role:"info",editType:"plot",description:["Determines if the path bar is drawn","i.e. outside the trace `domain` and","with one pixel gap."].join(" ")},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",role:"info",editType:"plot",description:["Determines on which side of the the treemap the","`pathbar` should be presented."].join(" ")},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",role:"style",editType:"plot",description:["Determines which shape is used for edges between `barpath` labels."].join(" ")},thickness:{valType:"number",min:12,role:"info",editType:"plot",description:["Sets the thickness of `pathbar` (in px). If not specified the `pathbar.textfont.size` is used","with 3 pixles extra padding on each side."].join(" ")},textfont:u({},l.textfont,{description:"Sets the font used inside `pathbar`."}),editType:"calc"},text:l.text,textinfo:s.textinfo,texttemplate:a({editType:"plot"},{keys:c.eventDataKeys.concat(["label","value"])}),hovertext:l.hovertext,hoverinfo:s.hoverinfo,hovertemplate:r({},{keys:c.eventDataKeys}),textfont:l.textfont,insidetextfont:l.insidetextfont,outsidetextfont:u({},l.outsidetextfont,{description:["Sets the font used for `textinfo` lying outside the sector.","This option refers to the root of the hierarchy","presented on top left corner of a treemap graph.","Please note that if a hierarchy has multiple root nodes,","this option won't have any effect and `insidetextfont` would be used."].join(" ")}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",role:"style",editType:"plot",description:["Sets the positions of the `text` elements."].join(" ")},domain:o({name:"treemap",trace:!0,editType:"calc"})}},lNV6:function(e,t,n){"use strict";var r=['Variables are inserted using %{variable}, for example "y: %{y}".','Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".',n("eN+q").FORMAT_LINK,"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("eN+q").DATE_FORMAT_LINK,"for details on the date formatting syntax."].join(" ");function a(e){var t=e.description?" "+e.description:"",n=e.keys||[];if(n.length>0){for(var r=[],a=0;a<n.length;a++)r[a]="`"+n[a]+"`";t+="Finally, the template string has access to ",t=1===n.length?"variable "+r[0]:"variables "+r.slice(0,-1).join(", ")+" and "+r.slice(-1)+"."}return t}t.hovertemplateAttrs=function(e,t){e=e||{};var n=a(t=t||{}),i={valType:"string",role:"info",dflt:"",editType:e.editType||"none",description:["Template string used for rendering the information that appear on hover box.","Note that this will override `hoverinfo`.",r,"The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data.","Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",n,'Anything contained in tag `<extra>` is displayed in the secondary box, for example "<extra>{fullData.name}</extra>".',"To hide the secondary box completely, use an empty tag `<extra></extra>`."].join(" ")};return!1!==e.arrayOk&&(i.arrayOk=!0),i},t.texttemplateAttrs=function(e,t){e=e||{};var n=a(t=t||{}),i={valType:"string",role:"info",dflt:"",editType:e.editType||"calc",description:["Template string used for rendering the information text that appear on points.","Note that this will override `textinfo`.",r,"Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available.",n].join(" ")};return!1!==e.arrayOk&&(i.arrayOk=!0),i}},lSNA:function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},lUdJ:function(e,t,n){"use strict";e.exports=function(e,t){for(var n=e.length,r=0,a=0;a<n;a++)t[a]?(e[a]/=t[a],r+=e[a]):e[a]=null;return r}},lYq1:function(e,t,n){"use strict";t.manage=n("qeRF")},lnYW:function(e,t,n){"use strict";var r=n("bljh"),a=n("Zss7"),i=n("FHfC"),o=n("Nx4I"),l=n("/CZE"),s=n("A3kh"),c=n("0RW4"),u=n("g9E0"),d=n("pcRN"),h=n("BkK/"),f=n("DzeQ"),p=n("Tv4R"),g=n("4htA"),v=g.selectingOrDrawing,m=g.freeMode,y=n("Y9zF").FROM_TL,x=n("ghsG"),b=n("o5LV").redrawReglTraces,w=n("u3HJ"),_=n("PBw4").getFromId,k=n("GHb7").prepSelect,T=n("GHb7").clearSelect,M=n("GHb7").selectOnClick,A=n("l1mV"),S=n("0wH6"),C=S.MINDRAG,L=S.MINZOOM,I=!0;function E(e,t,n,r){var a=l.ensureSingle(e.draglayer,t,n,(function(t){t.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)}));return a.call(f,r),a.node()}function O(e,t,n,a,i,o,l){var s=E(e,"rect",t,n);return r.select(s).call(u.setRect,a,i,o,l),s}function D(e,t){for(var n=0;n<e.length;n++)if(!e[n].fixedrange)return t;return""}function P(e,t,n,r,a){for(var i=0;i<e.length;i++){var o=e[i];if(!o.fixedrange)if(o.rangebreaks){var l="y"===o._id.charAt(0),s=l?1-t:t,c=l?1-n:n;r[o._name+".range[0]"]=o.l2r(o.p2l(s*o._length)),r[o._name+".range[1]"]=o.l2r(o.p2l(c*o._length))}else{var u=o._rl[0],d=o._rl[1]-u;r[o._name+".range[0]"]=o.l2r(u+d*t),r[o._name+".range[1]"]=o.l2r(u+d*n)}}if(a&&a.length){var h=(t+(1-n))/2;P(a,h,1-h,r,[])}}function z(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(!r.fixedrange)if(r.rangebreaks){var a=r._length,i=(r.p2l(0+t)-r.p2l(0)+(r.p2l(a+t)-r.p2l(a)))/2;r.range=[r.l2r(r._rl[0]-i),r.l2r(r._rl[1]-i)]}else r.range=[r.l2r(r._rl[0]-t/r._m),r.l2r(r._rl[1]-t/r._m)]}}function N(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function j(e,t,n,r,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform","translate("+n+", "+r+")").attr("d",a+"Z")}function R(e,t,n){return e.append("path").attr("class","zoombox-corners").style({fill:c.background,stroke:c.defaultLine,"stroke-width":1,opacity:0}).attr("transform","translate("+t+", "+n+")").attr("d","M0,0Z")}function F(e,t,n,r,a,i){e.attr("d",r+"M"+n.l+","+n.t+"v"+n.h+"h"+n.w+"v-"+n.h+"h-"+n.w+"Z"),B(e,t,a,i)}function B(e,t,n,r){n||(e.transition().style("fill",r>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function H(e){r.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function V(e){I&&e.data&&e._context.showTips&&(l.notifier(l._(e,"Double-click to zoom back out"),"long"),I=!1)}function G(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,L)/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 U(e,t,n,r){for(var a,i,o,s,c=!1,u={},d={},h=0;h<t.length;h++){var f=t[h];for(a in n)if(f[a]){for(o in f)("x"===o.charAt(0)?n:r)[o]||(u[o]=a);for(i in r)f[i]&&(c=!0)}for(i in r)if(f[i])for(s in f)("x"===s.charAt(0)?n:r)[s]||(d[s]=i)}c&&(l.extendFlat(u,d),d={});var p={},g=[];for(o in u){var v=_(e,o);g.push(v),p[v._id]=v}var m={},y=[];for(s in d){var x=_(e,s);y.push(x),m[x._id]=x}return{xaHash:p,yaHash:m,xaxes:g,yaxes:y,xLinks:u,yLinks:d,isSubplotConstrained:c}}function q(e,t){if(i){var n=void 0!==e.onwheel?"wheel":"mousewheel";e._onwheel&&e.removeEventListener(n,e._onwheel),e._onwheel=t,e.addEventListener(n,t,{passive:!1})}else void 0!==e.onwheel?e.onwheel=t:void 0!==e.onmousewheel?e.onmousewheel=t:e.isAddedWheelEvent||(e.isAddedWheelEvent=!0,e.addEventListener("wheel",t,{passive:!1}))}function Z(e){var t=[];for(var n in e)t.push(e[n]);return t}e.exports={makeDragBox:function(e,t,n,i,c,f,g,I){var E,B,W,Y,X,$,J,K,Q,ee,te,ne,re,ae,ie,oe,le,se,ce,ue,de,he=e._fullLayout._zoomlayer,fe=g+I==="nsew",pe=1===(g+I).length;function ge(){if(E=t.xaxis,B=t.yaxis,Q=E._length,ee=B._length,J=E._offset,K=B._offset,(W={})[E._id]=E,(Y={})[B._id]=B,g&&I)for(var n=t.overlays,r=0;r<n.length;r++){var a=n[r].xaxis;W[a._id]=a;var i=n[r].yaxis;Y[i._id]=i}X=Z(W),$=Z(Y),re=D(X,I),ae=D($,g),ie=!ae&&!re,te=U(e,e._fullLayout._axisConstraintGroups,W,Y),ne=U(e,e._fullLayout._axisMatchGroups,W,Y),oe=I||te.isSubplotConstrained||ne.isSubplotConstrained,le=g||te.isSubplotConstrained||ne.isSubplotConstrained;var o=e._fullLayout;se=o._has("scattergl"),ce=o._has("splom"),ue=o._has("svg")}ge();var ve=function(e,t,n){if(!e)return"pointer";if("nsew"===e)return n?"":"pan"===t?"move":"crosshair";return e.toLowerCase()+"-resize"}(ae+re,e._fullLayout.dragmode,fe),me=O(t,g+I+"drag",ve,n,i,c,f);if(ie&&!fe)return me.onmousedown=null,me.style.pointerEvents="none",me;var ye,xe,be,we,_e,ke,Te,Me,Ae,Se,Ce={element:me,gd:e,plotinfo:t};function Le(){Ce.plotinfo.selection=!1,T(e)}function Ie(e,n){var a=Ce.gd;if(a._fullLayout._activeShapeIndex>=0)a._fullLayout._deactivateShape(a);else{var i=a._fullLayout.clickmode;if(H(a),2!==e||pe||He(),fe)i.indexOf("select")>-1&&M(n,a,X,$,t.id,Ce),i.indexOf("event")>-1&&d.click(a,n,t.id);else if(1===e&&pe){var l=g?B:E,c="s"===g||"w"===I?0:1,u=l._name+".range["+c+"]",h=function(e,t){var n,a=e.range[t],i=Math.abs(a-e.range[1-t]);return"date"===e.type?a:"log"===e.type?(n=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,r.format("."+n+"g")(Math.pow(10,a))):(n=Math.floor(Math.log(Math.abs(a))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,r.format("."+String(n)+"g")(a))}(l,c),f="left",p="middle";if(l.fixedrange)return;g?(p="n"===g?"top":"bottom","right"===l.side&&(f="right")):"e"===I&&(f="right"),a._context.showAxisRangeEntryBoxes&&r.select(me).call(s.makeEditable,{gd:a,immediate:!0,background:a._fullLayout.paper_bgcolor,text:String(h),fill:l.tickfont?l.tickfont.color:"#444",horizontalAlign:f,verticalAlign:p}).on("edit",(function(e){var t=l.d2r(e);void 0!==t&&o.call("_guiRelayout",a,u,t)}))}}}function Ee(t,n){if(e._transitioningWithDuration)return!1;var r=Math.max(0,Math.min(Q,t+ye)),a=Math.max(0,Math.min(ee,n+xe)),i=Math.abs(r-ye),o=Math.abs(a-xe);function l(){Te="",be.r=be.l,be.t=be.b,Ae.attr("d","M0,0Z")}if(be.l=Math.min(ye,r),be.r=Math.max(ye,r),be.t=Math.min(xe,a),be.b=Math.max(xe,a),te.isSubplotConstrained)i>L||o>L?(Te="xy",i/Q>o/ee?(o=i*ee/Q,xe>a?be.t=xe-o:be.b=xe+o):(i=o*Q/ee,ye>r?be.l=ye-i:be.r=ye+i),Ae.attr("d",G(be))):l();else if(ne.isSubplotConstrained)if(i>L||o>L){Te="xy";var s=Math.min(be.l/Q,(ee-be.b)/ee),c=Math.max(be.r/Q,(ee-be.t)/ee);be.l=s*Q,be.r=c*Q,be.b=(1-s)*ee,be.t=(1-c)*ee,Ae.attr("d",G(be))}else l();else!ae||o<Math.min(Math.max(.6*i,C),L)?i<C||!re?l():(be.t=0,be.b=ee,Te="x",Ae.attr("d",function(e,t){return"M"+(e.l-.5)+","+(t-L-.5)+"h-3v"+(2*L+1)+"h3ZM"+(e.r+.5)+","+(t-L-.5)+"h3v"+(2*L+1)+"h-3Z"}(be,xe))):!re||i<Math.min(.6*o,L)?(be.l=0,be.r=Q,Te="y",Ae.attr("d",function(e,t){return"M"+(t-L-.5)+","+(e.t-.5)+"v-3h"+(2*L+1)+"v3ZM"+(t-L-.5)+","+(e.b+.5)+"v3h"+(2*L+1)+"v-3Z"}(be,ye))):(Te="xy",Ae.attr("d",G(be)));be.w=be.r-be.l,be.h=be.b-be.t,Te&&(Se=!0),e._dragged=Se,F(Me,Ae,be,_e,ke,we),Oe(),e.emit("plotly_relayouting",de),ke=!0}function Oe(){de={},"xy"!==Te&&"x"!==Te||(P(X,be.l/Q,be.r/Q,de,te.xaxes),Fe("x",de)),"xy"!==Te&&"y"!==Te||(P($,(ee-be.b)/ee,(ee-be.t)/ee,de,te.yaxes),Fe("y",de))}function De(){Oe(),H(e),Ve(),V(e)}Ce.prepFn=function(t,n,r){var i=Ce.dragmode,o=e._fullLayout.dragmode;o!==i&&(Ce.dragmode=o),ge(),ie||(fe?t.shiftKey?"pan"===o?o="zoom":v(o)||(o="pan"):t.ctrlKey&&(o="pan"):o="pan"),m(o)?Ce.minDrag=1:Ce.minDrag=void 0,v(o)?(Ce.xaxes=X,Ce.yaxes=$,k(t,n,r,Ce,o)):(Ce.clickFn=Ie,v(i)&&Le(),ie||("zoom"===o?(Ce.moveFn=Ee,Ce.doneFn=De,Ce.minDrag=1,function(t,n,r){var i=me.getBoundingClientRect();ye=n-i.left,xe=r-i.top,be={l:ye,r:ye,w:0,t:xe,b:xe,h:0},we=e._hmpixcount?e._hmlumcount/e._hmpixcount:a(e._fullLayout.plot_bgcolor).getLuminance(),ke=!1,Te="xy",Se=!1,Me=j(he,we,J,K,_e="M0,0H"+Q+"V"+ee+"H0V0"),Ae=R(he,J,K)}(0,n,r)):"pan"===o&&(Ce.moveFn=Re,Ce.doneFn=Ve))),e._fullLayout._redrag=function(){var t=e._dragdata;if(t&&t.element===me){var n=e._fullLayout.dragmode;v(n)||(ge(),Ge([0,0,Q,ee]),Ce.moveFn(t.dx,t.dy))}}},p.init(Ce);var Pe=[0,0,Q,ee],ze=null,Ne=S.REDRAWDELAY,je=t.mainplot?e._fullLayout._plots[t.mainplot]:t;function Re(t,n){if(!e._transitioningWithDuration){if(e._fullLayout._replotting=!0,"ew"===re||"ns"===ae)return re&&(z(X,t),Fe("x")),ae&&(z($,n),Fe("y")),Ge([re?-t:0,ae?-n:0,Q,ee]),Be(),void e.emit("plotly_relayouting",de);if(te.isSubplotConstrained&&re&&ae){var r="w"===re==("n"===ae)?1:-1,a=(t/Q+r*n/ee)/2;t=a*Q,n=r*a*ee}"w"===re?t=s(X,0,t):"e"===re?t=s(X,1,-t):re||(t=0),"n"===ae?n=s($,1,n):"s"===ae?n=s($,0,-n):ae||(n=0);var i="w"===re?t:0,o="n"===ae?n:0;if(te.isSubplotConstrained){var l;if(!re&&1===ae.length){for(l=0;l<X.length;l++)X[l].range=X[l]._r.slice(),A(X[l],1-n/ee);i=(t=n*Q/ee)/2}if(!ae&&1===re.length){for(l=0;l<$.length;l++)$[l].range=$[l]._r.slice(),A($[l],1-t/Q);o=(n=t*ee/Q)/2}}Fe("x"),Fe("y"),Ge([i,o,Q-t,ee-n]),Be(),e.emit("plotly_relayouting",de)}function s(e,t,n){for(var r,a,i=1-t,o=0;o<e.length;o++){var l=e[o];if(!l.fixedrange){r=l,a=l._rl[i]+(l._rl[t]-l._rl[i])/N(n/l._length);var s=l.l2r(a);!1!==s&&void 0!==s&&(l.range[t]=s)}}return r._length*(r._rl[t]-a)/(r._rl[t]-r._rl[i])}}function Fe(e,t){for(var n=ne.isSubplotConstrained?{x:$,y:X}[e]:ne[e+"axes"],r=ne.isSubplotConstrained?{x:X,y:$}[e]:[],a=0;a<n.length;a++){var i=n[a],o=i._id,l=ne.xLinks[o]||ne.yLinks[o],s=r[0]||W[l]||Y[l];s&&(t?(t[i._name+".range[0]"]=t[s._name+".range[0]"],t[i._name+".range[1]"]=t[s._name+".range[1]"]):i.range=s.range.slice())}}function Be(){var t,n=[];function r(e){for(t=0;t<e.length;t++)e[t].fixedrange||n.push(e[t]._id)}for(oe&&(r(X),r(te.xaxes),r(ne.xaxes)),le&&(r($),r(te.yaxes),r(ne.yaxes)),de={},t=0;t<n.length;t++){var a=n[t],i=_(e,a);h.drawOne(e,i,{skipTitle:!0}),de[i._name+".range[0]"]=i.range[0],de[i._name+".range[1]"]=i.range[1]}h.redrawComponents(e,n)}function He(){if(!e._transitioningWithDuration){var t=e._context.doubleClick,n=[];re&&(n=n.concat(X)),ae&&(n=n.concat($)),ne.xaxes&&(n=n.concat(ne.xaxes)),ne.yaxes&&(n=n.concat(ne.yaxes));var r,a,i,l={};if("reset+autosize"===t)for(t="autosize",a=0;a<n.length;a++)if((r=n[a])._rangeInitial&&(r.range[0]!==r._rangeInitial[0]||r.range[1]!==r._rangeInitial[1])||!r._rangeInitial&&!r.autorange){t="reset";break}if("autosize"===t)for(a=0;a<n.length;a++)(r=n[a]).fixedrange||(l[r._name+".autorange"]=!0);else if("reset"===t)for((re||te.isSubplotConstrained)&&(n=n.concat(te.xaxes)),ae&&!te.isSubplotConstrained&&(n=n.concat(te.yaxes)),te.isSubplotConstrained&&(re?ae||(n=n.concat($)):n=n.concat(X)),a=0;a<n.length;a++)(r=n[a]).fixedrange||(r._rangeInitial?(i=r._rangeInitial,l[r._name+".range[0]"]=i[0],l[r._name+".range[1]"]=i[1]):l[r._name+".autorange"]=!0);e.emit("plotly_doubleclick",null),o.call("_guiRelayout",e,l)}}function Ve(){Ge([0,0,Q,ee]),l.syncOrAsync([w.previousPromises,function(){e._fullLayout._replotting=!1,o.call("_guiRelayout",e,de)}],e)}function Ge(t){var n,r,a,i,s=e._fullLayout,c=s._plots,d=s._subplots.cartesian;if(ce&&o.subplotsRegistry.splom.drag(e),se)for(n=0;n<d.length;n++)if(a=(r=c[d[n]]).xaxis,i=r.yaxis,r._scene){var h=l.simpleMap(a.range,a.r2l),f=l.simpleMap(i.range,i.r2l);r._scene.update({range:[h[0],f[0],h[1],f[1]]})}if((ce||se)&&(x(e),b(e)),ue){var p=t[2]/E._length,v=t[3]/B._length;for(n=0;n<d.length;n++){a=(r=c[d[n]]).xaxis,i=r.yaxis;var m,y,w,_,k=oe&&!a.fixedrange&&W[a._id],T=le&&!i.fixedrange&&Y[i._id];if(k?(m=p,w=I?t[0]:Ze(a,m)):ne.xaHash[a._id]?(m=p,w=t[0]*a._length/E._length):ne.yaHash[a._id]?(m=v,w="ns"===ae?-t[1]*a._length/B._length:Ze(a,m,{n:"top",s:"bottom"}[ae])):w=qe(a,m=Ue(a,p,v)),T?(y=v,_=g?t[1]:Ze(i,y)):ne.yaHash[i._id]?(y=v,_=t[1]*i._length/B._length):ne.xaHash[i._id]?(y=p,_="ew"===re?-t[0]*i._length/E._length:Ze(i,y,{e:"right",w:"left"}[re])):_=qe(i,y=Ue(i,p,v)),m||y){m||(m=1),y||(y=1);var M=a._offset-w/m,A=i._offset-_/y;r.clipRect.call(u.setTranslate,w,_).call(u.setScale,m,y),r.plot.call(u.setTranslate,M,A).call(u.setScale,1/m,1/y),m===r.xScaleFactor&&y===r.yScaleFactor||(u.setPointGroupScale(r.zoomScalePts,m,y),u.setTextPointsScale(r.zoomScaleTxt,m,y)),u.hideOutsideRangePoints(r.clipOnAxisFalseTraces,r),r.xScaleFactor=m,r.yScaleFactor=y}}}}function Ue(e,t,n){return e.fixedrange?0:oe&&te.xaHash[e._id]?t:le&&(te.isSubplotConstrained?te.xaHash:te.yaHash)[e._id]?n:0}function qe(e,t){return t?(e.range=e._r.slice(),A(e,t),Ze(e,t)):0}function Ze(e,t,n){return e._length*(1-t)*y[n||e.constraintoward||"middle"]}return g.length*I.length!=1&&q(me,(function(t){if(e._context._scrollZoom.cartesian||e._fullLayout._enablescrollzoom){if(Le(),e._transitioningWithDuration)return t.preventDefault(),void t.stopPropagation();ge(),clearTimeout(ze);var n=-t.deltaY;if(isFinite(n)||(n=t.wheelDelta/10),isFinite(n)){var r,a=Math.exp(-Math.min(Math.max(n,-20),20)/200),i=je.draglayer.select(".nsewdrag").node().getBoundingClientRect(),o=(t.clientX-i.left)/i.width,s=(i.bottom-t.clientY)/i.height;if(oe){for(I||(o=.5),r=0;r<X.length;r++)c(X[r],o,a);Fe("x"),Pe[2]*=a,Pe[0]+=Pe[2]*o*(1/a-1)}if(le){for(g||(s=.5),r=0;r<$.length;r++)c($[r],s,a);Fe("y"),Pe[3]*=a,Pe[1]+=Pe[3]*(1-s)*(1/a-1)}Ge(Pe),Be(),e.emit("plotly_relayouting",de),ze=setTimeout((function(){Pe=[0,0,Q,ee],Ve()}),Ne),t.preventDefault()}else l.log("Did not find wheel motion attributes: ",t)}function c(e,t,n){if(!e.fixedrange){var r=l.simpleMap(e.range,e.r2l),a=r[0]+(r[1]-r[0])*t;e.range=r.map((function(t){return e.l2r(a+(t-a)*n)}))}}})),me},makeDragger:E,makeRectDragger:O,makeZoombox:j,makeCorners:R,updateZoombox:F,xyCorners:G,transitionZoombox:B,removeZoombox:H,showDoubleClickNotifier:V,attachWheelEventHandler:q}},lzY6:function(e,t,n){},m0LI:function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}}},mEVB:function(e,t,n){"use strict";e.exports=function(e){var t=e.editType,n=e.colorEditType;void 0===n&&(n=t);var r={family:{valType:"string",role:"style",noBlank:!0,strict:!0,editType:t,description:["HTML font family - the typeface that will be applied by the web browser.","The web browser will only be able to apply a font if it is available on the system","which it operates. Provide multiple font families, separated by commas, to indicate","the preference in which to apply fonts if they aren't available on the system.","The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server,","where only a select number of","fonts are installed and supported.","These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*,","*Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*,","*PT Sans Narrow*, *Raleway*, *Times New Roman*."].join(" ")},size:{valType:"number",role:"style",min:1,editType:t},color:{valType:"color",role:"style",editType:n},editType:t,description:""+(e.description||"")};return e.arrayOk&&(r.family.arrayOk=!0,r.size.arrayOk=!0,r.color.arrayOk=!0),r}},mTXg:function(e,t,n){var r=n("wU1k");e.exports=function(e,t,n){function a(e,t,r){return{id:n?n.segmentId():-1,start:e,end:t,myFill:{above:r.myFill.above,below:r.myFill.below},otherFill:null}}var i=r.create();function o(e,n){i.insertBefore(e,(function(r){return function(e,n,r,a,i,o){var l=t.pointsCompare(n,i);return 0!==l?l:t.pointsSame(r,o)?0:e!==a?e?1:-1:t.pointAboveOrOnLine(r,a?i:o,a?o:i)?1:-1}(e.isStart,e.pt,n,r.isStart,r.pt,r.other.pt)<0}))}function l(e,t){var n=function(e,t){var n=r.node({isStart:!0,pt:e.start,seg:e,primary:t,other:null,status:null});return o(n,e.end),n}(e,t);return function(e,t,n){var a=r.node({isStart:!1,pt:t.end,seg:t,primary:n,other:e,status:null});e.other=a,o(a,e.pt)}(n,e,t),n}function s(e,t){var r=a(t,e.seg.end,e.seg);return function(e,t){n&&n.segmentChop(e.seg,t),e.other.remove(),e.seg.end=t,e.other.pt=t,o(e.other,e.pt)}(e,t),l(r,e.primary)}function c(a,o){var l=r.create();function c(e){return l.findTransition((function(n){var r,a,i,o,l,s;return(r=e,a=n.ev,i=r.seg.start,o=r.seg.end,l=a.seg.start,s=a.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 u(e,r){var a=e.seg,i=r.seg,o=a.start,l=a.end,c=i.start,u=i.end;n&&n.checkIntersection(a,i);var d=t.linesIntersect(o,l,c,u);if(!1===d){if(!t.pointsCollinear(o,l,c))return!1;if(t.pointsSame(o,u)||t.pointsSame(l,c))return!1;var h=t.pointsSame(o,c),f=t.pointsSame(l,u);if(h&&f)return r;var p=!h&&t.pointBetween(o,c,u),g=!f&&t.pointBetween(l,c,u);if(h)return g?s(r,l):s(e,u),r;p&&(f||(g?s(r,l):s(e,u)),s(r,o))}else 0===d.alongA&&(-1===d.alongB?s(e,c):0===d.alongB?s(e,d.pt):1===d.alongB&&s(e,u)),0===d.alongB&&(-1===d.alongA?s(r,o):0===d.alongA?s(r,d.pt):1===d.alongA&&s(r,l));return!1}for(var d=[];!i.isEmpty();){var h=i.getHead();if(n&&n.vert(h.pt[0]),h.isStart){n&&n.segmentNew(h.seg,h.primary);var f=c(h),p=f.before?f.before.ev:null,g=f.after?f.after.ev:null;function v(){if(p){var e=u(h,p);if(e)return e}return!!g&&u(h,g)}n&&n.tempStatus(h.seg,!!p&&p.seg,!!g&&g.seg);var m,y=v();if(y){var x;if(e)(x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below)&&(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=h.seg.myFill;n&&n.segmentUpdate(y.seg),h.other.remove(),h.remove()}if(i.getHead()!==h){n&&n.rewind(h.seg);continue}if(e)x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below,h.seg.myFill.below=g?g.seg.myFill.above:a,h.seg.myFill.above=x?!h.seg.myFill.below:h.seg.myFill.below;else if(null===h.seg.otherFill)m=g?h.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:h.primary?o:a,h.seg.otherFill={above:m,below:m};n&&n.status(h.seg,!!p&&p.seg,!!g&&g.seg),h.other.status=f.insert(r.node({ev:h}))}else{var b=h.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)&&u(b.prev.ev,b.next.ev),n&&n.statusRemove(b.ev.seg),b.remove(),!h.primary){var w=h.seg.myFill;h.seg.myFill=h.seg.otherFill,h.seg.otherFill=w}d.push(h.seg)}i.getHead().remove()}return n&&n.done(),d}return e?{addRegion:function(e){for(var r,a,i,o=e[e.length-1],s=0;s<e.length;s++){r=o,o=e[s];var c=t.pointsCompare(r,o);0!==c&&l((a=c<0?r:o,i=c<0?o:r,{id:n?n.segmentId():-1,start:a,end:i,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(e){return c(e,!1)}}:{calculate:function(e,t,n,r){return e.forEach((function(e){l(a(e.start,e.end,e),!0)})),n.forEach((function(e){l(a(e.start,e.end,e),!1)})),c(t,r)}}}},nF9v:function(e,t,n){"use strict";var r=n("mEVB"),a=n("grU7"),i=n("kJIm").extendDeepAll,o=n("yzSc").overrideAll,l=n("W2jp"),s=n("plED").templatedArray,c=n("5jll"),u=s("step",{visible:{valType:"boolean",role:"info",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",role:"info",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",role:"info",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",role:"info",description:"Sets the text label to appear on the slider"},value:{valType:"string",role:"info",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",role:"info",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",role:"info",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",role:"info",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:u,lenmode:{valType:"enumerated",values:["fraction","pixels"],role:"info",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,role:"style",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,role:"style",description:"Sets the x position (in normalized coordinates) of the slider."},pad:i(a({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",role:"info",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,role:"style",description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",role:"info",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",role:"info",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:l.transition.easing.values,role:"info",dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",role:"info",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"info",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,role:"info",description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:r({description:"Sets the font of the current value label text."})},font:r({description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",role:"style",dflt:c.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",role:"style",dflt:c.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:c.railBorderColor,role:"style",description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:c.railBorderWidth,role:"style",description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:c.tickLength,role:"style",description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:c.tickColor,role:"style",description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:c.minorTickLength,role:"style",description:"Sets the length in pixels of minor step tick marks"}}),"arraydraw","from-root")},nPGn:function(e,t,n){"use strict";var r=n("6AZA"),a=r.BADNUM,i=r.LOG_CLIP,o=i+.5,l=i-.5,s=n("/CZE"),c=s.segmentsIntersect,u=s.constrain,d=n("3mkv");e.exports=function(e,t){var n,r,i,h,f,p,g,v,m,y,x,b,w,_,k,T,M,A,S=t.xaxis,C=t.yaxis,L="log"===S.type,I="log"===C.type,E=S._length,O=C._length,D=t.connectGaps,P=t.baseTolerance,z=t.shape,N="linear"===z,j=t.fill&&"none"!==t.fill,R=[],F=d.minTolerance,B=e.length,H=new Array(B),V=0;function G(n){var r=e[n];if(!r)return!1;var i=t.linearized?S.l2p(r.x):S.c2p(r.x),s=t.linearized?C.l2p(r.y):C.c2p(r.y);if(i===a){if(L&&(i=S.c2p(r.x,!0)),i===a)return!1;I&&s===a&&(i*=Math.abs(S._m*O*(S._m>0?o:l)/(C._m*E*(C._m>0?o:l)))),i*=1e3}if(s===a){if(I&&(s=C.c2p(r.y,!0)),s===a)return!1;s*=1e3}return[i,s]}function U(e,t,n,r){var a=n-e,i=r-t,o=.5-e,l=.5-t,s=a*a+i*i,c=a*o+i*l;if(c>0&&c<s){var u=o*i-l*a;if(u*u<s)return!0}}function q(e,t){var n=e[0]/E,r=e[1]/O,a=Math.max(0,-n,n-1,-r,r-1);return a&&void 0!==M&&U(n,r,M,A)&&(a=0),a&&t&&U(n,r,t[0]/E,t[1]/O)&&(a=0),(1+d.toleranceGrowth*a)*P}function Z(e,t){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}var W,Y,X,$,J,K,Q,ee=d.maxScreensAway,te=-E*ee,ne=E*(1+ee),re=-O*ee,ae=O*(1+ee),ie=[[te,re,ne,re],[ne,re,ne,ae],[ne,ae,te,ae],[te,ae,te,re]];function oe(e){if(e[0]<te||e[0]>ne||e[1]<re||e[1]>ae)return[u(e[0],te,ne),u(e[1],re,ae)]}function le(e,t){return e[0]===t[0]&&(e[0]===te||e[0]===ne)||(e[1]===t[1]&&(e[1]===re||e[1]===ae)||void 0)}function se(e,t,n){return function(r,a){var i=oe(r),o=oe(a),l=[];if(i&&o&&le(i,o))return l;i&&l.push(i),o&&l.push(o);var c=2*s.constrain((r[e]+a[e])/2,t,n)-((i||r)[e]+(o||a)[e]);c&&((i&&o?c>0==i[e]>o[e]?i:o:i||o)[e]+=c);return l}}function ce(e){var t=e[0],n=e[1],r=t===H[V-1][0],a=n===H[V-1][1];if(!r||!a)if(V>1){var i=t===H[V-2][0],o=n===H[V-2][1];r&&(t===te||t===ne)&&i?o?V--:H[V-1]=e:a&&(n===re||n===ae)&&o?i?V--:H[V-1]=e:H[V++]=e}else H[V++]=e}function ue(e){H[V-1][0]!==e[0]&&H[V-1][1]!==e[1]&&ce([X,$]),ce(e),J=null,X=$=0}function de(e){if(M=e[0]/E,A=e[1]/O,W=e[0]<te?te:e[0]>ne?ne:0,Y=e[1]<re?re:e[1]>ae?ae:0,W||Y){if(V)if(J){var t=Q(J,e);t.length>1&&(ue(t[0]),H[V++]=t[1])}else K=Q(H[V-1],e)[0],H[V++]=K;else H[V++]=[W||e[0],Y||e[1]];var n=H[V-1];W&&Y&&(n[0]!==W||n[1]!==Y)?(J&&(X!==W&&$!==Y?ce(X&&$?(r=J,i=(a=e)[0]-r[0],o=(a[1]-r[1])/i,(r[1]*a[0]-a[1]*r[0])/i>0?[o>0?te:ne,ae]:[o>0?ne:te,re]):[X||W,$||Y]):X&&$&&ce([X,$])),ce([W,Y])):X-W&&$-Y&&ce([W||X,Y||$]),J=e,X=W,$=Y}else J&&ue(Q(J,e)[0]),H[V++]=e;var r,a,i,o}for("linear"===z||"spline"===z?Q=function(e,t){for(var n=[],r=0,a=0;a<4;a++){var i=ie[a],o=c(e[0],e[1],t[0],t[1],i[0],i[1],i[2],i[3]);o&&(!r||Math.abs(o.x-n[0][0])>1||Math.abs(o.y-n[0][1])>1)&&(o=[o.x,o.y],r&&Z(o,e)<Z(n[0],e)?n.unshift(o):n.push(o),r++)}return n}:"hv"===z||"vh"===z?Q=function(e,t){var n=[],r=oe(e),a=oe(t);return r&&a&&le(r,a)||(r&&n.push(r),a&&n.push(a)),n}:"hvh"===z?Q=se(0,te,ne):"vhv"===z&&(Q=se(1,re,ae)),n=0;n<B;n++)if(r=G(n)){for(V=0,J=null,de(r),n++;n<B;n++){if(!(h=G(n))){if(D)continue;break}if(N&&t.simplify){var he=G(n+1);if(y=Z(h,r),j&&(0===V||V===B-1)||!(y<q(h,he)*F)){for(v=[(h[0]-r[0])/y,(h[1]-r[1])/y],f=r,x=y,b=_=k=0,g=!1,i=h,n++;n<e.length;n++){if(p=he,he=G(n+1),!p){if(D)continue;break}if(T=(m=[p[0]-r[0],p[1]-r[1]])[0]*v[1]-m[1]*v[0],_=Math.min(_,T),(k=Math.max(k,T))-_>q(p,he))break;i=p,(w=m[0]*v[0]+m[1]*v[1])>x?(x=w,h=p,g=!1):w<b&&(b=w,f=p,g=!0)}if(g?(de(h),i!==f&&de(f)):(f!==r&&de(f),i!==h&&de(h)),de(i),n>=e.length||!p)break;de(p),r=p}}else de(h)}J&&ce([X||J[0],$||J[1]]),R.push(H.slice(0,V))}return R}},nTMW:function(e,t,n){"use strict";var r=n("bljh");e.exports=function(e,t){var n=e._name,a={};if("all"===t.step)a[n+".autorange"]=!0;else{var i=function(e,t){var n,a=e.range,i=new Date(e.r2l(a[1])),o=t.step,l=t.count;switch(t.stepmode){case"backward":n=e.l2r(+r.time[o].utc.offset(i,-l));break;case"todate":var s=r.time[o].utc.offset(i,-l);n=e.l2r(+r.time[o].utc.ceil(s))}var c=a[1];return[n,c]}(e,t);a[n+".range[0]"]=i[0],a[n+".range[1]"]=i[1]}return a}},nmnc:function(e,t,n){var r=n("Kz5y").Symbol;e.exports=r},npri:function(e,t,n){"use strict";var r=n("rWI/").getSubplotCalcData,a=n("/CZE").counterRegex,i=n("28dr"),o="geo",l=a(o),s={};s.geo={valType:"subplotid",role:"info",dflt:o,editType:"calc",description:["Sets a reference between this trace's geospatial coordinates and","a geographic map.","If *geo* (the default value), the geospatial coordinates refer to","`layout.geo`.","If *geo2*, the geospatial coordinates refer to `layout.geo2`,","and so on."].join(" ")},e.exports={attr:o,name:o,idRoot:o,idRegex:l,attrRegex:l,attributes:s,layoutAttributes:n("Rb6W"),supplyLayoutDefaults:n("sahz"),plot:function(e){for(var t=e._fullLayout,n=e.calcdata,a=t._subplots.geo,l=0;l<a.length;l++){var s=a[l],c=r(n,o,s),u=t[s]._subplot;u||(u=i({id:s,graphDiv:e,container:t._geolayer.node(),topojsonURL:e._context.topojsonURL,staticPlot:e._context.staticPlot}),t[s]._subplot=u),u.plot(c,t,e._promises)}},updateFx:function(e){for(var t=e._fullLayout,n=t._subplots.geo,r=0;r<n.length;r++){var a=t[n[r]];a._subplot.updateFx(t,a)}},clean:function(e,t,n,r){for(var a=r._subplots.geo||[],i=0;i<a.length;i++){var o=a[i],l=r[o]._subplot;!t[o]&&l&&(l.framework.remove(),l.clipDef.remove())}}}},o5Ge:function(e,t,n){"use strict";var r=n("/CZE"),a=n("xMdC").isUnifiedHover,i=n("kn30"),o=n("VNna"),l=n("IJNW");e.exports=function(e,t,n){function s(n,a){return r.coerce(e,t,i,n,a)}var c=o(e,t,n);c&&(s("hoverdistance"),s("spikedistance",a(c)?-1:void 0)),"select"===s("dragmode")&&s("selectdirection");var u=t._has("mapbox"),d=t._has("geo"),h=t._basePlotModules.length;"zoom"===t.dragmode&&((u||d)&&1===h||u&&d&&2===h)&&(t.dragmode="pan"),l(e,t,s)}},o5LV:function(e,t,n){"use strict";var r=n("bljh"),a=n("Nx4I"),i=n("u3HJ"),o=n("/CZE"),l=n("ghsG"),s=n("0RW4"),c=n("g9E0"),u=n("GZnn"),d=n("lYq1"),h=n("BkK/"),f=n("Y9zF"),p=n("at2O"),g=p.enforce,v=p.clean,m=n("zlYT").doAutoRange;function y(e,t,n){for(var r=0;r<n.length;r++){var a=n[r][0],i=n[r][1];if(!(a[0]>=e[1]||a[1]<=e[0])&&(i[0]<t[1]&&i[1]>t[0]))return!0}return!1}function x(e){var n,a,l,u,p,g,v=e._fullLayout,m=v._size,x=m.p,w=h.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(c.setSize,v.width,v.height),e._context.setBackground(e,v.paper_bgcolor),t.drawMainTitle(e),d.manage(e),!v._has("cartesian"))return i.previousPromises(e);function k(e,t,n){var r=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===n?t._offset-x-r:t._offset+t._length+x+r:m.t+m.h*(1-(e.position||0))+r%1:t?"right"===n?t._offset+t._length+x+r:t._offset-x-r:m.l+m.w*(e.position||0)+r%1}for(n=0;n<w.length;n++){var T=(u=w[n])._anchorAxis;u._linepositions={},u._lw=c.crispRound(e,u.linewidth,1),u._mainLinePosition=k(u,T,u.side),u._mainMirrorPosition=u.mirror&&T?k(u,T,f.OPPOSITE_SIDE[u.side]):null}var M=[],A=[],S=[],C=1===s.opacity(v.paper_bgcolor)&&1===s.opacity(v.plot_bgcolor)&&v.paper_bgcolor===v.plot_bgcolor;for(a in v._plots)if((l=v._plots[a]).mainplot)l.bg&&l.bg.remove(),l.bg=void 0;else{var L=l.xaxis.domain,I=l.yaxis.domain,E=l.plotgroup;if(y(L,I,S)){var O=E.node(),D=l.bg=o.ensureSingle(E,"rect","bg");O.insertBefore(D.node(),O.childNodes[0]),A.push(a)}else E.select("rect.bg").remove(),S.push([L,I]),C||(M.push(a),A.push(a))}var P,z,N,j,R,F,B,H,V,G,U,q,Z,W=v._bgLayer.selectAll(".bg").data(M);for(W.enter().append("rect").classed("bg",!0),W.exit().remove(),W.each((function(e){v._plots[e].bg=r.select(this)})),n=0;n<A.length;n++)l=v._plots[A[n]],p=l.xaxis,g=l.yaxis,l.bg&&l.bg.call(c.setRect,p._offset-x,g._offset-x,p._length+2*x,g._length+2*x).call(s.fill,v.plot_bgcolor).style("stroke-width",0);if(!v._hasOnlyLargeSploms)for(a in v._plots){l=v._plots[a],p=l.xaxis,g=l.yaxis;var Y,X,$=l.clipId="clip"+v._uid+a+"plot",J=o.ensureSingleById(v._clips,"clipPath",$,(function(e){e.classed("plotclip",!0).append("rect")}));l.clipRect=J.select("rect").attr({width:p._length,height:g._length}),c.setTranslate(l.plot,p._offset,g._offset),l._hasClipOnAxisFalse?(Y=null,X=$):(Y=$,X=null),c.setClipUrl(l.plot,Y,e),l.layerClipId=X}function K(e){return"M"+P+","+e+"H"+z}function Q(e){return"M"+p._offset+","+e+"h"+p._length}function ee(e){return"M"+e+","+H+"V"+B}function te(e){return"M"+e+","+g._offset+"v"+g._length}function ne(e,t,n){if(!e.showline||a!==e._mainSubplot)return"";if(!e._anchorAxis)return n(e._mainLinePosition);var r=t(e._mainLinePosition);return e.mirror&&(r+=t(e._mainMirrorPosition)),r}for(a in v._plots){l=v._plots[a],p=l.xaxis,g=l.yaxis;var re="M0,0";b(p,a)&&(R=_(p,"left",g,w),P=p._offset-(R?x+R:0),F=_(p,"right",g,w),z=p._offset+p._length+(F?x+F:0),N=k(p,g,"bottom"),j=k(p,g,"top"),!(Z=!p._anchorAxis||a!==p._mainSubplot)||"allticks"!==p.mirror&&"all"!==p.mirror||(p._linepositions[a]=[N,j]),re=ne(p,K,Q),Z&&p.showline&&("all"===p.mirror||"allticks"===p.mirror)&&(re+=K(N)+K(j)),l.xlines.style("stroke-width",p._lw+"px").call(s.stroke,p.showline?p.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",re);var ae="M0,0";b(g,a)&&(U=_(g,"bottom",p,w),B=g._offset+g._length+(U?x:0),q=_(g,"top",p,w),H=g._offset-(q?x:0),V=k(g,p,"left"),G=k(g,p,"right"),!(Z=!g._anchorAxis||a!==g._mainSubplot)||"allticks"!==g.mirror&&"all"!==g.mirror||(g._linepositions[a]=[V,G]),ae=ne(g,ee,te),Z&&g.showline&&("all"===g.mirror||"allticks"===g.mirror)&&(ae+=ee(V)+ee(G)),l.ylines.style("stroke-width",g._lw+"px").call(s.stroke,g.showline?g.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",ae)}return h.makeClipPaths(e),i.previousPromises(e)}function b(e,t){return(e.ticks||e.showline)&&(t===e._mainSubplot||"all"===e.mirror||"allticks"===e.mirror)}function w(e,t,n){if(!n.showline||!n._lw)return!1;if("all"===n.mirror||"allticks"===n.mirror)return!0;var r=n._anchorAxis;if(!r)return!1;var a=f.FROM_BL[t];return n.side===t?r.domain[a]===e.domain[a]:n.mirror&&r.domain[1-a]===e.domain[1-a]}function _(e,t,n,r){if(w(e,t,n))return n._lw;for(var a=0;a<r.length;a++){var i=r[a];if(i._mainAxis===n._mainAxis&&w(e,t,i))return i._lw}return 0}function k(e,t){var n=e.title,r=e._size,a=0;switch("start"===t?a=n.pad.l:"end"===t&&(a=-n.pad.r),n.xref){case"paper":return r.l+r.w*n.x+a;case"container":default:return e.width*n.x+a}}function T(e,t){var n=e.title,r=e._size,a=0;if("0em"!==t&&t?t===f.CAP_SHIFT+"em"&&(a=n.pad.t):a=-n.pad.b,"auto"===n.y)return r.t/2;switch(n.yref){case"paper":return r.t+r.h-r.h*n.y+a;case"container":default:return e.height-e.height*n.y+a}}t.layoutStyles=function(e){return o.syncOrAsync([i.doAutoMargin,x],e)},t.drawMainTitle=function(e){var t=e._fullLayout,n=function(e){var t=e.title,n="middle";o.isRightAnchor(t)?n="end":o.isLeftAnchor(t)&&(n="start");return n}(t),r=function(e){var t=e.title,n="0em";o.isTopAnchor(t)?n=f.CAP_SHIFT+"em":o.isMiddleAnchor(t)&&(n=f.MID_SHIFT+"em");return n}(t);u.draw(e,"gtitle",{propContainer:t,propName:"title.text",placeholder:t._dfltTitle.plot,attributes:{x:k(t,n),y:T(t,r),"text-anchor":n,dy:r}})},t.doTraceStyle=function(e){var n,r=e.calcdata,o=[];for(n=0;n<r.length;n++){var s=r[n],c=s[0]||{},u=c.trace||{},d=u._module||{},h=d.arraysToCalcdata;h&&h(s,u);var f=d.editStyle;f&&o.push({fn:f,cd0:c})}if(o.length){for(n=0;n<o.length;n++){var p=o[n];p.fn(e,p.cd0)}l(e),t.redrawReglTraces(e)}return i.style(e),a.getComponentMethod("legend","draw")(e),i.previousPromises(e)},t.doColorBars=function(e){return a.getComponentMethod("colorbar","draw")(e),i.previousPromises(e)},t.layoutReplot=function(e){var t=e.layout;return e.layout=void 0,a.call("plot",e,"",t)},t.doLegend=function(e){return a.getComponentMethod("legend","draw")(e),i.previousPromises(e)},t.doTicksRelayout=function(e){return h.draw(e,"redraw"),e._fullLayout._hasOnlyLargeSploms&&(a.subplotsRegistry.splom.updateGrid(e),l(e),t.redrawReglTraces(e)),t.drawMainTitle(e),i.previousPromises(e)},t.doModeBar=function(e){var t=e._fullLayout;d.manage(e);for(var n=0;n<t._basePlotModules.length;n++){var r=t._basePlotModules[n].updateFx;r&&r(e)}return i.previousPromises(e)},t.doCamera=function(e){for(var t=e._fullLayout,n=t._subplots.gl3d,r=0;r<n.length;r++){var a=t[n[r]];a._scene.setViewport(a)}},t.drawData=function(e){var n=e._fullLayout;l(e);for(var r=n._basePlotModules,o=0;o<r.length;o++)r[o].plot(e);return t.redrawReglTraces(e),i.style(e),a.getComponentMethod("shapes","draw")(e),a.getComponentMethod("annotations","draw")(e),a.getComponentMethod("images","draw")(e),n._replotting=!1,i.previousPromises(e)},t.redrawReglTraces=function(e){var t=e._fullLayout;if(t._has("regl")){var n,r,a=e._fullData,i=[],l=[];for(t._hasOnlyLargeSploms&&t._splomGrid.draw(),n=0;n<a.length;n++){var s=a[n];!0===s.visible&&0!==s._length&&("splom"===s.type?t._splomScenes[s.uid].draw():"scattergl"===s.type?o.pushUnique(i,s.xaxis+s.yaxis):"scatterpolargl"===s.type&&o.pushUnique(l,s.subplot))}for(n=0;n<i.length;n++)(r=t._plots[i[n]])._scene&&r._scene.draw();for(n=0;n<l.length;n++)(r=t[l[n]]._subplot)._scene&&r._scene.draw()}},t.doAutoRangeAndConstraints=function(e){for(var t,n,r=e._fullLayout,a=h.list(e,"",!0),i=r._axisMatchGroups||[],l={},s=0;s<a.length;s++)t=a[s],v(e,t),m(e,t),l[t._id]=1;g(e);e:for(var c=0;c<i.length;c++){var u,d=i[c],f=null;for(u in d)if(l[(t=h.getFromId(e,u))._id]){if(!1===t.autorange)continue e;n=o.simpleMap(t.range,t.r2l),f?f[0]<f[1]?(f[0]=Math.min(f[0],n[0]),f[1]=Math.max(f[1],n[1])):(f[0]=Math.max(f[0],n[0]),f[1]=Math.min(f[1],n[1])):f=n}for(u in d)(t=h.getFromId(e,u)).range=o.simpleMap(f,t.l2r),t._input.range=t.range.slice(),t.setScale()}},t.finalDraw=function(e){a.getComponentMethod("rangeslider","draw")(e),a.getComponentMethod("rangeselector","draw")(e)},t.drawMarginPushers=function(e){a.getComponentMethod("legend","draw")(e),a.getComponentMethod("rangeselector","draw")(e),a.getComponentMethod("sliders","draw")(e),a.getComponentMethod("updatemenus","draw")(e),a.getComponentMethod("colorbar","draw")(e)}},oBF0:function(e,t,n){"use strict";var r=n("GbLo"),a=n("avjU").isArrayOrTypedArray;t.aggNums=function(e,n,i,o){var l,s;if((!o||o>i.length)&&(o=i.length),r(n)||(n=!1),a(i[0])){for(s=new Array(o),l=0;l<o;l++)s[l]=t.aggNums(e,n,i[l]);i=s}for(l=0;l<o;l++)r(n)?r(i[l])&&(n=e(+n,+i[l])):n=i[l];return n},t.len=function(e){return t.aggNums((function(e){return e+1}),0,e)},t.mean=function(e,n){return n||(n=t.len(e)),t.aggNums((function(e,t){return e+t}),0,e)/n},t.midRange=function(e){if(void 0!==e&&0!==e.length)return(t.aggNums(Math.max,null,e)+t.aggNums(Math.min,null,e))/2},t.variance=function(e,n,a){return n||(n=t.len(e)),r(a)||(a=t.mean(e,n)),t.aggNums((function(e,t){return e+Math.pow(t-a,2)}),0,e)/n},t.stdev=function(e,n,r){return Math.sqrt(t.variance(e,n,r))},t.median=function(e){var n=e.slice().sort();return t.interp(n,.5)},t.interp=function(e,t){if(!r(t))throw"n should be a finite number";if((t=t*e.length-.5)<0)return e[0];if(t>e.length-1)return e[e.length-1];var n=t%1;return n*e[Math.ceil(t)]+(1-n)*e[Math.floor(t)]}},oYsm:function(e,t,n){"use strict";e.exports={attributes:n("yZ/U"),layoutAttributes:n("dnh+"),supplyDefaults:n("yv8l").supplyDefaults,crossTraceDefaults:n("yv8l").crossTraceDefaults,supplyLayoutDefaults:n("1YsL"),calc:n("JU33"),crossTraceCalc:n("Opyf"),plot:n("NNjz"),style:n("gGJ9").style,hoverPoints:n("jxKh"),eventData:n("b5aN"),selectPoints:n("cADB"),moduleType:"trace",name:"funnel",basePlotModule:n("kc20"),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{description:["Visualize stages in a process using length-encoded bars. This trace can be used","to show data in either a part-to-whole representation wherein each item appears",'in a single stage, or in a "drop-off" representation wherein each item appears in','each stage it traversed. See also the "funnelarea" trace type for a different',"approach to visualizing funnel data."].join(" ")}}},oi9M:function(e,t,n){"use strict";e.exports=function(e){e._responsiveChartHandler&&(window.removeEventListener("resize",e._responsiveChartHandler),delete e._responsiveChartHandler)}},oois:function(e,t,n){"use strict";var r=n("GbLo"),a=n("teMc"),i=n("u3HJ"),o=n("/CZE"),l=n("QkhT"),s=n("ywRt"),c=n("Tr0U"),u=n("W0H3").version,d={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 n,h,f,p;function g(e){return!(e in t)||o.validate(t[e],d[e])}if(t=t||{},o.isPlainObject(e)?(n=e.data||[],h=e.layout||{},f=e.config||{},p={}):(e=o.getGraphDiv(e),n=o.extendDeep([],e.data),h=o.extendDeep({},e.layout),f=e._context,p=e._fullLayout||{}),!g("width")&&null!==t.width||!g("height")&&null!==t.height)throw new Error("Height and width should be pixel values.");if(!g("format"))throw new Error("Image format is not jpeg, png, svg or webp.");var v={};function m(e,n){return o.coerce(t,v,d,e,n)}var y=m("format"),x=m("width"),b=m("height"),w=m("scale"),_=m("setBackground"),k=m("imageDataOnly"),T=document.createElement("div");T.style.position="absolute",T.style.left="-5000px",document.body.appendChild(T);var M=o.extendFlat({},h);x?M.width=x:null===t.width&&r(p.width)&&(M.width=p.width),b?M.height=b:null===t.height&&r(p.height)&&(M.height=p.height);var A=o.extendFlat({},f,{_exportedPlot:!0,staticPlot:!0,setBackground:_}),S=l.getRedrawFunc(T);function C(){return new Promise((function(e){setTimeout(e,l.getDelay(T._fullLayout))}))}function L(){return new Promise((function(e,t){var n=s(T,y,w),r=T._fullLayout.width,d=T._fullLayout.height;function h(){a.purge(T),document.body.removeChild(T)}if("full-json"===y){var f=i.graphJson(T,!1,"keepdata","object",!0,!0);return f.version=u,f=JSON.stringify(f),h(),e(k?f:l.encodeJSON(f))}if(h(),"svg"===y)return e(k?n:l.encodeSVG(n));var p=document.createElement("canvas");p.id=o.randstr(),c({format:y,width:r,height:d,scale:w,canvas:p,svg:n,promise:!0}).then(e).catch(t)}))}return new Promise((function(e,t){a.plot(T,n,M,A).then(S).then(C).then(L).then((function(t){e(function(e){return k?e.replace(l.IMAGE_URL_PREFIX,""):e}(t))})).catch((function(e){t(e)}))}))}},p96X:function(e,t,n){"use strict";var r=n("Nx4I");e.exports=function(e){for(var t,n,a=r.layoutArrayContainers,i=r.layoutArrayRegexes,o=e.split("[")[0],l=0;l<i.length;l++)if((n=e.match(i[l]))&&0===n.index){t=n[0];break}if(t||(t=a[a.indexOf(o)]),!t)return!1;var s=e.substr(t.length);return s?!!(n=s.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&&{array:t,index:Number(n[1]),property:n[3]||""}:{array:t,index:"",property:""}}},pB2H:function(e,t,n){"use strict";var r=n("bljh"),a=n("pwgW"),i=n("k6aH").resizeText;e.exports=function(e){var t=e._fullLayout._funnelarealayer.selectAll(".trace");i(e,t,"funnelarea"),t.each((function(e){var t=e[0].trace,n=r.select(this);n.style({opacity:t.opacity}),n.selectAll("path.surface").each((function(e){r.select(this).call(a,e,t)}))}))}},pGKX:function(e,t,n){"use strict";var r=n("mEVB"),a=n("kn30").hoverlabel,i=n("kJIm").extendFlat;e.exports={hoverlabel:{bgcolor:i({},a.bgcolor,{arrayOk:!0,description:"Sets the background color of the hover labels for this trace"}),bordercolor:i({},a.bordercolor,{arrayOk:!0,description:"Sets the border color of the hover labels for this trace."}),font:r({arrayOk:!0,editType:"none",description:"Sets the font used in hover labels."}),align:i({},a.align,{arrayOk:!0}),namelength:i({},a.namelength,{arrayOk:!0}),editType:"none"}}},pMAR:function(e,t,n){"use strict";var r=n("Nx4I");e.exports=function(e,t){for(var n=e._context.locale,a=0;a<2;a++){for(var i=e._context.locales,o=0;o<2;o++){var l=(i[n]||{}).dictionary;if(l){var s=l[t];if(s)return s}i=r.localeRegistry}var c=n.split("-")[0];if(c===n)break;n=c}return t}},pcRN:function(e,t,n){"use strict";var r=n("bljh"),a=n("/CZE"),i=n("Tv4R"),o=n("xMdC"),l=n("kn30"),s=n("6BKz");e.exports={moduleType:"component",name:"fx",constants:n("f7dW"),schema:{layout:l},attributes:n("pGKX"),layoutAttributes:l,supplyLayoutGlobalDefaults:n("u4aF"),supplyDefaults:n("y9Tj"),supplyLayoutDefaults:n("o5Ge"),calc:n("gqVr"),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(e,t,n){return a.castOption(e,t,"hoverlabel."+n)},castHoverinfo:function(e,t,n){return a.castOption(e,n,"hoverinfo",(function(n){return a.coerceHoverinfo({hoverinfo:n},{_module:e._module},t)}))},hover:s.hover,unhover:i.unhover,loneHover:s.loneHover,loneUnhover:function(e){var t=a.isD3Selection(e)?e:r.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:n("f8PX")}},pcxQ:function(e,t,n){"use strict";var r=n("u0qo"),a=n("EHyX").line,i=n("21T9").dash,o=n("kJIm").extendFlat,l=n("plED").templatedArray;e.exports=l("shape",{visible:{valType:"boolean",role:"info",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this shape is visible."].join(" ")},type:{valType:"enumerated",values:["circle","rect","path","line"],role:"info",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",role:"info",editType:"arraydraw",description:"Specifies whether shapes are drawn below or above traces."},xref:o({},r.xref,{description:["Sets the shape's x coordinate axis.","If set to an x axis id (e.g. *x* or *x2*), the `x` position","refers to an x coordinate.","If set to *paper*, the `x` position refers to the distance from","the left side of the plotting area in normalized coordinates","where *0* (*1*) corresponds to the left (right) side.","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",role:"info",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",role:"info",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",role:"info",editType:"calc+arraydraw",description:["Sets the shape's starting x position.","See `type` and `xsizemode` for more info."].join(" ")},x1:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the shape's end x position.","See `type` and `xsizemode` for more info."].join(" ")},yref:o({},r.yref,{description:["Sets the annotation's y coordinate axis.","If set to an y axis id (e.g. *y* or *y2*), the `y` position","refers to an y coordinate","If set to *paper*, the `y` position refers to the distance from","the bottom of the plotting area in normalized coordinates","where *0* (*1*) corresponds to the bottom (top)."].join(" ")}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",role:"info",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",role:"info",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",role:"info",editType:"calc+arraydraw",description:["Sets the shape's starting y position.","See `type` and `ysizemode` for more info."].join(" ")},y1:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the shape's end y position.","See `type` and `ysizemode` for more info."].join(" ")},path:{valType:"string",role:"info",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,role:"info",editType:"arraydraw",description:"Sets the opacity of the shape."},line:{color:o({},a.color,{editType:"arraydraw"}),width:o({},a.width,{editType:"calc+arraydraw"}),dash:o({},i,{editType:"arraydraw"}),role:"info",editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"info",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",role:"info",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",role:"info",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"})},piZS:function(e,t){e.exports=function(e,t,n){var r=[],a=[];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{n&&n.chainStart(e);for(var l={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},c=l,u=0;u<r.length;u++){var d=(v=r[u])[0],h=(v[1],v[v.length-1]);v[v.length-2];if(t.pointsSame(d,i)){if(T(u,!0,!0))break}else if(t.pointsSame(d,o)){if(T(u,!0,!1))break}else if(t.pointsSame(h,i)){if(T(u,!1,!0))break}else if(t.pointsSame(h,o)&&T(u,!1,!1))break}if(c===l)return r.push([i,o]),void(n&&n.chainNew(i,o));if(c===s){n&&n.chainMatch(l.index);var f=l.index,p=l.matches_pt1?o:i,g=l.matches_head,v=r[f],m=g?v[0]:v[v.length-1],y=g?v[1]:v[v.length-2],x=g?v[v.length-1]:v[0],b=g?v[v.length-2]:v[1];return t.pointsCollinear(y,m,p)&&(g?(n&&n.chainRemoveHead(l.index,p),v.shift()):(n&&n.chainRemoveTail(l.index,p),v.pop()),m=y),t.pointsSame(x,p)?(r.splice(f,1),t.pointsCollinear(b,x,m)&&(g?(n&&n.chainRemoveTail(l.index,m),v.pop()):(n&&n.chainRemoveHead(l.index,m),v.shift())),n&&n.chainClose(l.index),void a.push(v)):void(g?(n&&n.chainAddHead(l.index,p),v.unshift(p)):(n&&n.chainAddTail(l.index,p),v.push(p)))}var w=l.index,_=s.index;n&&n.chainConnect(w,_);var k=r[w].length<r[_].length;l.matches_head?s.matches_head?k?(M(w),A(w,_)):(M(_),A(_,w)):A(_,w):s.matches_head?A(w,_):k?(M(w),A(_,w)):(M(_),A(w,_))}function T(e,t,n){return c.index=e,c.matches_head=t,c.matches_pt1=n,c===l?(c=s,!1):(c=null,!0)}function M(e){n&&n.chainReverse(e),r[e].reverse()}function A(e,a){var i=r[e],o=r[a],l=i[i.length-1],s=i[i.length-2],c=o[0],u=o[1];t.pointsCollinear(s,l,c)&&(n&&n.chainRemoveTail(e,l),i.pop(),l=s),t.pointsCollinear(l,c,u)&&(n&&n.chainRemoveHead(a,c),o.shift()),n&&n.chainJoin(e,a),r[e]=i.concat(o),r.splice(a,1)}})),a}},plED:function(e,t,n){"use strict";var r=n("/CZE"),a=n("qHYo"),i={name:{valType:"string",role:"style",editType:"none",description:["When used in a template, named items are created in the output figure","in addition to any items the figure already has in this array.","You can modify these items in the output figure by making your own","item with `templateitemname` matching this `name`","alongside your modifications (including `visible: false` or","`enabled: false` to hide it).","Has no effect outside of a template."].join(" ")}};function o(e){return e&&"string"==typeof e}function l(e){var t=e.length-1;return"s"!==e.charAt(t)&&r.warn("bad argument to arrayDefaultKey: "+e),e.substr(0,e.length-1)+"defaults"}i.templateitemname={valType:"string",role:"info",editType:"calc",description:["Used to refer to a named item in this array in the template. Named","items from the template will be created even without a matching item","in the input figure, but you can modify one by making an item with","`templateitemname` matching its `name`, alongside your modifications","(including `visible: false` or `enabled: false` to hide it).","If there is no template or no matching item, this item will be","hidden unless you explicitly show it with `visible: true`."].join(" ")},t.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=i.name,t.templateitemname=i.templateitemname,t},t.traceTemplater=function(e){var t,n,i={};for(t in e)n=e[t],Array.isArray(n)&&n.length&&(i[t]=0);return{newTrace:function(o){var l={type:t=r.coerce(o,{},a,"type"),_template:null};if(t in i){n=e[t];var s=i[t]%n.length;i[t]++,l._template=n[s]}return l}}},t.newContainer=function(e,t,n){var a=e._template,i=a&&(a[t]||n&&a[n]);return r.isPlainObject(i)||(i=null),e[t]={_template:i}},t.arrayTemplater=function(e,t,n){var r=e._template,a=r&&r[l(t)],i=r&&r[t];Array.isArray(i)&&i.length||(i=[]);var s={};return{newItem:function(e){var t={name:e.name,_input:e},r=t.templateitemname=e.templateitemname;if(!o(r))return t._template=a,t;for(var l=0;l<i.length;l++){var c=i[l];if(c.name===r)return s[r]=1,t._template=c,t}return t[n]=e[n]||!1,t._template=!1,t},defaultItems:function(){for(var e=[],t=0;t<i.length;t++){var n=i[t],r=n.name;if(o(r)&&!s[r]){var a={_template:n,name:r,_input:{_templateitemname:r}};a.templateitemname=n.templateitemname,e.push(a),s[r]=1}}return e}}},t.arrayDefaultKey=l,t.arrayEditor=function(e,t,n){var a=(r.nestedProperty(e,t).get()||[]).length,i=n._index,o=i>=a&&(n._input||{})._templateitemname;o&&(i=a);var l,s=t+"["+i+"]";function c(){l={},o&&(l[s]={},l[s].templateitemname=o)}function u(e,t){o?r.nestedProperty(l[s],e).set(t):l[s+"."+e]=t}function d(){var e=l;return c(),e}return c(),{modifyBase:function(e,t){l[e]=t},modifyItem:u,getUpdateObj:d,applyUpdate:function(t,n){t&&u(t,n);var a=d();for(var i in a)r.nestedProperty(e,i).set(a[i])}}}},"poX/":function(e,t,n){"use strict";var r=n("mEVB"),a=n("W2jp"),i=n("37PH"),o=n("rIcZ"),l=n("grU7"),s=n("kJIm").extendFlat,c=r({editType:"calc",description:["Sets the global font.","Note that fonts used in traces and other","layout components inherit from the global font."].join(" ")});c.family.dflt='"Open Sans", verdana, arial, sans-serif',c.size.dflt=12,c.color.dflt=i.defaultLine,e.exports={font:c,title:{text:{valType:"string",role:"info",editType:"layoutstyle",description:["Sets the plot's title.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:r({editType:"layoutstyle",description:["Sets the title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),xref:{valType:"enumerated",dflt:"container",values:["container","paper"],role:"info",editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],role:"info",editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},x:{valType:"number",min:0,max:1,dflt:.5,role:"style",editType:"layoutstyle",description:["Sets the x position with respect to `xref` in normalized","coordinates from *0* (left) to *1* (right)."].join(" ")},y:{valType:"number",min:0,max:1,dflt:"auto",role:"style",editType:"layoutstyle",description:["Sets the y position with respect to `yref` in normalized","coordinates from *0* (bottom) to *1* (top).","*auto* places the baseline of the title onto the","vertical center of the top margin."].join(" ")},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],role:"info",editType:"layoutstyle",description:["Sets the title's horizontal alignment with respect to its x position.","*left* means that the title starts at x,","*right* means that the title ends at x","and *center* means that the title's center is at x.","*auto* divides `xref` by three and calculates the `xanchor`","value automatically based on the value of `x`."].join(" ")},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],role:"info",editType:"layoutstyle",description:["Sets the title's vertical alignment with respect to its y position.","*top* means that the title's cap line is at y,","*bottom* means that the title's baseline is at y","and *middle* means that the title's midline is at y.","*auto* divides `yref` by three and calculates the `yanchor`","value automatically based on the value of `y`."].join(" ")},pad:s(l({editType:"layoutstyle"}),{description:["Sets the padding of the title.","Each padding value only applies when the corresponding","`xanchor`/`yanchor` value is set accordingly. E.g. for left","padding to take effect, `xanchor` must be set to *left*.","The same rule applies if `xanchor`/`yanchor` is determined automatically.","Padding is muted if the respective anchor value is *middle*/*center*."].join(" ")}),editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,role:"info",editType:"plot",description:["Determines how the font size for various text","elements are uniformed between each trace type.","If the computed text sizes were smaller than","the minimum size defined by `uniformtext.minsize`","using *hide* option hides the text; and","using *show* option shows the text without further downscaling.","Please note that if the size defined by `minsize` is greater than","the font size defined by trace, then the `minsize` is used."].join(" ")},minsize:{valType:"number",min:0,dflt:0,role:"info",editType:"plot",description:["Sets the minimum text size between traces of the same type."].join(" ")},editType:"plot"},autosize:{valType:"boolean",role:"info",dflt:!1,editType:"none",description:["Determines whether or not a layout width or height","that has been left undefined by the user","is initialized on each relayout.","Note that, regardless of this attribute,","an undefined layout width or height","is always initialized on the first call to plot."].join(" ")},width:{valType:"number",role:"info",min:10,dflt:700,editType:"plot",description:["Sets the plot's width (in px)."].join(" ")},height:{valType:"number",role:"info",min:10,dflt:450,editType:"plot",description:["Sets the plot's height (in px)."].join(" ")},margin:{l:{valType:"number",role:"info",min:0,dflt:80,editType:"plot",description:"Sets the left margin (in px)."},r:{valType:"number",role:"info",min:0,dflt:80,editType:"plot",description:"Sets the right margin (in px)."},t:{valType:"number",role:"info",min:0,dflt:100,editType:"plot",description:"Sets the top margin (in px)."},b:{valType:"number",role:"info",min:0,dflt:80,editType:"plot",description:"Sets the bottom margin (in px)."},pad:{valType:"number",role:"info",min:0,dflt:0,editType:"plot",description:["Sets the amount of padding (in px)","between the plotting area and the axis lines"].join(" ")},autoexpand:{valType:"boolean",role:"info",dflt:!0,editType:"plot",description:["Turns on/off margin expansion computations.","Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider","are allowed to push the margins by defaults."].join(" ")},editType:"plot"},paper_bgcolor:{valType:"color",role:"style",dflt:i.background,editType:"plot",description:"Sets the background color of the paper where the graph is drawn."},plot_bgcolor:{valType:"color",role:"style",dflt:i.background,editType:"layoutstyle",description:["Sets the background color of the plotting area in-between x and y axes."].join(" ")},separators:{valType:"string",role:"style",editType:"plot",description:["Sets the decimal and thousand separators.","For example, *. * puts a '.' before decimals and a space","between thousands. In English locales, dflt is *.,* but","other locales may alter this default."].join(" ")},hidesources:{valType:"boolean",role:"info",dflt:!1,editType:"plot",description:["Determines whether or not a text link citing the data source is","placed at the bottom-right cored of the figure.","Has only an effect only on graphs that have been generated via","forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise)."].join(" ")},showlegend:{valType:"boolean",role:"info",editType:"legend",description:["Determines whether or not a legend is drawn.","Default is `true` if there is a trace to show and any of these:","a) Two or more traces would by default be shown in the legend.","b) One pie trace is shown in the legend.","c) One trace is explicitly given with `showlegend: true`."].join(" ")},colorway:{valType:"colorlist",dflt:i.defaults,role:"style",editType:"calc",description:"Sets the default trace colors."},datarevision:{valType:"any",role:"info",editType:"calc",description:["If provided, a changed value tells `Plotly.react` that","one or more data arrays has changed. This way you can modify","arrays in-place rather than making a complete new copy for an","incremental change.","If NOT provided, `Plotly.react` assumes that data arrays are","being treated as immutable, thus any data array with a","different identity from its predecessor contains new data."].join(" ")},uirevision:{valType:"any",role:"info",editType:"none",description:["Used to allow user interactions with the plot to persist after","`Plotly.react` calls that are unaware of these interactions.","If `uirevision` is omitted, or if it is given and it changed from","the previous `Plotly.react` call, the exact new figure is used.","If `uirevision` is truthy and did NOT change, any attribute","that has been affected by user interactions and did not receive a","different value in the new figure will keep the interaction value.","`layout.uirevision` attribute serves as the default for","`uirevision` attributes in various sub-containers. For finer","control you can set these sub-attributes directly. For example,","if your app separately controls the data on the x and y axes you","might set `xaxis.uirevision=*time*` and `yaxis.uirevision=*cost*`.","Then if only the y data is changed, you can update","`yaxis.uirevision=*quantity*` and the y axis range will reset but","the x axis range will retain any user-driven zoom."].join(" ")},editrevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of user-driven changes in `editable: true`","configuration, other than trace names and axis titles.","Defaults to `layout.uirevision`."].join(" ")},selectionrevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of user-driven changes in selected points","from all traces."].join(" ")},template:{valType:"any",role:"info",editType:"calc",description:["Default attributes to be applied to the plot. Templates can be","created from existing plots using `Plotly.makeTemplate`, or","created manually. They should be objects with format:","`{layout: layoutTemplate, data: {[type]: [traceTemplate, ...]}, ...}`","`layoutTemplate` and `traceTemplate` are objects matching the","attribute structure of `layout` and a data trace. ","Trace templates are applied cyclically to traces of each type.","Container arrays (eg `annotations`) have special handling:","An object ending in `defaults` (eg `annotationdefaults`) is applied","to each array item. But if an item has a `templateitemname` key","we look in the template array for an item with matching `name` and","apply that instead. If no matching `name` is found we mark the item","invisible. Any named template item not referenced is appended to","the end of the array, so you can use this for a watermark annotation","or a logo image, for example. To omit one of these items on the plot,","make an item with matching `templateitemname` and `visible: false`."].join(" ")},modebar:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",role:"info",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",role:"style",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",role:"style",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",role:"style",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",role:"info",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(" ")},editType:"modebar"},newshape:o.newshape,activeshape:o.activeshape,meta:{valType:"any",arrayOk:!0,role:"info",editType:"plot",description:["Assigns extra meta information that can be used in various `text` attributes.","Attributes such as the graph, axis and colorbar `title.text`, annotation `text`","`trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text","all support `meta`. One can access `meta` fields using template strings:","`%{meta[i]}` where `i` is the index of the `meta`","item in question.","`meta` can also be an object for example `{key: value}` which can be accessed","%{meta[key]}."].join(" ")},transition:s({},a.transition,{description:["Sets transition options used during Plotly.react updates."].join(" "),editType:"none"}),_deprecated:{title:{valType:"string",role:"info",editType:"layoutstyle",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the contents of the title, please use `title.text` now."].join(" ")},titlefont:r({editType:"layoutstyle",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}}},pty9:function(e,t){e.exports=function(){var e,t=0,n=!1;function r(t,n){return e.list.push({type:t,data:n?JSON.parse(JSON.stringify(n)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(e,t){return r("check",{seg1:e,seg2:t})},segmentChop:function(e,t){return r("div_seg",{seg:e,pt:t}),r("chop",{seg:e,pt:t})},statusRemove:function(e){return r("pop_seg",{seg:e})},segmentUpdate:function(e){return r("seg_update",{seg:e})},segmentNew:function(e,t){return r("new_seg",{seg:e,primary:t})},segmentRemove:function(e){return r("rem_seg",{seg:e})},tempStatus:function(e,t,n){return r("temp_status",{seg:e,above:t,below:n})},rewind:function(e){return r("rewind",{seg:e})},status:function(e,t,n){return r("status",{seg:e,above:t,below:n})},vert:function(t){return t===n?e:(n=t,r("vert",{x:t}))},log:function(e){return"string"!=typeof e&&(e=JSON.stringify(e,!1," ")),r("log",{txt:e})},reset:function(){return r("reset")},selected:function(e){return r("selected",{segs:e})},chainStart:function(e){return r("chain_start",{seg:e})},chainRemoveHead:function(e,t){return r("chain_rem_head",{index:e,pt:t})},chainRemoveTail:function(e,t){return r("chain_rem_tail",{index:e,pt:t})},chainNew:function(e,t){return r("chain_new",{pt1:e,pt2:t})},chainMatch:function(e){return r("chain_match",{index:e})},chainClose:function(e){return r("chain_close",{index:e})},chainAddHead:function(e,t){return r("chain_add_head",{index:e,pt:t})},chainAddTail:function(e,t){return r("chain_add_tail",{index:e,pt:t})},chainConnect:function(e,t){return r("chain_con",{index1:e,index2:t})},chainReverse:function(e){return r("chain_rev",{index:e})},chainJoin:function(e,t){return r("chain_join",{index1:e,index2:t})},done:function(){return r("done")}}}},pwgW:function(e,t,n){"use strict";var r=n("0RW4"),a=n("WeBh").castOption;e.exports=function(e,t,n){var i=n.marker.line,o=a(i.color,t.pts)||r.defaultLine,l=a(i.width,t.pts)||0;e.style("stroke-width",l).call(r.fill,t.color).call(r.stroke,o)}},qHYo:function(e,t,n){"use strict";var r=n("pGKX");e.exports={type:{valType:"enumerated",role:"info",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],role:"info",dflt:!0,editType:"calc",description:["Determines whether or not this trace is visible.","If *legendonly*, the trace is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")},showlegend:{valType:"boolean",role:"info",dflt:!0,editType:"style",description:["Determines whether or not an item corresponding to this","trace is shown in the legend."].join(" ")},legendgroup:{valType:"string",role:"info",dflt:"",editType:"style",description:["Sets the legend group for this trace.","Traces part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")},opacity:{valType:"number",role:"style",min:0,max:1,dflt:1,editType:"style",description:"Sets the opacity of the trace."},name:{valType:"string",role:"info",editType:"style",description:["Sets the trace name.","The trace name appear as the legend item and on hover."].join(" ")},uid:{valType:"string",role:"info",editType:"plot",anim:!0,description:["Assign an id to this trace,","Use this to provide object constancy between traces during animations","and transitions."].join(" ")},ids:{valType:"data_array",editType:"calc",anim:!0,description:["Assigns id labels to each datum.","These ids for object constancy of data points during animation.","Should be an array of strings, not numbers or any other type."].join(" ")},customdata:{valType:"data_array",editType:"calc",description:["Assigns extra data each datum.","This may be useful when listening to hover, click and selection events.","Note that, *scatter* traces also appends customdata items in the markers","DOM elements"].join(" ")},meta:{valType:"any",arrayOk:!0,role:"info",editType:"plot",description:["Assigns extra meta information associated with this trace","that can be used in various text attributes.","Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text`","`rangeselector`, `updatemenues` and `sliders` `label` text","all support `meta`.","To access the trace `meta` values in an attribute in the same trace, simply use","`%{meta[i]}` where `i` is the index or key of the `meta`","item in question.","To access trace `meta` in layout attributes, use","`%{data[n[.meta[i]}` where `i` is the index or key of the `meta`","and `n` is the trace index."].join(" ")},selectedpoints:{valType:"any",role:"info",editType:"calc",description:["Array containing integer indices of selected points.","Has an effect only for traces that support selections.","Note that an empty array means an empty selection where the `unselected`","are turned on for all points, whereas, any other non-array values means no","selection all where the `selected` and `unselected` styles have no effect."].join(" ")},hoverinfo:{valType:"flaglist",role:"info",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none",description:["Determines which trace information appear on hover.","If `none` or `skip` are set, no information is displayed upon hovering.","But, if `none` is set, click and hover events are still fired."].join(" ")},hoverlabel:r.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,role:"info",editType:"calc",description:["The stream id number links a data trace on a plot with a stream.","See https://chart-studio.plotly.com/settings for more details."].join(" ")},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,role:"info",editType:"calc",description:["Sets the maximum number of points to keep on the plots from an","incoming stream.","If `maxpoints` is set to *50*, only the newest 50 points will","be displayed on the plot."].join(" ")},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc",description:["An array of operations that manipulate the trace data,","for example filtering or sorting the data arrays."].join(" ")},uirevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of some user-driven changes to the trace:","`constraintrange` in `parcoords` traces, as well as some","`editable: true` modifications such as `name` and `colorbar.title`.","Defaults to `layout.uirevision`.","Note that other user-driven trace attribute changes are controlled","by `layout` attributes:","`trace.visible` is controlled by `layout.legend.uirevision`,","`selectedpoints` is controlled by `layout.selectionrevision`,","and `colorbar.(x|y)` (accessible with `config: {editable: true}`)","is controlled by `layout.editrevision`.","Trace changes are tracked by `uid`, which only falls back on trace","index if no `uid` is provided. So if your app can add/remove traces","before the end of the `data` array, such that the same trace has a","different index, you can still preserve user-driven changes if you","give each trace a `uid` that stays with it as it moves."].join(" ")}}},"qPk+":function(e,t,n){"use strict";var r=n("u3HJ");t.name="funnelarea",t.plot=function(e,n,a,i){r.plotBasePlot(t.name,e,n,a,i)},t.clean=function(e,n,a,i){r.cleanBasePlot(t.name,e,n,a,i)}},qTWP:function(e,t,n){"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}]},qc20:function(e,t,n){"use strict";var r=n("GbLo"),a=n("/CZE"),i=n("kZ5o"),o=n("gfA5").defaults,l=n("HByh").handleText;function s(e,t){var n=Array.isArray(e),i=a.isArrayOrTypedArray(t),o=Math.min(n?e.length:1/0,i?t.length:1/0);if(isFinite(o)||(o=0),o&&i){for(var l,s=0;s<o;s++){var c=t[s];if(r(c)&&c>0){l=!0;break}}l||(o=0)}return{hasLabels:n,hasValues:i,len:o}}e.exports={handleLabelsAndValues:s,supplyDefaults:function(e,t,n,r){function c(n,r){return a.coerce(e,t,i,n,r)}var u=s(c("labels"),c("values")),d=u.len;if(t._hasLabels=u.hasLabels,t._hasValues=u.hasValues,!t._hasLabels&&t._hasValues&&(c("label0"),c("dlabel")),d){t._length=d,c("marker.line.width")&&c("marker.line.color"),c("marker.colors"),c("scalegroup");var h,f=c("text"),p=c("texttemplate");if(p||(h=c("textinfo",Array.isArray(f)?"text+percent":"percent")),c("hovertext"),c("hovertemplate"),p||h&&"none"!==h){var g=c("textposition");l(e,t,r,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||"auto"===g||"outside"===g)&&c("automargin"),("inside"===g||"auto"===g||Array.isArray(g))&&c("insidetextorientation")}o(t,r,c);var v=c("hole");if(c("title.text")){var m=c("title.position",v?"middle center":"top center");v||"middle center"!==m||(t.title.position="top center"),a.coerceFont(c,"title.font",r.font)}c("sort"),c("direction"),c("rotation"),c("pull")}else t.visible=!1}}},qcty:function(e,t,n){"use strict";e.exports={_isLinkedToArray:"frames_entry",group:{valType:"string",role:"info",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",role:"info",description:"A label by which to identify the frame"},traces:{valType:"any",role:"info",description:["A list of trace indices that identify the respective traces in the","data attribute"].join(" ")},baseframe:{valType:"string",role:"info",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",role:"object",description:["A list of traces this frame modifies. The format is identical to the","normal trace definition."].join(" ")},layout:{valType:"any",role:"object",description:["Layout properties which this frame modifies. The format is identical","to the normal layout definition."].join(" ")}}},qeRF:function(e,t,n){"use strict";var r=n("PBw4"),a=n("3oHU"),i=n("Nx4I"),o=n("xMdC").isUnifiedHover,l=n("G767"),s=n("E8TZ");e.exports=function(e){var t=e._fullLayout,n=e._context,u=t._modeBar;if(n.displayModeBar||n.watermark){if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var d,h=n.modeBarButtons;d=Array.isArray(h)&&h.length?function(e){for(var t=0;t<e.length;t++)for(var n=e[t],r=0;r<n.length;r++){var a=n[r];if("string"==typeof a){if(void 0===s[a])throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));e[t][r]=s[a]}}return e}(h):!n.displayModeBar&&n.watermark?[]:function(e){var t=e._fullLayout,n=e._fullData,l=e._context,u=l.modeBarButtonsToRemove,d=l.modeBarButtonsToAdd,h=t._has("cartesian"),f=t._has("gl3d"),p=t._has("geo"),g=t._has("pie"),v=t._has("funnelarea"),m=t._has("gl2d"),y=t._has("ternary"),x=t._has("mapbox"),b=t._has("polar"),w=t._has("sankey"),_=function(e){for(var t=r.list({_fullLayout:e},null,!0),n=0;n<t.length;n++)if(!t[n].fixedrange)return!1;return!0}(t),k=o(t.hovermode),T=[];function M(e){if(e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n];-1===u.indexOf(r)&&t.push(s[r])}T.push(t)}}var A=["toImage"];l.showEditInChartStudio?A.push("editInChartStudio"):l.showSendToCloud&&A.push("sendDataToCloud");M(A);var S=[],C=[],L=[],I=[];(h||m||g||v||y)+p+f+x+b>1?(C=["toggleHover"],L=["resetViews"]):p?(S=["zoomInGeo","zoomOutGeo"],C=["hoverClosestGeo"],L=["resetGeo"]):f?(C=["hoverClosest3d"],L=["resetCameraDefault3d","resetCameraLastSave3d"]):x?(S=["zoomInMapbox","zoomOutMapbox"],C=["toggleHover"],L=["resetViewMapbox"]):m?C=["hoverClosestGl2d"]:g?C=["hoverClosestPie"]:w?(C=["hoverClosestCartesian","hoverCompareCartesian"],L=["resetViewSankey"]):C=["toggleHover"];h&&(C=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]);(function(e){for(var t=0;t<e.length;t++)if(!i.traceIs(e[t],"noHover"))return!1;return!0}(n)||k)&&(C=[]);!h&&!m||_||(S=["zoomIn2d","zoomOut2d","autoScale2d"],"resetViews"!==L[0]&&(L=["resetScale2d"]));f?I=["zoom3d","pan3d","orbitRotation","tableRotation"]:(h||m)&&!_||y?I=["zoom2d","pan2d"]:x||p?I=["pan2d"]:b&&(I=["zoom2d"]);(function(e){for(var t=!1,n=0;n<e.length&&!t;n++){var r=e[n];r._module&&r._module.selectPoints&&(i.traceIs(r,"scatter-like")?(a.hasMarkers(r)||a.hasText(r))&&(t=!0):i.traceIs(r,"box-violin")&&"all"!==r.boxpoints&&"all"!==r.points||(t=!0))}return t})(n)&&I.push("select2d","lasso2d");if(Array.isArray(d)){for(var E=[],O=0;O<d.length;O++){var D=d[O];"string"==typeof D?-1!==c.indexOf(D)&&(t._has("mapbox")||t._has("cartesian"))&&I.push(D):E.push(D)}d=E}return M(I),M(S.concat(L)),M(C),function(e,t){if(t.length)if(Array.isArray(t[0]))for(var n=0;n<t.length;n++)e.push(t[n]);else e.push(t);return e}(T,d)}(e),u?u.update(e,d):t._modeBar=l(e,d)}else u&&(u.destroy(),delete t._modeBar)};var c=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"]},qeth:function(e,t,n){"use strict";e.exports=function(e,t,n,r,a){e.location=t.location,e.z=t.z;var i=r[a];return i.fIn&&i.fIn.properties&&(e.properties=i.fIn.properties),e.ct=i.ct,e}},qixK:function(e,t,n){"use strict";e.exports=n("el8q")},qkdH:function(e,t,n){"use strict";n.r(t),function(e){ /**! * Sortable 1.10.2 * @author RubaXa <trash@rubaxa.org> * @author owenm <owen23355@gmail.com> * @license MIT */ 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})(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function s(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"MultiDrag",(function(){return xt})),n.d(t,"Sortable",(function(){return Be})),n.d(t,"Swap",(function(){return st}));function c(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),h=c(/firefox/i),f=c(/safari/i)&&!c(/chrome/i)&&!c(/android/i),p=c(/iP(ad|od|hone)/i),g=c(/chrome/i)&&c(/android/i),v={capture:!1,passive:!1};function m(e,t,n){e.addEventListener(t,n,!u&&v)}function y(e,t,n){e.removeEventListener(t,n,!u&&v)}function x(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function b(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function w(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&x(e,t):x(e,t))||r&&e===n)return e;if(e===n)break}while(e=b(e))}return null}var _,k=/\s+/g;function T(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(k," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(k," ")}}function M(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function A(e,t){var n="";if("string"==typeof e)n=e;else do{var r=M(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function S(e,t,n){if(e){var r=e.getElementsByTagName(t),a=0,i=r.length;if(n)for(;a<i;a++)n(r[a],a);return r}return[]}function C(){var e=document.scrollingElement;return e||document.documentElement}function L(e,t,n,r,a){if(e.getBoundingClientRect||e===window){var i,o,l,s,c,d,h;if(e!==window&&e!==C()?(o=(i=e.getBoundingClientRect()).top,l=i.left,s=i.bottom,c=i.right,d=i.height,h=i.width):(o=0,l=0,s=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(t||n)&&e!==window&&(a=a||e.parentNode,!u))do{if(a&&a.getBoundingClientRect&&("none"!==M(a,"transform")||n&&"static"!==M(a,"position"))){var f=a.getBoundingClientRect();o-=f.top+parseInt(M(a,"border-top-width")),l-=f.left+parseInt(M(a,"border-left-width")),s=o+i.height,c=l+i.width;break}}while(a=a.parentNode);if(r&&e!==window){var p=A(a||e),g=p&&p.a,v=p&&p.d;p&&(s=(o/=v)+(d/=v),c=(l/=g)+(h/=g))}return{top:o,left:l,bottom:s,right:c,width:h,height:d}}}function I(e,t,n){for(var r=z(e,!0),a=L(e)[t];r;){var i=L(r)[n];if(!("top"===n||"left"===n?a>=i:a<=i))return r;if(r===C())break;r=z(r,!1)}return!1}function E(e,t,n){for(var r=0,a=0,i=e.children;a<i.length;){if("none"!==i[a].style.display&&i[a]!==Be.ghost&&i[a]!==Be.dragged&&w(i[a],n.draggable,e,!1)){if(r===t)return i[a];r++}a++}return null}function O(e,t){for(var n=e.lastElementChild;n&&(n===Be.ghost||"none"===M(n,"display")||t&&!x(n,t));)n=n.previousElementSibling;return n||null}function D(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Be.clone||t&&!x(e,t)||n++;return n}function P(e){var t=0,n=0,r=C();if(e)do{var a=A(e),i=a.a,o=a.d;t+=e.scrollLeft*i,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function z(e,t){if(!e||!e.getBoundingClientRect)return C();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var a=M(n);if(n.clientWidth<n.scrollWidth&&("auto"==a.overflowX||"scroll"==a.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==a.overflowY||"scroll"==a.overflowY)){if(!n.getBoundingClientRect||n===document.body)return C();if(r||t)return n;r=!0}}}while(n=n.parentNode);return C()}function N(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function j(e,t){return function(){if(!_){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),_=setTimeout((function(){_=void 0}),t)}}}function R(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function F(t){var n=window.Polymer,r=e||window.Zepto;return n&&n.dom?n.dom(t).cloneNode(!0):r?r(t).clone(!0)[0]:t.cloneNode(!0)}function B(e,t){M(e,"position","absolute"),M(e,"top",t.top),M(e,"left",t.left),M(e,"width",t.width),M(e,"height",t.height)}function H(e){M(e,"position",""),M(e,"top",""),M(e,"left",""),M(e,"width",""),M(e,"height","")}var V="Sortable"+(new Date).getTime();function G(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==M(e,"display")&&e!==Be.ghost){t.push({target:e,rect:L(e)});var n=o({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=A(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var a=!1,i=0;t.forEach((function(e){var t=0,n=e.target,o=n.fromRect,l=L(n),s=n.prevFromRect,c=n.prevToRect,u=e.rect,d=A(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&N(s,l)&&!N(o,l)&&(u.top-l.top)/(u.left-l.left)==(o.top-l.top)/(o.left-l.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,s,c,r.options)),N(l,o)||(n.prevFromRect=o,n.prevToRect=l,t||(t=r.options.animation),r.animate(n,u,l,t)),t&&(a=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),a?e=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){M(e,"transition",""),M(e,"transform","");var a=A(this.el),i=a&&a.a,o=a&&a.d,l=(t.left-n.left)/(i||1),s=(t.top-n.top)/(o||1);e.animatingX=!!l,e.animatingY=!!s,M(e,"transform","translate3d("+l+"px,"+s+"px,0)"),function(e){e.offsetWidth}(e),M(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),M(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){M(e,"transition",""),M(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var U=[],q={initializeByDefault:!0},Z={mount:function(e){for(var t in q)q.hasOwnProperty(t)&&!(t in e)&&(e[t]=q[t]);U.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var a=e+"Global";U.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][a]&&t[r.pluginName][a](o({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](o({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var a in U.forEach((function(r){var a=r.pluginName;if(e.options[a]||r.initializeByDefault){var o=new r(e,t,e.options);o.sortable=e,o.options=e.options,e[a]=o,i(n,o.defaults)}})),e.options)if(e.options.hasOwnProperty(a)){var o=this.modifyOption(e,a,e.options[a]);void 0!==o&&(e.options[a]=o)}},getEventProperties:function(e,t){var n={};return U.forEach((function(r){"function"==typeof r.eventProperties&&i(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return U.forEach((function(a){e[a.pluginName]&&a.optionListeners&&"function"==typeof a.optionListeners[t]&&(r=a.optionListeners[t].call(e[a.pluginName],n))})),r}};function W(e){var t=e.sortable,n=e.rootEl,r=e.name,a=e.targetEl,i=e.cloneEl,l=e.toEl,s=e.fromEl,c=e.oldIndex,h=e.newIndex,f=e.oldDraggableIndex,p=e.newDraggableIndex,g=e.originalEvent,v=e.putSortable,m=e.extraEventProperties;if(t=t||n&&n[V]){var y,x=t.options,b="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||u||d?(y=document.createEvent("Event")).initEvent(r,!0,!0):y=new CustomEvent(r,{bubbles:!0,cancelable:!0}),y.to=l||n,y.from=s||n,y.item=a||n,y.clone=i,y.oldIndex=c,y.newIndex=h,y.oldDraggableIndex=f,y.newDraggableIndex=p,y.originalEvent=g,y.pullMode=v?v.lastPutMode:void 0;var w=o({},m,Z.getEventProperties(r,t));for(var _ in w)y[_]=w[_];n&&n.dispatchEvent(y),x[b]&&x[b].call(t,y)}}var Y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,a=l(n,["evt"]);Z.pluginEvent.bind(Be)(e,t,o({dragEl:$,parentEl:J,ghostEl:K,rootEl:Q,nextEl:ee,lastDownEl:te,cloneEl:ne,cloneHidden:re,dragStarted:ve,putSortable:ce,activeSortable:Be.active,originalEvent:r,oldIndex:ae,oldDraggableIndex:oe,newIndex:ie,newDraggableIndex:le,hideGhostForTarget:Ne,unhideGhostForTarget:je,cloneNowHidden:function(){re=!0},cloneNowShown:function(){re=!1},dispatchSortableEvent:function(e){X({sortable:t,name:e,originalEvent:r})}},a))};function X(e){W(o({putSortable:ce,cloneEl:ne,targetEl:$,rootEl:Q,oldIndex:ae,oldDraggableIndex:oe,newIndex:ie,newDraggableIndex:le},e))}var $,J,K,Q,ee,te,ne,re,ae,ie,oe,le,se,ce,ue,de,he,fe,pe,ge,ve,me,ye,xe,be,we=!1,_e=!1,ke=[],Te=!1,Me=!1,Ae=[],Se=!1,Ce=[],Le="undefined"!=typeof document,Ie=p,Ee=d||u?"cssFloat":"float",Oe=Le&&!g&&!p&&"draggable"in document.createElement("div"),De=function(){if(Le){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Pe=function(e,t){var n=M(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=E(e,0,t),i=E(e,1,t),o=a&&M(a),l=i&&M(i),s=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+L(a).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+L(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&o.float&&"none"!==o.float){var u="left"===o.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return a&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||s>=r&&"none"===n[Ee]||i&&"none"===n[Ee]&&s+c>r)?"vertical":"horizontal"},ze=function(e){function t(e,n){return function(r,a,i,o){var l=r.options.group.name&&a.options.group.name&&r.options.group.name===a.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,a,i,o),n)(r,a,i,o);var s=(n?r:a).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},a=e.group;a&&"object"==r(a)||(a={name:a}),n.name=a.name,n.checkPull=t(a.pull,!0),n.checkPut=t(a.put),n.revertClone=a.revertClone,e.group=n},Ne=function(){!De&&K&&M(K,"display","none")},je=function(){!De&&K&&M(K,"display","")};Le&&document.addEventListener("click",(function(e){if(_e)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),_e=!1,!1}),!0);var Re=function(e){if($){e=e.touches?e.touches[0]:e;var t=(a=e.clientX,i=e.clientY,ke.some((function(e){if(!O(e)){var t=L(e),n=e[V].options.emptyInsertThreshold,r=a>=t.left-n&&a<=t.right+n,l=i>=t.top-n&&i<=t.bottom+n;return n&&r&&l?o=e:void 0}})),o);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[V]._onDragOver(n)}}var a,i,o},Fe=function(e){$&&$.parentNode[V]._isOutsideThisEl(e.target)};function Be(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=i({},t),e[V]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Pe(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Be.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in Z.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var a in ze(t),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!t.forceFallback&&Oe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?m(e,"pointerdown",this._onTapStart):(m(e,"mousedown",this._onTapStart),m(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(m(e,"dragover",this),m(e,"dragenter",this)),ke.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),i(this,G())}function He(e,t,n,r,a,i,o,l){var s,c,h=e[V],f=h.options.onMove;return!window.CustomEvent||u||d?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=r,s.related=a||t,s.relatedRect=i||L(t),s.willInsertAfter=l,s.originalEvent=o,e.dispatchEvent(s),f&&(c=f.call(h,s,o)),c}function Ve(e){e.draggable=!1}function Ge(){Se=!1}function Ue(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function qe(e){return setTimeout(e,0)}function Ze(e){return clearTimeout(e)}Be.prototype={constructor:Be,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(me=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,$):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,a=r.preventOnFilter,i=e.type,o=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(o||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=r.filter;if(function(e){Ce.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Ce.push(r)}}(n),!$&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled||s.isContentEditable||(l=w(l,r.draggable,n,!1))&&l.animated||te===l)){if(ae=D(l),oe=D(l,r.draggable),"function"==typeof c){if(c.call(this,e,l,this))return X({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),Y("filter",t,{evt:e}),void(a&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=w(s,r.trim(),n,!1))return X({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),Y("filter",t,{evt:e}),!0}))))return void(a&&e.cancelable&&e.preventDefault());r.handle&&!w(s,r.handle,n,!1)||this._prepareDragStart(e,o,l)}}},_prepareDragStart:function(e,t,n){var r,a=this,i=a.el,o=a.options,l=i.ownerDocument;if(n&&!$&&n.parentNode===i){var s=L(n);if(Q=i,J=($=n).parentNode,ee=$.nextSibling,te=n,se=o.group,Be.dragged=$,ue={target:$,clientX:(t||e).clientX,clientY:(t||e).clientY},pe=ue.clientX-s.left,ge=ue.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,$.style["will-change"]="all",r=function(){Y("delayEnded",a,{evt:e}),Be.eventCanceled?a._onDrop():(a._disableDelayedDragEvents(),!h&&a.nativeDraggable&&($.draggable=!0),a._triggerDragStart(e,t),X({sortable:a,name:"choose",originalEvent:e}),T($,o.chosenClass,!0))},o.ignore.split(",").forEach((function(e){S($,e.trim(),Ve)})),m(l,"dragover",Re),m(l,"mousemove",Re),m(l,"touchmove",Re),m(l,"mouseup",a._onDrop),m(l,"touchend",a._onDrop),m(l,"touchcancel",a._onDrop),h&&this.nativeDraggable&&(this.options.touchStartThreshold=4,$.draggable=!0),Y("delayStart",this,{evt:e}),!o.delay||o.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||u))r();else{if(Be.eventCanceled)return void this._onDrop();m(l,"mouseup",a._disableDelayedDrag),m(l,"touchend",a._disableDelayedDrag),m(l,"touchcancel",a._disableDelayedDrag),m(l,"mousemove",a._delayedDragTouchMoveHandler),m(l,"touchmove",a._delayedDragTouchMoveHandler),o.supportPointer&&m(l,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(r,o.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){$&&Ve($),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;y(e,"mouseup",this._disableDelayedDrag),y(e,"touchend",this._disableDelayedDrag),y(e,"touchcancel",this._disableDelayedDrag),y(e,"mousemove",this._delayedDragTouchMoveHandler),y(e,"touchmove",this._delayedDragTouchMoveHandler),y(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?m(document,"pointermove",this._onTouchMove):m(document,t?"touchmove":"mousemove",this._onTouchMove):(m($,"dragend",this),m(Q,"dragstart",this._onDragStart));try{document.selection?qe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(we=!1,Q&&$){Y("dragStarted",this,{evt:t}),this.nativeDraggable&&m(document,"dragover",Fe);var n=this.options;!e&&T($,n.dragClass,!1),T($,n.ghostClass,!0),Be.active=this,e&&this._appendGhost(),X({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(de){this._lastX=de.clientX,this._lastY=de.clientY,Ne();for(var e=document.elementFromPoint(de.clientX,de.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(de.clientX,de.clientY))!==t;)t=e;if($.parentNode[V]._isOutsideThisEl(e),t)do{if(t[V]){if(t[V]._onDragOver({clientX:de.clientX,clientY:de.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);je()}},_onTouchMove:function(e){if(ue){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,a=e.touches?e.touches[0]:e,i=K&&A(K,!0),o=K&&i&&i.a,l=K&&i&&i.d,s=Ie&&be&&P(be),c=(a.clientX-ue.clientX+r.x)/(o||1)+(s?s[0]-Ae[0]:0)/(o||1),u=(a.clientY-ue.clientY+r.y)/(l||1)+(s?s[1]-Ae[1]:0)/(l||1);if(!Be.active&&!we){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(K){i?(i.e+=c-(he||0),i.f+=u-(fe||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");M(K,"webkitTransform",d),M(K,"mozTransform",d),M(K,"msTransform",d),M(K,"transform",d),he=c,fe=u,de=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!K){var e=this.options.fallbackOnBody?document.body:Q,t=L($,!0,Ie,!0,e),n=this.options;if(Ie){for(be=e;"static"===M(be,"position")&&"none"===M(be,"transform")&&be!==document;)be=be.parentNode;be!==document.body&&be!==document.documentElement?(be===document&&(be=C()),t.top+=be.scrollTop,t.left+=be.scrollLeft):be=C(),Ae=P(be)}T(K=$.cloneNode(!0),n.ghostClass,!1),T(K,n.fallbackClass,!0),T(K,n.dragClass,!0),M(K,"transition",""),M(K,"transform",""),M(K,"box-sizing","border-box"),M(K,"margin",0),M(K,"top",t.top),M(K,"left",t.left),M(K,"width",t.width),M(K,"height",t.height),M(K,"opacity","0.8"),M(K,"position",Ie?"absolute":"fixed"),M(K,"zIndex","100000"),M(K,"pointerEvents","none"),Be.ghost=K,e.appendChild(K),M(K,"transform-origin",pe/parseInt(K.style.width)*100+"% "+ge/parseInt(K.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,a=n.options;Y("dragStart",this,{evt:e}),Be.eventCanceled?this._onDrop():(Y("setupClone",this),Be.eventCanceled||((ne=F($)).draggable=!1,ne.style["will-change"]="",this._hideClone(),T(ne,this.options.chosenClass,!1),Be.clone=ne),n.cloneId=qe((function(){Y("clone",n),Be.eventCanceled||(n.options.removeCloneOnHide||Q.insertBefore(ne,$),n._hideClone(),X({sortable:n,name:"clone"}))})),!t&&T($,a.dragClass,!0),t?(_e=!0,n._loopId=setInterval(n._emulateDragOver,50)):(y(document,"mouseup",n._onDrop),y(document,"touchend",n._onDrop),y(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",a.setData&&a.setData.call(n,r,$)),m(document,"drop",n),M($,"transform","translateZ(0)")),we=!0,n._dragStartId=qe(n._dragStarted.bind(n,t,e)),m(document,"selectstart",n),ve=!0,f&&M(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,a,i=this.el,l=e.target,s=this.options,c=s.group,u=Be.active,d=se===c,h=s.sort,f=ce||u,p=this,g=!1;if(!Se){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=w(l,s.draggable,i,!0),N("dragOver"),Be.eventCanceled)return g;if($.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||p._ignoreWhileAnimating===l)return F(!1);if(_e=!1,u&&!s.disabled&&(d?h||(r=!Q.contains($)):ce===this||(this.lastPutMode=se.checkPull(this,u,$,e))&&c.checkPut(this,u,$,e))){if(a="vertical"===this._getDirection(e,l),t=L($),N("dragOverValid"),Be.eventCanceled)return g;if(r)return J=Q,j(),this._hideClone(),N("revert"),Be.eventCanceled||(ee?Q.insertBefore($,ee):Q.appendChild($)),F(!0);var v=O(i,s.draggable);if(!v||function(e,t,n){var r=L(O(n.el,n.options.draggable));return t?e.clientX>r.right+10||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+10}(e,a,this)&&!v.animated){if(v===$)return F(!1);if(v&&i===e.target&&(l=v),l&&(n=L(l)),!1!==He(Q,i,$,t,l,n,e,!!l))return j(),i.appendChild($),J=i,B(),F(!0)}else if(l.parentNode===i){n=L(l);var m,y,x,b=$.parentNode!==i,_=!function(e,t,n){var r=n?e.left:e.top,a=n?e.right:e.bottom,i=n?e.width:e.height,o=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return r===o||a===l||r+i/2===o+s/2}($.animated&&$.toRect||t,l.animated&&l.toRect||n,a),k=a?"top":"left",A=I(l,"top","top")||I($,"top","top"),S=A?A.scrollTop:void 0;if(me!==l&&(y=n[k],Te=!1,Me=!_&&s.invertSwap||b),0!==(m=function(e,t,n,r,a,i,o,l){var s=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,h=!1;if(!o)if(l&&xe<c*a){if(!Te&&(1===ye?s>u+c*i/2:s<d-c*i/2)&&(Te=!0),Te)h=!0;else if(1===ye?s<u+xe:s>d-xe)return-ye}else if(s>u+c*(1-a)/2&&s<d-c*(1-a)/2)return function(e){return D($)<D(e)?1:-1}(t);if((h=h||o)&&(s<u+c*i/2||s>d-c*i/2))return s>u+c/2?1:-1;return 0}(e,l,n,a,_?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Me,me===l))){var C=D($);do{C-=m,x=J.children[C]}while(x&&("none"===M(x,"display")||x===K))}if(0===m||x===l)return F(!1);me=l,ye=m;var E=l.nextElementSibling,P=!1,z=He(Q,i,$,t,l,n,e,P=1===m);if(!1!==z)return 1!==z&&-1!==z||(P=1===z),Se=!0,setTimeout(Ge,30),j(),P&&!E?i.appendChild($):l.parentNode.insertBefore($,P?E:l),A&&R(A,0,S-A.scrollTop),J=$.parentNode,void 0===y||Me||(xe=Math.abs(y-L(l)[k])),B(),F(!0)}if(i.contains($))return F(!1)}return!1}function N(s,c){Y(s,p,o({evt:e,isOwner:d,axis:a?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:h,fromSortable:f,target:l,completed:F,onMove:function(n,r){return He(Q,i,$,t,n,L(n),e,r)},changed:B},c))}function j(){N("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function F(t){return N("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(p),p!==f&&(T($,ce?ce.options.ghostClass:u.options.ghostClass,!1),T($,s.ghostClass,!0)),ce!==p&&p!==Be.active?ce=p:p===Be.active&&ce&&(ce=null),f===p&&(p._ignoreWhileAnimating=l),p.animateAll((function(){N("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(l===$&&!$.animated||l===i&&!l.animated)&&(me=null),s.dragoverBubble||e.rootEl||l===document||($.parentNode[V]._isOutsideThisEl(e.target),!t&&Re(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function B(){ie=D($),le=D($,s.draggable),X({sortable:p,name:"change",toEl:i,newIndex:ie,newDraggableIndex:le,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){y(document,"mousemove",this._onTouchMove),y(document,"touchmove",this._onTouchMove),y(document,"pointermove",this._onTouchMove),y(document,"dragover",Re),y(document,"mousemove",Re),y(document,"touchmove",Re)},_offUpEvents:function(){var e=this.el.ownerDocument;y(e,"mouseup",this._onDrop),y(e,"touchend",this._onDrop),y(e,"pointerup",this._onDrop),y(e,"touchcancel",this._onDrop),y(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ie=D($),le=D($,n.draggable),Y("drop",this,{evt:e}),J=$&&$.parentNode,ie=D($),le=D($,n.draggable),Be.eventCanceled||(we=!1,Me=!1,Te=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ze(this.cloneId),Ze(this._dragStartId),this.nativeDraggable&&(y(document,"drop",this),y(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&M(document.body,"user-select",""),M($,"transform",""),e&&(ve&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),K&&K.parentNode&&K.parentNode.removeChild(K),(Q===J||ce&&"clone"!==ce.lastPutMode)&&ne&&ne.parentNode&&ne.parentNode.removeChild(ne),$&&(this.nativeDraggable&&y($,"dragend",this),Ve($),$.style["will-change"]="",ve&&!we&&T($,ce?ce.options.ghostClass:this.options.ghostClass,!1),T($,this.options.chosenClass,!1),X({sortable:this,name:"unchoose",toEl:J,newIndex:null,newDraggableIndex:null,originalEvent:e}),Q!==J?(ie>=0&&(X({rootEl:J,name:"add",toEl:J,fromEl:Q,originalEvent:e}),X({sortable:this,name:"remove",toEl:J,originalEvent:e}),X({rootEl:J,name:"sort",toEl:J,fromEl:Q,originalEvent:e}),X({sortable:this,name:"sort",toEl:J,originalEvent:e})),ce&&ce.save()):ie!==ae&&ie>=0&&(X({sortable:this,name:"update",toEl:J,originalEvent:e}),X({sortable:this,name:"sort",toEl:J,originalEvent:e})),Be.active&&(null!=ie&&-1!==ie||(ie=ae,le=oe),X({sortable:this,name:"end",toEl:J,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Y("nulling",this),Q=$=J=K=ee=ne=te=re=ue=de=ve=ie=le=ae=oe=me=ye=ce=se=Be.dragged=Be.ghost=Be.clone=Be.active=null,Ce.forEach((function(e){e.checked=!0})),Ce.length=he=fe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":$&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,a=n.length,i=this.options;r<a;r++)w(e=n[r],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||Ue(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,r){var a=n.children[r];w(a,this.options.draggable,n,!1)&&(t[e]=a)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return w(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=Z.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&ze(n)},destroy:function(){Y("destroy",this);var e=this.el;e[V]=null,y(e,"mousedown",this._onTapStart),y(e,"touchstart",this._onTapStart),y(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(y(e,"dragover",this),y(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),ke.splice(ke.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!re){if(Y("hideClone",this),Be.eventCanceled)return;M(ne,"display","none"),this.options.removeCloneOnHide&&ne.parentNode&&ne.parentNode.removeChild(ne),re=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(re){if(Y("showClone",this),Be.eventCanceled)return;Q.contains($)&&!this.options.group.revertClone?Q.insertBefore(ne,$):ee?Q.insertBefore(ne,ee):Q.appendChild(ne),this.options.group.revertClone&&this.animate($,ne),M(ne,"display",""),re=!1}}else this._hideClone()}},Le&&m(document,"touchmove",(function(e){(Be.active||we)&&e.cancelable&&e.preventDefault()})),Be.utils={on:m,off:y,css:M,find:S,is:function(e,t){return!!w(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:j,closest:w,toggleClass:T,clone:F,index:D,nextTick:qe,cancelNextTick:Ze,detectDirection:Pe,getChild:E},Be.get=function(e){return e[V]},Be.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Be.utils=o({},Be.utils,e.utils)),Z.mount(e)}))},Be.create=function(e,t){return new Be(e,t)},Be.version="1.10.2";var We,Ye,Xe,$e,Je,Ke,Qe=[],et=!1;function tt(){Qe.forEach((function(e){clearInterval(e.pid)})),Qe=[]}function nt(){clearInterval(Ke)}var rt,at=j((function(e,t,n,r){if(t.scroll){var a,i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=C(),u=!1;Ye!==n&&(Ye=n,tt(),We=t.scroll,a=t.scrollFn,!0===We&&(We=z(n,!0)));var d=0,h=We;do{var f=h,p=L(f),g=p.top,v=p.bottom,m=p.left,y=p.right,x=p.width,b=p.height,w=void 0,_=void 0,k=f.scrollWidth,T=f.scrollHeight,A=M(f),S=f.scrollLeft,I=f.scrollTop;f===c?(w=x<k&&("auto"===A.overflowX||"scroll"===A.overflowX||"visible"===A.overflowX),_=b<T&&("auto"===A.overflowY||"scroll"===A.overflowY||"visible"===A.overflowY)):(w=x<k&&("auto"===A.overflowX||"scroll"===A.overflowX),_=b<T&&("auto"===A.overflowY||"scroll"===A.overflowY));var E=w&&(Math.abs(y-i)<=l&&S+x<k)-(Math.abs(m-i)<=l&&!!S),O=_&&(Math.abs(v-o)<=l&&I+b<T)-(Math.abs(g-o)<=l&&!!I);if(!Qe[d])for(var D=0;D<=d;D++)Qe[D]||(Qe[D]={});Qe[d].vx==E&&Qe[d].vy==O&&Qe[d].el===f||(Qe[d].el=f,Qe[d].vx=E,Qe[d].vy=O,clearInterval(Qe[d].pid),0==E&&0==O||(u=!0,Qe[d].pid=setInterval(function(){r&&0===this.layer&&Be.active._onTouchMove(Je);var t=Qe[this.layer].vy?Qe[this.layer].vy*s:0,n=Qe[this.layer].vx?Qe[this.layer].vx*s:0;"function"==typeof a&&"continue"!==a.call(Be.dragged.parentNode[V],n,t,e,Je,Qe[this.layer].el)||R(Qe[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==c&&(h=z(h,!1)));et=u}}),30),it=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,a=e.activeSortable,i=e.dispatchSortableEvent,o=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||a;o();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function ot(){}function lt(){}function st(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;rt=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,a=e.activeSortable,i=e.changed,o=e.cancel;if(a.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var c=rt;!1!==r(n)?(T(n,s.swapClass,!0),rt=n):rt=null,c&&c!==rt&&T(c,s.swapClass,!1)}i(),t(!0),o()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,a=n||this.sortable,i=this.options;rt&&T(rt,i.swapClass,!1),rt&&(i.swap||n&&n.options.swap)&&r!==rt&&(a.captureAnimationState(),a!==t&&t.captureAnimationState(),function(e,t){var n,r,a=e.parentNode,i=t.parentNode;if(!a||!i||a.isEqualNode(t)||i.isEqualNode(e))return;n=D(e),r=D(t),a.isEqualNode(i)&&n<r&&r++;a.insertBefore(t,a.children[n]),i.insertBefore(e,i.children[r])}(r,rt),a.animateAll(),a!==t&&t.animateAll())},nulling:function(){rt=null}},i(e,{pluginName:"swap",eventProperties:function(){return{swapItem:rt}}})}ot.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=E(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:it},i(ot,{pluginName:"revertOnSpill"}),lt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:it},i(lt,{pluginName:"removeOnSpill"});var ct,ut,dt,ht,ft,pt=[],gt=[],vt=!1,mt=!1,yt=!1;function xt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?m(document,"pointerup",this._deselectMultiDrag):(m(document,"mouseup",this._deselectMultiDrag),m(document,"touchend",this._deselectMultiDrag)),m(document,"keydown",this._checkKeyDown),m(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";pt.length&&ut===e?pt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;dt=t},delayEnded:function(){this.isMultiDrag=~pt.indexOf(dt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<pt.length;r++)gt.push(F(pt[r])),gt[r].sortableIndex=pt[r].sortableIndex,gt[r].draggable=!1,gt[r].style["will-change"]="",T(gt[r],this.options.selectedClass,!1),pt[r]===dt&&T(gt[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,a=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||pt.length&&ut===t&&(bt(!0,n),r("clone"),a()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(bt(!1,n),gt.forEach((function(e){M(e,"display","")})),t(),ft=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(gt.forEach((function(e){M(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),ft=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&ut&&ut.multiDrag._deselectMultiDrag(),pt.forEach((function(e){e.sortableIndex=D(e)})),pt=pt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),yt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){pt.forEach((function(e){e!==dt&&M(e,"position","absolute")}));var r=L(dt,!1,!0,!0);pt.forEach((function(e){e!==dt&&B(e,r)})),mt=!0,vt=!0}n.animateAll((function(){mt=!1,vt=!1,t.options.animation&&pt.forEach((function(e){H(e)})),t.options.sort&&wt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;mt&&~pt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,a=e.dragRect;pt.length>1&&(pt.forEach((function(e){r.addAnimationState({target:e,rect:mt?L(e):a}),H(e),e.fromRect=a,t.removeAnimationState(e)})),mt=!1,function(e,t){pt.forEach((function(n,r){var a=t.children[n.sortableIndex+(e?Number(r):0)];a?t.insertBefore(n,a):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,a=e.activeSortable,i=e.parentEl,o=e.putSortable,l=this.options;if(r){if(n&&a._hideClone(),vt=!1,l.animation&&pt.length>1&&(mt||!n&&!a.options.sort&&!o)){var s=L(dt,!1,!0,!0);pt.forEach((function(e){e!==dt&&(B(e,s),i.appendChild(e))})),mt=!0}if(!n)if(mt||wt(),pt.length>1){var c=ft;a._showClone(t),a.options.animation&&!ft&&c&>.forEach((function(e){a.addAnimationState({target:e,rect:ht}),e.fromRect=ht,e.thisAnimationDuration=null}))}else a._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(pt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){ht=i({},t);var a=A(dt,!0);ht.top-=a.f,ht.left-=a.e}},dragOverAnimationComplete:function(){mt&&(mt=!1,wt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,a=e.sortable,i=e.dispatchSortableEvent,o=e.oldIndex,l=e.putSortable,s=l||this.sortable;if(t){var c=this.options,u=r.children;if(!yt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),T(dt,c.selectedClass,!~pt.indexOf(dt)),~pt.indexOf(dt))pt.splice(pt.indexOf(dt),1),ct=null,W({sortable:a,rootEl:n,name:"deselect",targetEl:dt,originalEvt:t});else{if(pt.push(dt),W({sortable:a,rootEl:n,name:"select",targetEl:dt,originalEvt:t}),t.shiftKey&&ct&&a.el.contains(ct)){var d,h,f=D(ct),p=D(dt);if(~f&&~p&&f!==p)for(p>f?(h=f,d=p):(h=p,d=f+1);h<d;h++)~pt.indexOf(u[h])||(T(u[h],c.selectedClass,!0),pt.push(u[h]),W({sortable:a,rootEl:n,name:"select",targetEl:u[h],originalEvt:t}))}else ct=dt;ut=s}if(yt&&this.isMultiDrag){if((r[V].options.sort||r!==n)&&pt.length>1){var g=L(dt),v=D(dt,":not(."+this.options.selectedClass+")");if(!vt&&c.animation&&(dt.thisAnimationDuration=null),s.captureAnimationState(),!vt&&(c.animation&&(dt.fromRect=g,pt.forEach((function(e){if(e.thisAnimationDuration=null,e!==dt){var t=mt?L(e):g;e.fromRect=t,s.addAnimationState({target:e,rect:t})}}))),wt(),pt.forEach((function(e){u[v]?r.insertBefore(e,u[v]):r.appendChild(e),v++})),o===D(dt))){var m=!1;pt.forEach((function(e){e.sortableIndex===D(e)||(m=!0)})),m&&i("update")}pt.forEach((function(e){H(e)})),s.animateAll()}ut=s}(n===r||l&&"clone"!==l.lastPutMode)&>.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=yt=!1,gt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),y(document,"pointerup",this._deselectMultiDrag),y(document,"mouseup",this._deselectMultiDrag),y(document,"touchend",this._deselectMultiDrag),y(document,"keydown",this._checkKeyDown),y(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==yt&&yt||ut!==this.sortable||e&&w(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;pt.length;){var t=pt[0];T(t,this.options.selectedClass,!1),pt.shift(),W({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},i(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[V];t&&t.options.multiDrag&&!~pt.indexOf(e)&&(ut&&ut!==t&&(ut.multiDrag._deselectMultiDrag(),ut=t),T(e,t.options.selectedClass,!0),pt.push(e))},deselect:function(e){var t=e.parentNode[V],n=pt.indexOf(e);t&&t.options.multiDrag&&~n&&(T(e,t.options.selectedClass,!1),pt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return pt.forEach((function(r){var a;t.push({multiDragElement:r,index:r.sortableIndex}),a=mt&&r!==dt?-1:mt?D(r,":not(."+e.options.selectedClass+")"):D(r),n.push({multiDragElement:r,index:a})})),{items:s(pt),clones:[].concat(gt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function bt(e,t){gt.forEach((function(n,r){var a=t.children[n.sortableIndex+(e?Number(r):0)];a?t.insertBefore(n,a):t.appendChild(n)}))}function wt(){pt.forEach((function(e){e!==dt&&e.parentNode&&e.parentNode.removeChild(e)}))}Be.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?m(document,"dragover",this._handleAutoScroll):this.options.supportPointer?m(document,"pointermove",this._handleFallbackAutoScroll):t.touches?m(document,"touchmove",this._handleFallbackAutoScroll):m(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):(y(document,"pointermove",this._handleFallbackAutoScroll),y(document,"touchmove",this._handleFallbackAutoScroll),y(document,"mousemove",this._handleFallbackAutoScroll)),nt(),tt(),clearTimeout(_),_=void 0},nulling:function(){Je=Ye=We=et=Ke=Xe=$e=null,Qe.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,a);if(Je=e,t||d||u||f){at(e,this.options,i,t);var o=z(i,!0);!et||Ke&&r===Xe&&a===$e||(Ke&&nt(),Ke=setInterval((function(){var i=z(document.elementFromPoint(r,a),!0);i!==o&&(o=i,tt()),at(e,n.options,i,t)}),10),Xe=r,$e=a)}else{if(!this.options.bubbleScroll||z(i,!0)===C())return void tt();at(e,this.options,z(i,!1),!1)}}},i(e,{pluginName:"scroll",initializeByDefault:!0})}),Be.mount(lt,ot),t.default=Be}.call(this,n("+2Rf"))},qop6:function(e,t,n){"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"}}},r91y:function(e,t,n){"use strict";var r=n("bljh"),a=n("0RW4");e.exports=function(e){e.each((function(e){var t=e[0].trace,n=t.error_y||{},i=t.error_x||{},o=r.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(a.stroke,n.color),i.copy_ystyle&&(i=n),o.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(a.stroke,i.color)}))}},"rDM+":function(e,t,n){"use strict";function r(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:r,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(n){return r(e,n[t])}},getTransform:function(e){return"translate("+e.xaxis._offset+","+e.yaxis._offset+")"}}},rIcZ:function(e,t,n){"use strict";var r=n("21T9").dash,a=n("kJIm").extendFlat;e.exports={newshape:{line:{color:{valType:"color",editType:"none",role:"info",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:0,dflt:4,role:"info",editType:"none",description:"Sets the line width (in px)."},dash:a({},r,{dflt:"solid",editType:"none"}),role:"info",editType:"none"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"info",editType:"none",description:["Sets the color filling new shapes' interior.","Please note that if using a fillcolor with alpha greater than half,","drag inside the active shape starts moving the shape underneath,","otherwise a new shape could be started over."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",role:"info",editType:"none",description:["Determines the path's interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"info",editType:"none",description:"Sets the opacity of new shapes."},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",editType:"none",description:"Specifies whether new shapes are drawn below or above traces."},drawdirection:{valType:"enumerated",role:"info",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal",editType:"none",description:["When `dragmode` is set to *drawrect*, *drawline* or *drawcircle*","this limits the drag to be horizontal, vertical or diagonal.","Using *diagonal* there is no limit e.g. in drawing lines in any direction.","*ortho* limits the draw to be either horizontal or vertical.","*horizontal* allows horizontal extend.","*vertical* allows vertical extend."].join(" ")},editType:"none"},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",role:"style",editType:"none",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5,role:"info",editType:"none",description:"Sets the opacity of the active shape."},editType:"none"}}},rJf6:function(e,t,n){"use strict";var r=n("pcRN"),a=n("Nx4I"),i=n("0RW4"),o=n("/CZE").fillText,l=n("aDMI").getLineWidth,s=n("BkK/").hoverLabelText,c=n("6AZA").BADNUM;function u(e,t,n,a){var i,l,u,d,h,f,p,g=e.cd,v=g[0].trace,m=g[0].t,y="closest"===a,x="waterfall"===v.type,b=e.maxHoverDistance;function w(e){return e[u]-e.w/2}function _(e){return e[u]+e.w/2}var k=y?w:function(e){return Math.min(w(e),e.p-m.bardelta/2)},T=y?_:function(e){return Math.max(_(e),e.p+m.bardelta/2)};function M(e,t){return r.inbox(e-i,t-i,b+Math.min(1,Math.abs(t-e)/p)-1)}function A(e){return M(k(e),T(e))}function S(e){var t=l,n=e.b,a=e[d];if(x){var i=Math.abs(e.rawS)||0;t>0?a+=i:t<0&&(a-=i)}return r.inbox(n-t,a-t,b+(a-t)/(a-n)-1)}"h"===v.orientation?(i=n,l=t,u="y",d="x",h=S,f=A):(i=t,l=n,u="x",d="y",f=S,h=A);var C=e[u+"a"],L=e[d+"a"];p=Math.abs(C.r2c(C.range[1])-C.r2c(C.range[0]));var I=r.getDistanceFunction(a,h,f,(function(e){return(h(e)+f(e))/2}));if(r.getClosest(g,I,e),!1!==e.index&&g[e.index].p!==c){y||(k=function(e){return Math.min(w(e),e.p-m.bargroupwidth/2)},T=function(e){return Math.max(_(e),e.p+m.bargroupwidth/2)});var E=g[e.index],O=v.base?E.b+E.s:E.s;e[d+"0"]=e[d+"1"]=L.c2p(E[d],!0),e[d+"LabelVal"]=O;var D=m.extents[m.extents.round(E.p)];return e[u+"0"]=C.c2p(y?k(E):D[0],!0),e[u+"1"]=C.c2p(y?T(E):D[1],!0),e[u+"LabelVal"]=E.p,e.labelLabel=s(C,e[u+"LabelVal"]),e.valueLabel=s(L,e[d+"LabelVal"]),e.spikeDistance=(S(E)+function(e){return M(w(e),_(e))}(E))/2-b,e[u+"Spike"]=C.c2p(E.p,!0),o(E,v,e),e.hovertemplate=v.hovertemplate,e}}function d(e,t){var n=t.mcc||e.marker.color,r=t.mlcc||e.marker.line.color,a=l(e,t);return i.opacity(n)?n:i.opacity(r)&&a?r:void 0}e.exports={hoverPoints:function(e,t,n,r){var i=u(e,t,n,r);if(i){var o=i.cd,l=o[0].trace,s=o[i.index];return i.color=d(l,s),a.getComponentMethod("errorbars","hoverInfo")(s,l,i),[i]}},hoverOnBars:u,getTraceColor:d}},"rWI/":function(e,t,n){"use strict";var r=n("Nx4I"),a=n("0wH6").SUBPLOT_PATTERN;t.getSubplotCalcData=function(e,t,n){var a=r.subplotsRegistry[t];if(!a)return[];for(var i=a.attr,o=[],l=0;l<e.length;l++){var s=e[l];s[0].trace[i]===n&&o.push(s)}return o},t.getModuleCalcData=function(e,t){var n,a=[],i=[];if(!(n="string"==typeof t?r.getModule(t).plot:"function"==typeof t?t:t.plot))return[a,e];for(var o=0;o<e.length;o++){var l=e[o],s=l[0].trace;!0===s.visible&&0!==s._length&&(s._module.plot===n?a.push(l):i.push(l))}return[a,i]},t.getSubplotData=function(e,t,n){if(!r.subplotsRegistry[t])return[];var i,o,l,s=r.subplotsRegistry[t].attr,c=[];if("gl2d"===t){var u=n.match(a);o="x"+u[1],l="y"+u[2]}for(var d=0;d<e.length;d++)i=e[d],"gl2d"===t&&r.traceIs(i,"gl2d")?i[s[0]]===o&&i[s[1]]===l&&c.push(i):i[s]===n&&c.push(i);return c}},"rZH/":function(e,t,n){"use strict";var r=n("/CZE"),a=n("oois"),i=n("6M+F"),o=n("QkhT");e.exports=function(e,t){var n;return r.isPlainObject(e)||(n=r.getGraphDiv(e)),(t=t||{}).format=t.format||"png",t.imageDataOnly=!0,new Promise((function(l,s){n&&n._snapshotInProgress&&s(new Error("Snapshotting already in progress.")),r.isIE()&&"svg"!==t.format&&s(new Error(o.MSG_IE_BAD_FORMAT)),n&&(n._snapshotInProgress=!0);var c=a(e,t),u=t.filename||e.fn||"newplot";u+="."+t.format.replace("-","."),c.then((function(e){return n&&(n._snapshotInProgress=!1),i(e,u,t.format)})).then((function(e){l(e)})).catch((function(e){n&&(n._snapshotInProgress=!1),s(e)}))}))}},rhNM:function(e,t,n){"use strict";var r=n("P/XJ").dfltConfig,a=n("AII8"),i=e.exports={};function o(e,t){if(e&&e.apply)try{return void e.apply(console,t)}catch(e){}for(var n=0;n<t.length;n++)try{e(t[n])}catch(e){console.log(t[n])}}i.log=function(){var e;if(r.logging>1){var t=["LOG:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);o(console.trace||console.log,t)}if(r.notifyOnLogging>1){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);a(n.join("<br>"),"long")}},i.warn=function(){var e;if(r.logging>0){var t=["WARN:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);o(console.trace||console.log,t)}if(r.notifyOnLogging>0){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);a(n.join("<br>"),"stick")}},i.error=function(){var e;if(r.logging>0){var t=["ERROR:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);o(console.error,t)}if(r.notifyOnLogging>0){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);a(n.join("<br>"),"stick")}}},s02k:function(e,t,n){"use strict";var r=n("5EAt"),a=n("UtjE"),i=a.CIRCLE_SIDES,o=a.SQRT2,l=n("rDM+"),s=l.p2r,c=l.r2p,u=[0,3,4,5,6,1,2],d=[0,3,4,1,2];function h(e,t){return Math.abs(e-t)<=1e-6}function f(e,t){var n=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(n*n+r*r)}t.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var n="",r=0;r<t;r++)for(var a=e[r].length,i=0;i<a;i++){var o=e[r][i][0];if("Z"===o)n+="Z";else for(var l=e[r][i].length,s=0;s<l;s++){var c=s;"Q"===o||"S"===o?c=d[s]:"C"===o&&(c=u[s]),n+=e[r][i][c],s>0&&s<l-1&&(n+=",")}}return n},t.readPaths=function(e,t,n,a){var o,l,u,d=r(e),h=[],f=-1,p=0,g=0,v=function(){l=p,u=g};v();for(var m=0;m<d.length;m++){var y,x,b,w,_=[],k=d[m][0],T=k;switch(k){case"M":f++,h[f]=[],p=+d[m][1],g=+d[m][2],_.push([T,p,g]),v();break;case"Q":case"S":y=+d[m][1],b=+d[m][2],p=+d[m][3],g=+d[m][4],_.push([T,p,g,y,b]);break;case"C":y=+d[m][1],b=+d[m][2],x=+d[m][3],w=+d[m][4],p=+d[m][5],g=+d[m][6],_.push([T,p,g,y,b,x,w]);break;case"T":case"L":p=+d[m][1],g=+d[m][2],_.push([T,p,g]);break;case"H":T="L",p=+d[m][1],_.push([T,p,g]);break;case"V":T="L",g=+d[m][1],_.push([T,p,g]);break;case"A":T="L";var M=+d[m][1],A=+d[m][2];+d[m][4]||(M=-M,A=-A);var S=p-M,C=g;for(o=1;o<=i/2;o++){var L=2*Math.PI*o/i;_.push([T,S+M*Math.cos(L),C+A*Math.sin(L)])}break;case"Z":p===l&&g===u||(p=l,g=u,_.push([T,p,g]))}for(var I=(n||{}).domain,E=t._fullLayout._size,O=n&&"pixel"===n.xsizemode,D=n&&"pixel"===n.ysizemode,P=!1===a,z=0;z<_.length;z++){for(o=0;o+2<7;o+=2){var N=_[z][o+1],j=_[z][o+2];void 0!==N&&void 0!==j&&(p=N,g=j,n&&(n.xaxis&&n.xaxis.p2r?(P&&(N-=n.xaxis._offset),N=O?c(n.xaxis,n.xanchor)+N:s(n.xaxis,N)):(P&&(N-=E.l),I?N=I.x[0]+N/E.w:N/=E.w),n.yaxis&&n.yaxis.p2r?(P&&(j-=n.yaxis._offset),j=D?c(n.yaxis,n.yanchor)-j:s(n.yaxis,j)):(P&&(j-=E.t),j=I?I.y[1]-j/E.h:1-j/E.h)),_[z][o+1]=N,_[z][o+2]=j)}h[f].push(_[z].slice())}}return h},t.pointsShapeRectangle=function(e){if(5!==e.length)return!1;for(var t=1;t<3;t++){if(!h(e[0][t]-e[1][t],e[3][t]-e[2][t]))return!1;if(!h(e[0][t]-e[3][t],e[1][t]-e[2][t]))return!1}return!(!h(e[0][1],e[1][1])&&!h(e[0][1],e[3][1]))&&!!(f(e[0],e[1])*f(e[0],e[3]))},t.pointsShapeEllipse=function(e){var t=e.length;if(t!==i+1)return!1;t=i;for(var n=0;n<t;n++){var r=(2*t-n)%t,a=(t/2+r)%t,o=(t/2+n)%t;if(!h(f(e[n],e[o]),f(e[r],e[a])))return!1}return!0},t.handleEllipse=function(e,n,r){if(!e)return[n,r];var a=t.ellipseOver({x0:n[0],y0:n[1],x1:r[0],y1:r[1]}),l=(a.x1+a.x0)/2,s=(a.y1+a.y0)/2,c=(a.x1-a.x0)/2,u=(a.y1-a.y0)/2;c||(c=u/=o),u||(u=c/=o);for(var d=[],h=0;h<i;h++){var f=2*h*Math.PI/i;d.push([l+c*Math.cos(f),s+u*Math.sin(f)])}return d},t.ellipseOver=function(e){var t=e.x0,n=e.y0,r=e.x1,a=e.y1,i=r-t,l=a-n,s=((t-=i)+r)/2,c=((n-=l)+a)/2;return{x0:s-(i*=o),y0:c-(l*=o),x1:s+i,y1:c+l}}},s1NN:function(e,t,n){"use strict";var r=n("u3HJ");t.name="sunburst",t.plot=function(e,n,a,i){r.plotBasePlot(t.name,e,n,a,i)},t.clean=function(e,n,a,i){r.cleanBasePlot(t.name,e,n,a,i)}},sEfC:function(e,t,n){var r=n("GoyQ"),a=n("QIyF"),i=n("tLB3"),o=Math.max,l=Math.min;e.exports=function(e,t,n){var s,c,u,d,h,f,p=0,g=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=s,r=c;return s=c=void 0,p=t,d=e.apply(r,n)}function x(e){return p=e,h=setTimeout(w,t),g?y(e):d}function b(e){var n=e-f;return void 0===f||n>=t||n<0||v&&e-p>=u}function w(){var e=a();if(b(e))return _(e);h=setTimeout(w,function(e){var n=t-(e-f);return v?l(n,u-(e-p)):n}(e))}function _(e){return h=void 0,m&&s?y(e):(s=c=void 0,d)}function k(){var e=a(),n=b(e);if(s=arguments,c=this,f=e,n){if(void 0===h)return x(f);if(v)return clearTimeout(h),h=setTimeout(w,t),y(f)}return void 0===h&&(h=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(g=!!n.leading,u=(v="maxWait"in n)?o(i(n.maxWait)||0,t):u,m="trailing"in n?!!n.trailing:m),k.cancel=function(){void 0!==h&&clearTimeout(h),p=0,s=f=c=h=void 0},k.flush=function(){return void 0===h?d:_(a())},k}},sZtP:function(e,t,n){"use strict";e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},sahz:function(e,t,n){"use strict";var r=n("/CZE"),a=n("EZ4C"),i=n("rWI/").getSubplotData,o=n("CASU"),l=n("Rb6W"),s=o.axesNames;function c(e,t,n,a){var l=i(a.fullData,"geo",a.id).map((function(e){return e._expandedIndex})),c=n("resolution"),u=n("scope"),d=o.scopeDefaults[u],h=n("projection.type",d.projType),f=t._isAlbersUsa="albers usa"===h;f&&(u=t.scope="usa");var p=t._isScoped="world"!==u,g=t._isConic=-1!==h.indexOf("conic"),v=t._isClipped=!!o.lonaxisSpan[h];if(!1===e.visible){var m=r.extendDeep({},t._template);m.showcoastlines=!1,m.showcountries=!1,m.showframe=!1,m.showlakes=!1,m.showland=!1,m.showocean=!1,m.showrivers=!1,m.showsubunits=!1,m.lonaxis&&(m.lonaxis.showgrid=!1),m.lataxis&&(m.lataxis.showgrid=!1),t._template=m}for(var y=n("visible"),x=0;x<s.length;x++){var b,w=s[x],_=[30,10][x];if(p)b=d[w+"Range"];else{var k=o[w+"Span"],T=(k[h]||k["*"])/2,M=n("projection.rotation."+w.substr(0,3),d.projRotate[x]);b=[M-T,M+T]}var A=n(w+".range",b);n(w+".tick0"),n(w+".dtick",_),n(w+".showgrid",!!y&&void 0)&&(n(w+".gridcolor"),n(w+".gridwidth")),t[w]._ax={type:"linear",_id:w.slice(0,3),_traceIndices:l,setScale:r.identity,c2l:r.identity,r2l:r.identity,autorange:!0,range:A.slice(),_m:1,_input:{}}}var S=t.lonaxis.range,C=t.lataxis.range,L=S[0],I=S[1];L>0&&I<0&&(I+=360);var E,O,D,P=(L+I)/2;if(!f){var z=p?d.projRotate:[P,0,0];E=n("projection.rotation.lon",z[0]),n("projection.rotation.lat",z[1]),n("projection.rotation.roll",z[2]),n("showcoastlines",!p&&y)&&(n("coastlinecolor"),n("coastlinewidth")),n("showocean",!!y&&void 0)&&n("oceancolor")}(f?(O=-96.6,D=38.7):(O=p?P:E,D=(C[0]+C[1])/2),n("center.lon",O),n("center.lat",D),g)&&n("projection.parallels",d.projParallels||[0,60]);n("projection.scale"),n("showland",!!y&&void 0)&&n("landcolor"),n("showlakes",!!y&&void 0)&&n("lakecolor"),n("showrivers",!!y&&void 0)&&(n("rivercolor"),n("riverwidth")),n("showcountries",p&&"usa"!==u&&y)&&(n("countrycolor"),n("countrywidth")),("usa"===u||"north america"===u&&50===c)&&(n("showsubunits",y),n("subunitcolor"),n("subunitwidth")),p||n("showframe",y)&&(n("framecolor"),n("framewidth")),n("bgcolor"),n("fitbounds")&&(delete t.projection.scale,p?(delete t.center.lon,delete t.center.lat):v?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}e.exports=function(e,t,n){a(e,t,n,{type:"geo",attributes:l,handleDefaults:c,fullData:n,partition:"y"})}},sgXD:function(e,t,n){"use strict";e.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}},t3iM:function(e,t,n){"use strict";e.exports=function(){}},t7il:function(e,t,n){"use strict";var r=n("15jM"),a=n("kJIm").extendFlat,i=n("yzSc").overrideAll,o=["Legacy polar charts are deprecated!","Please switch to *polar* subplots."].join(" "),l=a({},r.domain,{description:["Polar chart subplots are not supported yet.","This key has currently no effect."].join(" ")});function s(e,t){var n={showline:{valType:"boolean",role:"style",description:[o,"Determines whether or not the line bounding this",e,"axis","will be shown on the figure."].join(" ")},showticklabels:{valType:"boolean",role:"style",description:[o,"Determines whether or not the",e,"axis ticks","will feature tick labels."].join(" ")},tickorientation:{valType:"enumerated",values:["horizontal","vertical"],role:"style",description:[o,"Sets the orientation (from the paper perspective)","of the",e,"axis tick labels."].join(" ")},ticklen:{valType:"number",min:0,role:"style",description:[o,"Sets the length of the tick lines on this",e,"axis."].join(" ")},tickcolor:{valType:"color",role:"style",description:[o,"Sets the color of the tick lines on this",e,"axis."].join(" ")},ticksuffix:{valType:"string",role:"style",description:[o,"Sets the length of the tick lines on this",e,"axis."].join(" ")},endpadding:{valType:"number",role:"style",description:o},visible:{valType:"boolean",role:"info",description:[o,"Determines whether or not this axis will be visible."].join(" ")}};return a({},t,n)}e.exports=i({radialaxis:s("radial",{range:{valType:"info_array",role:"info",items:[{valType:"number"},{valType:"number"}],description:[o,"Defines the start and end point of this radial axis."].join(" ")},domain:l,orientation:{valType:"number",role:"style",description:[o,"Sets the orientation (an angle with respect to the origin)","of the radial axis."].join(" ")}}),angularaxis:s("angular",{range:{valType:"info_array",role:"info",items:[{valType:"number",dflt:0},{valType:"number",dflt:360}],description:[o,"Defines the start and end point of this angular axis."].join(" ")},domain:l}),layout:{direction:{valType:"enumerated",values:["clockwise","counterclockwise"],role:"info",description:[o,"Sets the direction corresponding to positive angles","in legacy polar charts."].join(" ")},orientation:{valType:"angle",role:"info",description:[o,"Rotates the entire polar by the given angle","in legacy polar charts."].join(" ")}}},"plot","nested")},tDtm:function(e,t,n){"use strict";var r=n("E4V0"),a=n("t3iM"),i=n("rhNM"),o=n("3HVJ").sorterAsc,l=n("Nx4I");t.containerArrayMatch=n("p96X");var s=t.isAddVal=function(e){return"add"===e||r(e)},c=t.isRemoveVal=function(e){return null===e||"remove"===e};t.applyContainerArrayChanges=function(e,t,n,r,u){var d=t.astr,h=l.getComponentMethod(d,"supplyLayoutDefaults"),f=l.getComponentMethod(d,"draw"),p=l.getComponentMethod(d,"drawOne"),g=r.replot||r.recalc||h===a||f===a,v=e.layout,m=e._fullLayout;if(n[""]){Object.keys(n).length>1&&i.warn("Full array edits are incompatible with other edits",d);var y=n[""][""];if(c(y))t.set(null);else{if(!Array.isArray(y))return i.warn("Unrecognized full array edit value",d,y),!0;t.set(y)}return!g&&(h(v,m),f(e),!0)}var x,b,w,_,k,T,M,A,S=Object.keys(n).map(Number).sort(o),C=t.get(),L=C||[],I=u(m,d).get(),E=[],O=-1,D=L.length;for(x=0;x<S.length;x++)if(_=n[w=S[x]],k=Object.keys(_),T=_[""],M=s(T),w<0||w>L.length-(M?0:1))i.warn("index out of range",d,w);else if(void 0!==T)k.length>1&&i.warn("Insertion & removal are incompatible with edits to the same index.",d,w),c(T)?E.push(w):M?("add"===T&&(T={}),L.splice(w,0,T),I&&I.splice(w,0,{})):i.warn("Unrecognized full object edit value",d,w,T),-1===O&&(O=w);else for(b=0;b<k.length;b++)A=d+"["+w+"].",u(L[w],k[b],A).set(_[k[b]]);for(x=E.length-1;x>=0;x--)L.splice(E[x],1),I&&I.splice(E[x],1);if(L.length?C||t.set(L):t.set(null),g)return!1;if(h(v,m),p!==a){var P;if(-1===O)P=S;else{for(D=Math.max(L.length,D),P=[],x=0;x<S.length&&!((w=S[x])>=O);x++)P.push(w);for(x=O;x<D;x++)P.push(x)}for(x=0;x<P.length;x++)p(e,P[x])}else f(e);return!0}},tLB3:function(e,t,n){var r=n("GoyQ"),a=n("/9aa"),i=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=l.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):o.test(e)?NaN:+e}},tTmA:function(e,t,n){"use strict";var r=n("DOzC").setGroupPositions;e.exports=function(e,t){var n,a,i=e._fullLayout,o=e._fullData,l=e.calcdata,s=t.xaxis,c=t.yaxis,u=[],d=[],h=[];for(a=0;a<o.length;a++){var f=o[a];!0===f.visible&&f.xaxis===s._id&&f.yaxis===c._id&&"waterfall"===f.type&&(n=l[a],"h"===f.orientation?h.push(n):d.push(n),u.push(n))}var p={mode:i.waterfallmode,norm:i.waterfallnorm,gap:i.waterfallgap,groupgap:i.waterfallgroupgap};for(r(e,s,c,d,p),r(e,c,s,h,p),a=0;a<u.length;a++){n=u[a];for(var g=0;g<n.length;g++){var v=n[g];!1===v.isSum&&(v.s0+=0===g?0:n[g-1].s),g+1<n.length&&(n[g].nextP0=n[g+1].p0,n[g].nextS0=n[g+1].s0)}}}},teKd:function(e,t,n){"use strict";var r=n("Nx4I").traceIs,a=n("C3fs");function i(e){return{v:"x",h:"y"}[e.orientation||"v"]}function o(e,t){var n=i(e),a=r(e,"box-violin"),o=r(e._fullInput||{},"candlestick");return a&&!o&&t===n&&void 0===e[n]&&void 0===e[n+"0"]}e.exports=function(e,t,n,l){"-"===n("type",(l.splomStash||{}).type)&&(!function(e,t){if("-"!==e.type)return;var n,l=e._id,s=l.charAt(0);-1!==l.indexOf("scene")&&(l=s);var c=function(e,t,n){for(var r=0;r<e.length;r++){var a=e[r];if("splom"===a.type&&a._length>0&&(a["_"+n+"axes"]||{})[t])return a;if((a[n+"axis"]||n)===t){if(o(a,n))return a;if((a[n]||[]).length||a[n+"0"])return a}}}(t,l,s);if(!c)return;if("histogram"===c.type&&s==={v:"y",h:"x"}[c.orientation||"v"])return void(e.type="linear");var u=s+"calendar",d=c[u],h={noMultiCategory:!r(c,"cartesian")||r(c,"noMultiCategory")};"box"===c.type&&c._hasPreCompStats&&s==={h:"x",v:"y"}[c.orientation||"v"]&&(h.noMultiCategory=!0);if(o(c,s)){var f=i(c),p=[];for(n=0;n<t.length;n++){var g=t[n];r(g,"box-violin")&&(g[s+"axis"]||s)===l&&(void 0!==g[f]?p.push(g[f][0]):void 0!==g.name?p.push(g.name):p.push("text"),g[u]!==d&&(d=void 0))}e.type=a(p,d,h)}else if("splom"===c.type){var v=c.dimensions[c._axesDim[l]];v.visible&&(e.type=a(v.values,d,h))}else e.type=a(c[s]||[c[s+"0"]],d,h)}(t,l.data),"-"===t.type?t.type="linear":e.type=t.type)}},teMc:function(e,t,n){"use strict";var r=n("bljh"),a=n("GbLo"),i=n("LI1c"),o=n("/CZE"),l=o.nestedProperty,s=n("h0EB"),c=n("xra3"),u=n("Nx4I"),d=n("aSHK"),h=n("u3HJ"),f=n("VQYE"),p=n("BkK/"),g=n("g9E0"),v=n("0RW4"),m=n("Guo4").initInteractions,y=n("c8nr"),x=n("A3kh"),b=n("GHb7").clearSelect,w=n("P/XJ").dfltConfig,_=n("tDtm"),k=n("xJcw"),T=n("o5LV"),M=n("yzSc"),A=n("0wH6").AX_NAME_PATTERN,S=0;function C(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function L(e,t){try{e._fullLayout._paper.style("background",t)}catch(e){o.error(e)}}function I(e,t){L(e,v.combine(t,"white"))}function E(e,t){if(!e._context){e._context=o.extendDeep({},w);var n=r.select("base");e._context._baseUrl=n.size()&&n.attr("href")?window.location.href.split("#")[0]:""}var a,l,s,c=e._context;if(t){for(l=Object.keys(t),a=0;a<l.length;a++)"editable"!==(s=l[a])&&"edits"!==s&&s in c&&("setBackground"===s&&"opaque"===t[s]?c[s]=I:c[s]=t[s]);t.plot3dPixelRatio&&!c.plotGlPixelRatio&&(c.plotGlPixelRatio=c.plot3dPixelRatio);var u=t.editable;if(void 0!==u)for(c.editable=u,l=Object.keys(c.edits),a=0;a<l.length;a++)c.edits[l[a]]=u;if(t.edits)for(l=Object.keys(t.edits),a=0;a<l.length;a++)(s=l[a])in c.edits&&(c.edits[s]=t.edits[s]);c._exportedPlot=t._exportedPlot}c.staticPlot&&(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),"hover"!==c.displayModeBar||i||(c.displayModeBar=!0),"transparent"!==c.setBackground&&"function"==typeof c.setBackground||(c.setBackground=L),c._hasZeroHeight=c._hasZeroHeight||0===e.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===e.clientWidth;var d=c.scrollZoom,h=c._scrollZoom={};if(!0===d)h.cartesian=1,h.gl3d=1,h.geo=1,h.mapbox=1;else if("string"==typeof d){var f=d.split("+");for(a=0;a<f.length;a++)h[f[a]]=1}else!1!==d&&(h.gl3d=1,h.geo=1,h.mapbox=1)}function O(e,t){var n,r,a=t+1,i=[];for(n=0;n<e.length;n++)(r=e[n])<0?i.push(a+r):i.push(r);return i}function D(e,t,n){var r,a;for(r=0;r<t.length;r++){if((a=t[r])!==parseInt(a,10))throw new Error("all values in "+n+" must be integers");if(a>=e.data.length||a<-e.data.length)throw new Error(n+" must be valid indices for gd.data.");if(t.indexOf(a,r+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+n+" must be unique.")}}function P(e,t,n){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]),D(e,t,"currentIndices"),void 0===n||Array.isArray(n)||(n=[n]),void 0!==n&&D(e,n,"newIndices"),void 0!==n&&t.length!==n.length)throw new Error("current and new indices must be of equal length.")}function z(e,t,n,r,i){!function(e,t,n,r){var a=o.isPlainObject(r);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!o.isPlainObject(t))throw new Error("update must be a key:value object");if(void 0===n)throw new Error("indices must be an integer or array of integers");for(var i in D(e,n,"indices"),t){if(!Array.isArray(t[i])||t[i].length!==n.length)throw new Error("attribute "+i+" must be an array of length equal to indices array length");if(a&&(!(i in r)||!Array.isArray(r[i])||r[i].length!==t[i].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,n,r);for(var s=function(e,t,n,r){var i,s,c,u,d,h=o.isPlainObject(r),f=[];for(var p in Array.isArray(n)||(n=[n]),n=O(n,e.data.length-1),t)for(var g=0;g<n.length;g++){if(i=e.data[n[g]],s=(c=l(i,p)).get(),u=t[p][g],!o.isArrayOrTypedArray(u))throw new Error("attribute: "+p+" index: "+g+" must be an array");if(!o.isArrayOrTypedArray(s))throw new Error("cannot extend missing or non-array attribute: "+p);if(s.constructor!==u.constructor)throw new Error("cannot extend array with an array of a different type: "+p);d=h?r[p][g]:r,a(d)||(d=-1),f.push({prop:c,target:s,insert:u,maxp:Math.floor(d)})}return f}(e,t,n,r),c={},u={},d=0;d<s.length;d++){var h=s[d].prop,f=s[d].maxp,p=i(s[d].target,s[d].insert,f);h.set(p[0]),Array.isArray(c[h.astr])||(c[h.astr]=[]),c[h.astr].push(p[1]),Array.isArray(u[h.astr])||(u[h.astr]=[]),u[h.astr].push(s[d].target.length)}return{update:c,maxPoints:u}}function N(e,t){var n=new e.constructor(e.length+t.length);return n.set(e),n.set(t,e.length),n}function j(e,n,r,a){e=o.getGraphDiv(e),k.clearPromiseQueue(e);var i={};if("string"==typeof n)i[n]=r;else{if(!o.isPlainObject(n))return o.warn("Restyle fail.",n,r,a),Promise.reject();i=o.extendFlat({},n),void 0===a&&(a=r)}Object.keys(i).length&&(e.changed=!0);var l=k.coerceTraceIndices(e,a),s=H(e,i,l),u=s.flags;u.calc&&(e.calcdata=void 0),u.clearAxisTypes&&k.clearAxisTypes(e,l,{});var d=[];u.fullReplot?d.push(t.plot):(d.push(h.previousPromises),h.supplyDefaults(e),u.markerSize&&(h.doCalcdata(e),q(d)),u.style&&d.push(T.doTraceStyle),u.colorbars&&d.push(T.doColorBars),d.push(C)),d.push(h.rehover,h.redrag),c.add(e,j,[e,s.undoit,s.traces],j,[e,s.redoit,s.traces]);var f=o.syncOrAsync(d,e);return f&&f.then||(f=Promise.resolve()),f.then((function(){return e.emit("plotly_restyle",s.eventData),e}))}function R(e){return void 0===e?null:e}function F(e,t){return t?function(t,n,r){var a=l(t,n),i=a.set;return a.set=function(t){B((r||"")+n,a.get(),t,e),i(t)},a}:l}function B(e,t,n,r){if(Array.isArray(t)||Array.isArray(n))for(var a=Array.isArray(t)?t:[],i=Array.isArray(n)?n:[],l=Math.max(a.length,i.length),s=0;s<l;s++)B(e+"["+s+"]",a[s],i[s],r);else if(o.isPlainObject(t)||o.isPlainObject(n)){var c=o.isPlainObject(t)?t:{},u=o.isPlainObject(n)?n:{},d=o.extendFlat({},c,u);for(var h in d)B(e+"."+h,c[h],u[h],r)}else void 0===r[e]&&(r[e]=R(t))}function H(e,t,n){var r,a=e._fullLayout,i=e._fullData,s=e.data,c=a._guiEditing,f=F(a._preGUI,c),g=o.extendDeepAll({},t);V(t);var v,m=M.traceFlags(),y={},x={};function b(){return n.map((function(){}))}function w(e){var t=p.id2name(e);-1===v.indexOf(t)&&v.push(t)}function _(e){return"LAYOUT"+e+".autorange"}function T(e){return"LAYOUT"+e+".range"}function A(e){for(var t=e;t<i.length;t++)if(i[t]._input===s[e])return i[t]}function S(r,i,o){if(Array.isArray(r))r.forEach((function(e){S(e,i,o)}));else if(!(r in t)&&!k.hasParent(t,r)){var l;if("LAYOUT"===r.substr(0,6))l=f(e.layout,r.replace("LAYOUT",""));else{var u=n[o];l=F(a._tracePreGUI[A(u)._fullInput.uid],c)(s[u],r)}r in x||(x[r]=b()),void 0===x[r][o]&&(x[r][o]=R(l.get())),void 0!==i&&l.set(i)}}function C(e){return function(t){return i[t][e]}}function L(e){return function(t,r){return!1===t?i[n[r]][e]:null}}for(var I in t){if(k.hasParent(t,I))throw new Error("cannot set "+I+" and a parent attribute simultaneously");var E,O,D,P,z,N,j=t[I];if("autobinx"!==I&&"autobiny"!==I||(I=I.charAt(I.length-1)+"bins",j=Array.isArray(j)?j.map(L(I)):!1===j?n.map(C(I)):null),y[I]=j,"LAYOUT"!==I.substr(0,6)){for(x[I]=b(),r=0;r<n.length;r++){if(E=s[n[r]],O=A(n[r]),P=(D=F(a._tracePreGUI[O._fullInput.uid],c)(E,I)).get(),void 0!==(z=Array.isArray(j)?j[r%j.length]:j)){var B=D.parts[D.parts.length-1],H=I.substr(0,I.length-B.length-1),G=H?H+".":"",U=H?l(O,H).get():O;if((N=d.getTraceValObject(O,D.parts))&&N.impliedEdits&&null!==z)for(var q in N.impliedEdits)S(o.relativeAttr(I,q),N.impliedEdits[q],r);else if("thicknessmode"!==B&&"lenmode"!==B||P===z||"fraction"!==z&&"pixels"!==z||!U){if("type"===I&&("pie"===z!=("pie"===P)||"funnelarea"===z!=("funnelarea"===P))){var Z="x",W="y";"bar"!==z&&"bar"!==P||"h"!==E.orientation||(Z="y",W="x"),o.swapAttrs(E,["?","?src"],"labels",Z),o.swapAttrs(E,["d?","?0"],"label",Z),o.swapAttrs(E,["?","?src"],"values",W),"pie"===P||"funnelarea"===P?(l(E,"marker.color").set(l(E,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):u.traceIs(E,"cartesian")&&l(E,"marker.colors").set(l(E,"marker.color").get())}}else{var Y=a._size,X=U.orient,$="top"===X||"bottom"===X;if("thicknessmode"===B){var J=$?Y.h:Y.w;S(G+"thickness",U.thickness*("fraction"===z?1/J:J),r)}else{var K=$?Y.w:Y.h;S(G+"len",U.len*("fraction"===z?1/K:K),r)}}x[I][r]=R(P);if(-1!==["swapxy","swapxyaxes","orientation","orientationaxes"].indexOf(I)){if("orientation"===I){D.set(z);var Q=E.x&&!E.y?"h":"v";if((D.get()||Q)===O.orientation)continue}else"orientationaxes"===I&&(E.orientation={v:"h",h:"v"}[O.orientation]);k.swapXYData(E),m.calc=m.clearAxisTypes=!0}else-1!==h.dataArrayContainers.indexOf(D.parts[0])?(k.manageArrayContainers(D,z,x),m.calc=!0):(N?N.arrayOk&&!u.traceIs(O,"regl")&&(o.isArrayOrTypedArray(z)||o.isArrayOrTypedArray(P))?m.calc=!0:M.update(m,N):m.calc=!0,D.set(z))}}if(-1!==["swapxyaxes","orientationaxes"].indexOf(I)&&p.swap(e,n),"orientationaxes"===I){var ee=l(e.layout,"hovermode");"x"===ee.get()?ee.set("y"):"y"===ee.get()?ee.set("x"):"x unified"===ee.get()?ee.set("y unified"):"y unified"===ee.get()&&ee.set("x unified")}if(-1!==["orientation","type"].indexOf(I)){for(v=[],r=0;r<n.length;r++){var te=s[n[r]];u.traceIs(te,"cartesian")&&(w(te.xaxis||"x"),w(te.yaxis||"y"))}S(v.map(_),!0,0),S(v.map(T),[0,1],0)}}else D=f(e.layout,I.replace("LAYOUT","")),x[I]=[R(D.get())],D.set(Array.isArray(j)?j[0]:j),m.calc=!0}return(m.calc||m.plot)&&(m.fullReplot=!0),{flags:m,undoit:x,redoit:y,traces:n,eventData:o.extendDeepNoArrays([],[g,n])}}function V(e){var t,n,r,a=o.counterRegex("axis",".title",!1,!1),i=/colorbar\.title$/,l=Object.keys(e);for(t=0;t<l.length;t++)n=l[t],r=e[n],"title"!==n&&!a.test(n)&&!i.test(n)||"string"!=typeof r&&"number"!=typeof r?n.indexOf("titlefont")>-1?s(n,n.replace("titlefont","title.font")):n.indexOf("titleposition")>-1?s(n,n.replace("titleposition","title.position")):n.indexOf("titleside")>-1?s(n,n.replace("titleside","title.side")):n.indexOf("titleoffset")>-1&&s(n,n.replace("titleoffset","title.offset")):s(n,n.replace("title","title.text"));function s(t,n){e[n]=e[t],delete e[t]}}function G(e,t,n){if(e=o.getGraphDiv(e),k.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);var r={};if("string"==typeof t)r[t]=n;else{if(!o.isPlainObject(t))return o.warn("Relayout fail.",t,n),Promise.reject();r=o.extendFlat({},t)}Object.keys(r).length&&(e.changed=!0);var a=X(e,r),i=a.flags;i.calc&&(e.calcdata=void 0);var l=[h.previousPromises];i.layoutReplot?l.push(T.layoutReplot):Object.keys(r).length&&(U(e,i,a)||h.supplyDefaults(e),i.legend&&l.push(T.doLegend),i.layoutstyle&&l.push(T.layoutStyles),i.axrange&&q(l,a.rangesAltered),i.ticks&&l.push(T.doTicksRelayout),i.modebar&&l.push(T.doModeBar),i.camera&&l.push(T.doCamera),i.colorbars&&l.push(T.doColorBars),l.push(C)),l.push(h.rehover,h.redrag),c.add(e,G,[e,a.undoit],G,[e,a.redoit]);var s=o.syncOrAsync(l,e);return s&&s.then||(s=Promise.resolve(e)),s.then((function(){return e.emit("plotly_relayout",a.eventData),e}))}function U(e,t,n){var r=e._fullLayout;if(!t.axrange)return!1;for(var a in t)if("axrange"!==a&&t[a])return!1;for(var i in n.rangesAltered){var o=p.id2name(i),l=e.layout[o],s=r[o];if(s.autorange=l.autorange,s.range=l.range.slice(),s.cleanRange(),s._matchGroup)for(var c in s._matchGroup)if(c!==i){var u=r[p.id2name(c)];u.autorange=s.autorange,u.range=s.range.slice(),u._input.range=s.range.slice()}}return!0}function q(e,t){var n=t?function(e){var n=[],r=!0;for(var a in t){var i=p.getFromId(e,a);if(n.push(a),i._matchGroup)for(var o in i._matchGroup)t[o]||n.push(o);i.automargin&&(r=!1)}return p.draw(e,n,{skipTitle:r})}:function(e){return p.draw(e,"redraw")};e.push(b,T.doAutoRangeAndConstraints,n,T.drawData,T.finalDraw)}var Z=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,W=/^[xyz]axis[0-9]*\.autorange$/,Y=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function X(e,t){var n,r,a,i=e.layout,s=e._fullLayout,c=s._guiEditing,h=F(s._preGUI,c),f=Object.keys(t),g=p.list(e),v=o.extendDeepAll({},t),m={};for(V(t),f=Object.keys(t),r=0;r<f.length;r++)if(0===f[r].indexOf("allaxes")){for(a=0;a<g.length;a++){var y=g[a]._id.substr(1),x=-1!==y.indexOf("scene")?y+".":"",b=f[r].replace("allaxes",x+g[a]._name);t[b]||(t[b]=t[f[r]])}delete t[f[r]]}var w=M.layoutFlags(),T={},S={};function C(e,n){if(Array.isArray(e))e.forEach((function(e){C(e,n)}));else if(!(e in t)&&!k.hasParent(t,e)){var r=h(i,e);e in S||(S[e]=R(r.get())),void 0!==n&&r.set(n)}}var L,I={};function E(e){var t=p.name2id(e.split(".")[0]);return I[t]=1,t}for(var O in t){if(k.hasParent(t,O))throw new Error("cannot set "+O+" and a parent attribute simultaneously");for(var D=h(i,O),P=t[O],z=D.parts.length-1;z>0&&"string"!=typeof D.parts[z];)z--;var N=D.parts[z],j=D.parts[z-1]+"."+N,B=D.parts.slice(0,z).join("."),H=l(e.layout,B).get(),G=l(s,B).get(),U=D.get();if(void 0!==P){T[O]=P,S[O]="reverse"===N?P:R(U);var q=d.getLayoutValObject(s,D.parts);if(q&&q.impliedEdits&&null!==P)for(var X in q.impliedEdits)C(o.relativeAttr(O,X),q.impliedEdits[X]);if(-1!==["width","height"].indexOf(O))if(P){C("autosize",null);var J="height"===O?"width":"height";C(J,s[J])}else s[O]=e._initialAutoSize[O];else if("autosize"===O)C("width",P?null:s.width),C("height",P?null:s.height);else if(j.match(Z))E(j),l(s,B+"._inputRange").set(null);else if(j.match(W)){E(j),l(s,B+"._inputRange").set(null);var K=l(s,B).get();K._inputDomain&&(K._input.domain=K._inputDomain.slice())}else j.match(Y)&&l(s,B+"._inputDomain").set(null);if("type"===N){var Q=H,ee="linear"===G.type&&"log"===P,te="log"===G.type&&"linear"===P;if(ee||te){if(Q&&Q.range)if(G.autorange)ee&&(Q.range=Q.range[1]>Q.range[0]?[1,2]:[2,1]);else{var ne=Q.range[0],re=Q.range[1];ee?(ne<=0&&re<=0&&C(B+".autorange",!0),ne<=0?ne=re/1e6:re<=0&&(re=ne/1e6),C(B+".range[0]",Math.log(ne)/Math.LN10),C(B+".range[1]",Math.log(re)/Math.LN10)):(C(B+".range[0]",Math.pow(10,ne)),C(B+".range[1]",Math.pow(10,re)))}else C(B+".autorange",!0);Array.isArray(s._subplots.polar)&&s._subplots.polar.length&&s[D.parts[0]]&&"radialaxis"===D.parts[1]&&delete s[D.parts[0]]._subplot.viewInitial["radialaxis.range"],u.getComponentMethod("annotations","convertCoords")(e,G,P,C),u.getComponentMethod("images","convertCoords")(e,G,P,C)}else C(B+".autorange",!0),C(B+".range",null);l(s,B+"._inputRange").set(null)}else if(N.match(A)){var ae=l(s,O).get(),ie=(P||{}).type;ie&&"-"!==ie||(ie="linear"),u.getComponentMethod("annotations","convertCoords")(e,ae,ie,C),u.getComponentMethod("images","convertCoords")(e,ae,ie,C)}var oe=_.containerArrayMatch(O);if(oe){n=oe.array,r=oe.index;var le=oe.property,se=q||{editType:"calc"};""!==r&&""===le&&(_.isAddVal(P)?S[O]=null:_.isRemoveVal(P)?S[O]=(l(i,n).get()||[])[r]:o.warn("unrecognized full object value",t)),M.update(w,se),m[n]||(m[n]={});var ce=m[n][r];ce||(ce=m[n][r]={}),ce[le]=P,delete t[O]}else"reverse"===N?(H.range?H.range.reverse():(C(B+".autorange",!0),H.range=[1,0]),G.autorange?w.calc=!0:w.plot=!0):(s._has("scatter-like")&&s._has("regl")&&"dragmode"===O&&("lasso"===P||"select"===P)&&"lasso"!==U&&"select"!==U||s._has("gl2d")?w.plot=!0:q?M.update(w,q):w.calc=!0,D.set(P))}}for(n in m){_.applyContainerArrayChanges(e,h(i,n),m[n],w,h)||(w.plot=!0)}var ue=s._axisConstraintGroups||[];for(L in I)for(r=0;r<ue.length;r++){var de=ue[r];if(de[L])for(var he in w.calc=!0,de)I[he]||(p.getFromId(e,he)._constraintShrinkable=!0)}return($(e)||t.height||t.width)&&(w.plot=!0),(w.plot||w.calc)&&(w.layoutReplot=!0),{flags:w,rangesAltered:I,undoit:S,redoit:T,eventData:v}}function $(e){var t=e._fullLayout,n=t.width,r=t.height;return e.layout.autosize&&h.plotAutoSize(e,e.layout,t),t.width!==n||t.height!==r}function J(e,n,r,a){if(e=o.getGraphDiv(e),k.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);o.isPlainObject(n)||(n={}),o.isPlainObject(r)||(r={}),Object.keys(n).length&&(e.changed=!0),Object.keys(r).length&&(e.changed=!0);var i=k.coerceTraceIndices(e,a),l=H(e,o.extendFlat({},n),i),s=l.flags,u=X(e,o.extendFlat({},r)),d=u.flags;(s.calc||d.calc)&&(e.calcdata=void 0),s.clearAxisTypes&&k.clearAxisTypes(e,i,r);var f=[];d.layoutReplot?f.push(T.layoutReplot):s.fullReplot?f.push(t.plot):(f.push(h.previousPromises),U(e,d,u)||h.supplyDefaults(e),s.style&&f.push(T.doTraceStyle),(s.colorbars||d.colorbars)&&f.push(T.doColorBars),d.legend&&f.push(T.doLegend),d.layoutstyle&&f.push(T.layoutStyles),d.axrange&&q(f,u.rangesAltered),d.ticks&&f.push(T.doTicksRelayout),d.modebar&&f.push(T.doModeBar),d.camera&&f.push(T.doCamera),f.push(C)),f.push(h.rehover,h.redrag),c.add(e,J,[e,l.undoit,u.undoit,l.traces],J,[e,l.redoit,u.redoit,l.traces]);var p=o.syncOrAsync(f,e);return p&&p.then||(p=Promise.resolve(e)),p.then((function(){return e.emit("plotly_update",{data:l.eventData,layout:u.eventData}),e}))}function K(e){return function(t){t._fullLayout._guiEditing=!0;var n=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,n}}var Q=[{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"}],ee=[{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 te(e,t){for(var n=0;n<t.length;n++){var r=t[n],a=e.match(r.pattern);if(a)return{head:a[1],attr:r.attr}}}function ne(e,t){var n=l(t,e).get();if(void 0!==n)return n;var r=e.split(".");for(r.pop();r.length>1;)if(r.pop(),void 0!==(n=l(t,r.join(".")+".uirevision").get()))return n;return t.uirevision}function re(e,t){for(var n=0;n<t.length;n++)if(t[n]._fullInput.uid===e)return n;return-1}function ae(e,t,n){for(var r=0;r<t.length;r++)if(t[r].uid===e)return r;return!t[n]||t[n].uid?-1:n}function ie(e,t){var n=o.isPlainObject(e),r=Array.isArray(e);return n||r?(n&&o.isPlainObject(t)||r&&Array.isArray(t))&&JSON.stringify(e)===JSON.stringify(t):e===t}function oe(e,t,n,r){var a,i,s,c=r.getValObject,u=r.flags,d=r.immutable,h=r.inArray,f=r.arrayIndex;function p(){var e=a.editType;h&&-1!==e.indexOf("arraydraw")?o.pushUnique(u.arrays[h],f):(M.update(u,a),"none"!==e&&u.nChanges++,r.transition&&a.anim&&u.nChangesAnim++,(Z.test(s)||W.test(s))&&(u.rangesAltered[n[0]]=1),Y.test(s)&&l(t,"_inputDomain").set(null),"datarevision"===i&&(u.newDataRevision=1))}function g(e){return"data_array"===e.valType||e.arrayOk}for(i in e){if(u.calc&&!r.transition)return;var v=e[i],m=t[i],y=n.concat(i);if(s=y.join("."),"_"!==i.charAt(0)&&"function"!=typeof v&&v!==m){if(("tick0"===i||"dtick"===i)&&"geo"!==n[0]){var x=t.tickmode;if("auto"===x||"array"===x||!x)continue}if(("range"!==i||!t.autorange)&&("zmin"!==i&&"zmax"!==i||"contourcarpet"!==t.type)&&(a=c(y))&&(!a._compareAsJSON||JSON.stringify(v)!==JSON.stringify(m))){var b,w=a.valType,_=g(a),k=Array.isArray(v),T=Array.isArray(m);if(k&&T){var A="_input_"+i,S=e[A],C=t[A];if(Array.isArray(S)&&S===C)continue}if(void 0===m)_&&k?u.calc=!0:p();else if(a._isLinkedToArray){var L=[],I=!1;h||(u.arrays[i]=L);var E=Math.min(v.length,m.length),O=Math.max(v.length,m.length);if(E!==O){if("arraydraw"!==a.editType){p();continue}I=!0}for(b=0;b<E;b++)oe(v[b],m[b],y.concat(b),o.extendFlat({inArray:i,arrayIndex:b},r));if(I)for(b=E;b<O;b++)L.push(b)}else!w&&o.isPlainObject(v)?oe(v,m,y,r):_?k&&T?(d&&(u.calc=!0),(d||r.newDataRevision)&&p()):k!==T?u.calc=!0:p():k&&T&&v.length===m.length&&String(v)===String(m)||p()}}}for(i in t)if(!(i in e)&&"_"!==i.charAt(0)&&"function"!=typeof t[i]){if(g(a=c(n.concat(i)))&&Array.isArray(t[i]))return void(u.calc=!0);p()}}function le(e){var t=r.select(e),n=e._fullLayout;if(n._container=t.selectAll(".plot-container").data([0]),n._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),n._paperdiv=n._container.selectAll(".svg-container").data([0]),n._paperdiv.enter().append("div").classed("svg-container",!0).style("position","relative"),n._glcontainer=n._paperdiv.selectAll(".gl-container").data([{}]),n._glcontainer.enter().append("div").classed("gl-container",!0),n._paperdiv.selectAll(".main-svg").remove(),n._paperdiv.select(".modebar-container").remove(),n._paper=n._paperdiv.insert("svg",":first-child").classed("main-svg",!0),n._toppaper=n._paperdiv.append("svg").classed("main-svg",!0),n._modebardiv=n._paperdiv.append("div"),n._hoverpaper=n._paperdiv.append("svg").classed("main-svg",!0),!n._uid){var a={};r.selectAll("defs").each((function(){this.id&&(a[this.id.split("-")[1]]=1)})),n._uid=o.randstr(a)}n._paperdiv.selectAll(".main-svg").attr(y.svgAttrs),n._defs=n._paper.append("defs").attr("id","defs-"+n._uid),n._clips=n._defs.append("g").classed("clips",!0),n._topdefs=n._toppaper.append("defs").attr("id","topdefs-"+n._uid),n._topclips=n._topdefs.append("g").classed("clips",!0),n._bgLayer=n._paper.append("g").classed("bglayer",!0),n._draggers=n._paper.append("g").classed("draglayer",!0);var i=n._paper.append("g").classed("layer-below",!0);n._imageLowerLayer=i.append("g").classed("imagelayer",!0),n._shapeLowerLayer=i.append("g").classed("shapelayer",!0),n._cartesianlayer=n._paper.append("g").classed("cartesianlayer",!0),n._polarlayer=n._paper.append("g").classed("polarlayer",!0),n._ternarylayer=n._paper.append("g").classed("ternarylayer",!0),n._geolayer=n._paper.append("g").classed("geolayer",!0),n._funnelarealayer=n._paper.append("g").classed("funnelarealayer",!0),n._pielayer=n._paper.append("g").classed("pielayer",!0),n._treemaplayer=n._paper.append("g").classed("treemaplayer",!0),n._sunburstlayer=n._paper.append("g").classed("sunburstlayer",!0),n._indicatorlayer=n._toppaper.append("g").classed("indicatorlayer",!0),n._glimages=n._paper.append("g").classed("glimages",!0);var l=n._toppaper.append("g").classed("layer-above",!0);n._imageUpperLayer=l.append("g").classed("imagelayer",!0),n._shapeUpperLayer=l.append("g").classed("shapelayer",!0),n._infolayer=n._toppaper.append("g").classed("infolayer",!0),n._menulayer=n._toppaper.append("g").classed("menulayer",!0),n._zoomlayer=n._toppaper.append("g").classed("zoomlayer",!0),n._hoverlayer=n._hoverpaper.append("g").classed("hoverlayer",!0),n._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}t.animate=function(e,t,n){if(e=o.getGraphDiv(e),!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var r=e._transitionData;r._frameQueue||(r._frameQueue=[]);var a=(n=h.supplyAnimationDefaults(n)).transition,i=n.frame;function l(e){return Array.isArray(a)?e>=a.length?a[0]:a[e]:a}function s(e){return Array.isArray(i)?e>=i.length?i[0]:i[e]:i}function c(e,t){var n=0;return function(){if(e&&++n===t)return e()}}return void 0===r._frameWaitingCnt&&(r._frameWaitingCnt=0),new Promise((function(i,u){function d(){r._currentFrame&&r._currentFrame.onComplete&&r._currentFrame.onComplete();var t=r._currentFrame=r._frameQueue.shift();if(t){var n=t.name?t.name.toString():null;e._fullLayout._currentFrame=n,r._lastFrameAt=Date.now(),r._timeToNext=t.frameOpts.duration,h.transition(e,t.frame.data,t.frame.layout,k.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then((function(){t.onComplete&&t.onComplete()})),e.emit("plotly_animatingframe",{name:n,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(r._animationRaf),r._animationRaf=null}function f(){e.emit("plotly_animating"),r._lastFrameAt=-1/0,r._timeToNext=0,r._runningTransitions=0,r._currentFrame=null;var t=function(){r._animationRaf=window.requestAnimationFrame(t),Date.now()-r._lastFrameAt>r._timeToNext&&d()};t()}var p,g,v=0;function m(e){return Array.isArray(a)?v>=a.length?e.transitionOpts=a[v]:e.transitionOpts=a[0]:e.transitionOpts=a,v++,e}var y=[],x=null==t,b=Array.isArray(t);if(!x&&!b&&o.isPlainObject(t))y.push({type:"object",data:m(o.extendFlat({},t))});else if(x||-1!==["string","number"].indexOf(typeof t))for(p=0;p<r._frames.length;p++)(g=r._frames[p])&&(x||String(g.group)===String(t))&&y.push({type:"byname",name:String(g.name),data:m({name:g.name})});else if(b)for(p=0;p<t.length;p++){var w=t[p];-1!==["number","string"].indexOf(typeof w)?(w=String(w),y.push({type:"byname",name:w,data:m({name:w})})):o.isPlainObject(w)&&y.push({type:"object",data:m(o.extendFlat({},w))})}for(p=0;p<y.length;p++)if("byname"===(g=y[p]).type&&!r._frameHash[g.data.name])return o.warn('animate failure: frame not found: "'+g.data.name+'"'),void u();-1!==["next","immediate"].indexOf(n.mode)&&function(){if(0!==r._frameQueue.length){for(;r._frameQueue.length;){var t=r._frameQueue.pop();t.onInterrupt&&t.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}(),"reverse"===n.direction&&y.reverse();var _=e._fullLayout._currentFrame;if(_&&n.fromcurrent){var T=-1;for(p=0;p<y.length;p++)if("byname"===(g=y[p]).type&&g.name===_){T=p;break}if(T>0&&T<y.length-1){var M=[];for(p=0;p<y.length;p++)g=y[p],("byname"!==y[p].type||p>T)&&M.push(g);y=M}}y.length>0?function(t){if(0!==t.length){for(var a=0;a<t.length;a++){var o;o="byname"===t[a].type?h.computeFrame(e,t[a].name):t[a].data;var d=s(a),p=l(a);p.duration=Math.min(p.duration,d.duration);var g={frame:o,name:t[a].name,frameOpts:d,transitionOpts:p};a===t.length-1&&(g.onComplete=c(i,2),g.onInterrupt=u),r._frameQueue.push(g)}"immediate"===n.mode&&(r._lastFrameAt=-1/0),r._animationRaf||f()}}(y):(e.emit("plotly_animated"),i())}))},t.addFrames=function(e,t,n){if(e=o.getGraphDiv(e),null==t)return Promise.resolve();if(!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var r,a,i,l,s=e._transitionData._frames,u=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var d=s.length+2*t.length,f=[],p={};for(r=t.length-1;r>=0;r--)if(o.isPlainObject(t[r])){var g=t[r].name,v=(u[g]||p[g]||{}).name,m=t[r].name,y=u[v]||p[v];v&&m&&"number"==typeof m&&y&&S<5&&(S++,o.warn('addFrames: overwriting frame "'+(u[v]||p[v]).name+'" with a frame whose name of type "number" also equates to "'+v+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===S&&o.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[g]={name:g},f.push({frame:h.supplyFrameDefaults(t[r]),index:n&&void 0!==n[r]&&null!==n[r]?n[r]:d+r})}f.sort((function(e,t){return e.index>t.index?-1:e.index<t.index?1:0}));var x=[],b=[],w=s.length;for(r=f.length-1;r>=0;r--){if("number"==typeof(a=f[r].frame).name&&o.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;u[a.name="frame "+e._transitionData._counter++];);if(u[a.name]){for(i=0;i<s.length&&(s[i]||{}).name!==a.name;i++);x.push({type:"replace",index:i,value:a}),b.unshift({type:"replace",index:i,value:s[i]})}else l=Math.max(0,Math.min(f[r].index,w)),x.push({type:"insert",index:l,value:a}),b.unshift({type:"delete",index:l}),w++}var _=h.modifyFrames,k=h.modifyFrames,T=[e,b],M=[e,x];return c&&c.add(e,_,T,k,M),h.modifyFrames(e,x)},t.deleteFrames=function(e,t){if(e=o.getGraphDiv(e),!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var n,r,a=e._transitionData._frames,i=[],l=[];if(!t)for(t=[],n=0;n<a.length;n++)t.push(n);for((t=t.slice()).sort(),n=t.length-1;n>=0;n--)r=t[n],i.push({type:"delete",index:r}),l.unshift({type:"insert",index:r,value:a[r]});var s=h.modifyFrames,u=h.modifyFrames,d=[e,l],f=[e,i];return c&&c.add(e,s,d,u,f),h.modifyFrames(e,i)},t.addTraces=function e(n,r,a){n=o.getGraphDiv(n);var i,l,s=[],u=t.deleteTraces,d=e,h=[n,s],f=[n,r];for(function(e,t,n){var r,a;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]),r=0;r<t.length;r++)if("object"!=typeof(a=t[r])||Array.isArray(a)||null===a)throw new Error("all values in traces array must be non-array objects");if(void 0===n||Array.isArray(n)||(n=[n]),void 0!==n&&n.length!==t.length)throw new Error("if indices is specified, traces.length must equal indices.length")}(n,r,a),Array.isArray(r)||(r=[r]),r=r.map((function(e){return o.extendFlat({},e)})),k.cleanData(r),i=0;i<r.length;i++)n.data.push(r[i]);for(i=0;i<r.length;i++)s.push(-r.length+i);if(void 0===a)return l=t.redraw(n),c.add(n,u,h,d,f),l;Array.isArray(a)||(a=[a]);try{P(n,s,a)}catch(e){throw n.data.splice(n.data.length-r.length,r.length),e}return c.startSequence(n),c.add(n,u,h,d,f),l=t.moveTraces(n,s,a),c.stopSequence(n),l},t.deleteTraces=function e(n,r){n=o.getGraphDiv(n);var a,i,l=[],s=t.addTraces,u=e,d=[n,l,r],h=[n,r];if(void 0===r)throw new Error("indices must be an integer or array of integers.");for(Array.isArray(r)||(r=[r]),D(n,r,"indices"),(r=O(r,n.data.length-1)).sort(o.sorterDes),a=0;a<r.length;a+=1)i=n.data.splice(r[a],1)[0],l.push(i);var f=t.redraw(n);return c.add(n,s,d,u,h),f},t.extendTraces=function e(n,r,a,i){function l(e,t,n){var r,a;if(o.isTypedArray(e))if(n<0){var i=new e.constructor(0),l=N(e,t);n<0?(r=l,a=i):(r=i,a=l)}else if(r=new e.constructor(n),a=new e.constructor(e.length+t.length-n),n===t.length)r.set(t),a.set(e);else if(n<t.length){var s=t.length-n;r.set(t.subarray(s)),a.set(e),a.set(t.subarray(0,s),e.length)}else{var c=n-t.length,u=e.length-c;r.set(e.subarray(u)),r.set(t,c),a.set(e.subarray(0,u))}else r=e.concat(t),a=n>=0&&n<r.length?r.splice(0,r.length-n):[];return[r,a]}var s=z(n=o.getGraphDiv(n),r,a,i,l),u=t.redraw(n),d=[n,s.update,a,s.maxPoints];return c.add(n,t.prependTraces,d,e,arguments),u},t.moveTraces=function e(n,r,a){var i,l=[],s=[],u=e,d=e,h=[n=o.getGraphDiv(n),a,r],f=[n,r,a];if(P(n,r,a),r=Array.isArray(r)?r:[r],void 0===a)for(a=[],i=0;i<r.length;i++)a.push(-r.length+i);for(a=Array.isArray(a)?a:[a],r=O(r,n.data.length-1),a=O(a,n.data.length-1),i=0;i<n.data.length;i++)-1===r.indexOf(i)&&l.push(n.data[i]);for(i=0;i<r.length;i++)s.push({newIndex:a[i],trace:n.data[r[i]]});for(s.sort((function(e,t){return e.newIndex-t.newIndex})),i=0;i<s.length;i+=1)l.splice(s[i].newIndex,0,s[i].trace);n.data=l;var p=t.redraw(n);return c.add(n,u,h,d,f),p},t.prependTraces=function e(n,r,a,i){function l(e,t,n){var r,a;if(o.isTypedArray(e))if(n<=0){var i=new e.constructor(0),l=N(t,e);n<0?(r=l,a=i):(r=i,a=l)}else if(r=new e.constructor(n),a=new e.constructor(e.length+t.length-n),n===t.length)r.set(t),a.set(e);else if(n<t.length){var s=t.length-n;r.set(t.subarray(0,s)),a.set(t.subarray(s)),a.set(e,s)}else{var c=n-t.length;r.set(t),r.set(e.subarray(0,c),t.length),a.set(e.subarray(c))}else r=t.concat(e),a=n>=0&&n<r.length?r.splice(n,r.length):[];return[r,a]}var s=z(n=o.getGraphDiv(n),r,a,i,l),u=t.redraw(n),d=[n,s.update,a,s.maxPoints];return c.add(n,t.extendTraces,d,e,arguments),u},t.newPlot=function(e,n,r,a){return e=o.getGraphDiv(e),h.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),h.purge(e),t.plot(e,n,r,a)},t.plot=function(e,n,a,i){var l;if(e=o.getGraphDiv(e),s.init(e),o.isPlainObject(n)){var c=n;n=c.data,a=c.layout,i=c.config,l=c.frames}if(!1===s.triggerHandler(e,"plotly_beforeplot",[n,a,i]))return Promise.reject();n||a||o.isPlotDiv(e)||o.warn("Calling Plotly.plot as if redrawing but this container doesn't yet have a plot.",e),E(e,i),a||(a={}),r.select(e).classed("js-plotly-plot",!0),g.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var d=0===(e.data||[]).length&&Array.isArray(n);Array.isArray(n)&&(k.cleanData(n),d?e.data=n:e.data.push.apply(e.data,n),e.empty=!1),e.layout&&!d||(e.layout=k.cleanLayout(a)),h.supplyDefaults(e);var v=e._fullLayout,y=v._has("cartesian");if(!v._has("polar")&&n&&n[0]&&n[0].r)return o.log("Legacy polar charts are deprecated!"),function(e,t,n){var a=r.select(e).selectAll(".plot-container").data([0]);a.enter().insert("div",":first-child").classed("plot-container plotly",!0);var i=a.selectAll(".svg-container").data([0]);i.enter().append("div").classed("svg-container",!0).style("position","relative"),i.html(""),t&&(e.data=t);n&&(e.layout=n);f.manager.fillLayout(e),i.style({width:e._fullLayout.width+"px",height:e._fullLayout.height+"px"}),e.framework=f.manager.framework(e),e.framework({data:e.data,layout:e.layout},i.node()),e.framework.setUndoPoint();var l=e.framework.svg(),s=1,c=e._fullLayout.title?e._fullLayout.title.text:"";""!==c&&c||(s=0);var u=function(){this.call(x.convertToTspans,e)},d=l.select(".title-group text").call(u);if(e._context.edits.titleText){var p=o._(e,"Click to enter Plot title");c&&c!==p||(s=.2,d.attr({"data-unformatted":p}).text(p).style({opacity:s}).on("mouseover.opacity",(function(){r.select(this).transition().duration(100).style("opacity",1)})).on("mouseout.opacity",(function(){r.select(this).transition().duration(1e3).style("opacity",0)})));var g=function(){this.call(x.makeEditable,{gd:e}).on("edit",(function(t){e.framework({layout:{title:{text:t}}}),this.text(t).call(u),this.call(g)})).on("cancel",(function(){var e=this.attr("data-unformatted");this.text(e).call(u)}))};d.call(g)}return e._context.setBackground(e,e._fullLayout.paper_bgcolor),h.addLinks(e),Promise.resolve()}(e,n,a);v._replotting=!0,(d||v._shouldCreateBgLayer)&&(le(e),v._shouldCreateBgLayer&&delete v._shouldCreateBgLayer),e.framework!==le&&(e.framework=le,le(e)),g.initGradients(e),d&&p.saveShowSpikeInitial(e);var b=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;b&&h.doCalcdata(e);for(var w=0;w<e.calcdata.length;w++)e.calcdata[w][0].trace=e._fullData[w];e._context.responsive?e._responsiveChartHandler||(e._responsiveChartHandler=function(){o.isHidden(e)||h.resize(e)},window.addEventListener("resize",e._responsiveChartHandler)):o.clearResponsive(e);var _=o.extendFlat({},v._size),M=0;function A(){if(h.clearAutoMarginIds(e),T.drawMarginPushers(e),p.allowAutoMargin(e),v._has("pie"))for(var t=e._fullData,n=0;n<t.length;n++){var r=t[n];"pie"===r.type&&r.automargin&&h.allowAutoMargin(e,"pie."+r.uid+".automargin")}return h.doAutoMargin(e),h.previousPromises(e)}function S(){e._transitioning||(T.doAutoRangeAndConstraints(e),d&&p.saveRangeInitial(e),u.getComponentMethod("rangeslider","calcAutorange")(e))}var L=[h.previousPromises,function(){if(l)return t.addFrames(e,l)},function t(){for(var n=v._basePlotModules,r=0;r<n.length;r++)n[r].drawFramework&&n[r].drawFramework(e);if(!v._glcanvas&&v._has("gl")&&(v._glcanvas=v._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],(function(e){return e.key})),v._glcanvas.enter().append("canvas").attr("class",(function(e){return"gl-canvas gl-canvas-"+e.key.replace("Layer","")})).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"})),v._glcanvas){v._glcanvas.attr("width",v.width).attr("height",v.height);var a=v._glcanvas.data()[0].regl;if(a&&(Math.floor(v.width)!==a._gl.drawingBufferWidth||Math.floor(v.height)!==a._gl.drawingBufferHeight)){var i="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(!M)return o.log(i+" Clearing graph and plotting again."),h.cleanPlot([],{},e._fullData,v),h.supplyDefaults(e),v=e._fullLayout,h.doCalcdata(e),M++,t();o.error(i)}}return"h"===v.modebar.orientation?v._modebardiv.style("height",null).style("width","100%"):v._modebardiv.style("width",null).style("height",v.height+"px"),h.previousPromises(e)},A,function(){if(h.didMarginChange(_,v._size))return o.syncOrAsync([A,T.layoutStyles],e)}];y&&L.push((function(){if(b)return o.syncOrAsync([u.getComponentMethod("shapes","calcAutorange"),u.getComponentMethod("annotations","calcAutorange"),S],e);S()})),L.push(T.layoutStyles),y&&L.push((function(){return p.draw(e,d?"":"redraw")})),L.push(T.drawData,T.finalDraw,m,h.addLinks,h.rehover,h.redrag,h.doAutoMargin,h.previousPromises);var I=o.syncOrAsync(L,e);return I&&I.then||(I=Promise.resolve()),I.then((function(){return C(e),e}))},t.purge=function(e){var t=(e=o.getGraphDiv(e))._fullLayout||{},n=e._fullData||[];return h.cleanPlot([],{},n,t),h.purge(e),s.purge(e),t._container&&t._container.remove(),delete e._context,e},t.react=function(e,n,r,a){var i,s;e=o.getGraphDiv(e),k.clearPromiseQueue(e);var c=e._fullData,f=e._fullLayout;if(o.isPlotDiv(e)&&c&&f){if(o.isPlainObject(n)){var p=n;n=p.data,r=p.layout,a=p.config,i=p.frames}var g=!1;if(a){var v=o.extendDeep({},e._context);e._context=void 0,E(e,a),g=function e(t,n){var r;for(r in t)if("_"!==r.charAt(0)){var a=t[r],i=n[r];if(a!==i)if(o.isPlainObject(a)&&o.isPlainObject(i)){if(e(a,i))return!0}else{if(!Array.isArray(a)||!Array.isArray(i))return!0;if(a.length!==i.length)return!0;for(var l=0;l<a.length;l++)if(a[l]!==i[l]){if(!o.isPlainObject(a[l])||!o.isPlainObject(i[l]))return!0;if(e(a[l],i[l]))return!0}}}}(v,e._context)}e.data=n||[],k.cleanData(e.data),e.layout=r||{},k.cleanLayout(e.layout),function(e,t,n,r){var a,i,s,c,u,d,h,f,p=r._preGUI,g=[],v={};for(a in p){if(u=te(a,Q)){if(i=u.attr||u.head+".uirevision",(c=(s=l(r,i).get())&&ne(i,t))&&c===s&&(null===(d=p[a])&&(d=void 0),ie(f=(h=l(t,a)).get(),d))){void 0===f&&"autorange"===a.substr(a.length-9)&&g.push(a.substr(0,a.length-10)),h.set(R(l(r,a).get()));continue}}else o.warn("unrecognized GUI edit: "+a);delete p[a],"range["===a.substr(a.length-8,6)&&(v[a.substr(0,a.length-9)]=1)}for(var m=0;m<g.length;m++){var y=g[m];if(v[y]){var x=l(t,y).get();x&&delete x.autorange}}var b=r._tracePreGUI;for(var w in b){var _,k=b[w],T=null;for(a in k){if(!T){var M=re(w,n);if(M<0){delete b[w];break}var A=ae(w,e,(_=n[M]._fullInput).index);if(A<0){delete b[w];break}T=e[A]}if(u=te(a,ee)){if(u.attr?c=(s=l(r,u.attr).get())&&ne(u.attr,t):(s=_.uirevision,void 0===(c=T.uirevision)&&(c=t.uirevision)),c&&c===s&&(null===(d=k[a])&&(d=void 0),ie(f=(h=l(T,a)).get(),d))){h.set(R(l(_,a).get()));continue}}else o.warn("unrecognized GUI edit: "+a+" in trace uid "+w);delete k[a]}}}(e.data,e.layout,c,f),h.supplyDefaults(e,{skipUpdateCalc:!0});var m=e._fullData,y=e._fullLayout,x=void 0===y.datarevision,b=y.transition,w=function(e,t,n,r,a){var i=M.layoutFlags();function o(e){return d.getLayoutValObject(n,e)}i.arrays={},i.rangesAltered={},i.nChanges=0,i.nChangesAnim=0,oe(t,n,[],{getValObject:o,flags:i,immutable:r,transition:a,gd:e}),(i.plot||i.calc)&&(i.layoutReplot=!0);a&&i.nChanges&&i.nChangesAnim&&(i.anim=i.nChanges===i.nChangesAnim?"all":"some");return i}(e,f,y,x,b),_=w.newDataRevision,A=function(e,t,n,r,a,i){var o=t.length===n.length;if(!a&&!o)return{fullReplot:!0,calc:!0};var l,s,c=M.traceFlags();c.arrays={},c.nChanges=0,c.nChangesAnim=0;var u={getValObject:function(e){var t=d.getTraceValObject(s,e);return!s._module.animatable&&t.anim&&(t.anim=!1),t},flags:c,immutable:r,transition:a,newDataRevision:i,gd:e},f={};for(l=0;l<t.length;l++)if(n[l]){if(s=n[l]._fullInput,h.hasMakesDataTransform(s)&&(s=n[l]),f[s.uid])continue;f[s.uid]=1,oe(t[l]._fullInput,s,[],u)}(c.calc||c.plot)&&(c.fullReplot=!0);a&&c.nChanges&&c.nChangesAnim&&(c.anim=c.nChanges===c.nChangesAnim&&o?"all":"some");return c}(e,c,m,x,b,_);$(e)&&(w.layoutReplot=!0),A.calc||w.calc?e.calcdata=void 0:h.supplyDefaultsUpdateCalc(e.calcdata,m);var S=[];if(i&&(e._transitionData={},h.createTransitionData(e),S.push((function(){return t.addFrames(e,i)}))),y.transition&&!g&&(A.anim||w.anim))h.doCalcdata(e),T.doAutoRangeAndConstraints(e),S.push((function(){return h.transitionFromReact(e,A,w,f)}));else if(A.fullReplot||w.layoutReplot||g)e._fullLayout._skipDefaults=!0,S.push(t.plot);else{for(var L in w.arrays){var I=w.arrays[L];if(I.length){var O=u.getComponentMethod(L,"drawOne");if(O!==o.noop)for(var D=0;D<I.length;D++)O(e,I[D]);else{var P=u.getComponentMethod(L,"draw");if(P===o.noop)throw new Error("cannot draw components: "+L);P(e)}}}S.push(h.previousPromises),A.style&&S.push(T.doTraceStyle),(A.colorbars||w.colorbars)&&S.push(T.doColorBars),w.legend&&S.push(T.doLegend),w.layoutstyle&&S.push(T.layoutStyles),w.axrange&&q(S),w.ticks&&S.push(T.doTicksRelayout),w.modebar&&S.push(T.doModeBar),w.camera&&S.push(T.doCamera),S.push(C)}S.push(h.rehover,h.redrag),(s=o.syncOrAsync(S,e))&&s.then||(s=Promise.resolve(e))}else s=t.newPlot(e,n,r,a);return s.then((function(){return e.emit("plotly_react",{data:n,layout:r}),e}))},t.redraw=function(e){if(e=o.getGraphDiv(e),!o.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return k.cleanData(e.data),k.cleanLayout(e.layout),e.calcdata=void 0,t.plot(e).then((function(){return e.emit("plotly_redraw"),e}))},t.relayout=G,t.restyle=j,t.setPlotConfig=function(e){return o.extendFlat(w,e)},t.update=J,t._guiRelayout=K(G),t._guiRestyle=K(j),t._guiUpdate=K(J),t._storeDirectGUIEdit=function(e,t,n){for(var r in n){B(r,l(e,r).get(),n[r],t)}}},tos6:function(e,t,n){"use strict";var r=n("7CC7").dot,a=n("6AZA").BADNUM,i=e.exports={};i.tester=function(e){var t,n=e.slice(),r=n[0][0],i=r,o=n[0][1],l=o;for(n.push(n[0]),t=1;t<n.length;t++)r=Math.min(r,n[t][0]),i=Math.max(i,n[t][0]),o=Math.min(o,n[t][1]),l=Math.max(l,n[t][1]);var s,c=!1;5===n.length&&(n[0][0]===n[1][0]?n[2][0]===n[3][0]&&n[0][1]===n[3][1]&&n[1][1]===n[2][1]&&(c=!0,s=function(e){return e[0]===n[0][0]}):n[0][1]===n[1][1]&&n[2][1]===n[3][1]&&n[0][0]===n[3][0]&&n[1][0]===n[2][0]&&(c=!0,s=function(e){return e[1]===n[0][1]}));var u=!0,d=n[0];for(t=1;t<n.length;t++)if(d[0]!==n[t][0]||d[1]!==n[t][1]){u=!1;break}return{xmin:r,xmax:i,ymin:o,ymax:l,pts:n,contains:c?function(e,t){var n=e[0],c=e[1];return!(n===a||n<r||n>i||c===a||c<o||c>l)&&(!t||!s(e))}:function(e,t){var s=e[0],c=e[1];if(s===a||s<r||s>i||c===a||c<o||c>l)return!1;var u,d,h,f,p,g=n.length,v=n[0][0],m=n[0][1],y=0;for(u=1;u<g;u++)if(d=v,h=m,v=n[u][0],m=n[u][1],!(s<(f=Math.min(d,v))||s>Math.max(d,v)||c>Math.max(h,m)))if(c<Math.min(h,m))s!==f&&y++;else{if(c===(p=v===d?c:h+(s-d)*(m-h)/(v-d)))return 1!==u||!t;c<=p&&s!==f&&y++}return y%2==1},isRect:c,degenerate:u}},i.isSegmentBent=function(e,t,n,a){var i,o,l,s=e[t],c=[e[n][0]-s[0],e[n][1]-s[1]],u=r(c,c),d=Math.sqrt(u),h=[-c[1]/d,c[0]/d];for(i=t+1;i<n;i++)if(o=[e[i][0]-s[0],e[i][1]-s[1]],(l=r(o,c))<0||l>u||Math.abs(r(o,h))>a)return!0;return!1},i.filter=function(e,t){var n=[e[0]],r=0,a=0;function o(o){e.push(o);var l=n.length,s=r;n.splice(a+1);for(var c=s+1;c<e.length;c++)(c===e.length-1||i.isSegmentBent(e,s,c+1,t))&&(n.push(e[c]),n.length<l-2&&(r=c,a=n.length-1),s=c)}e.length>1&&o(e.pop());return{addPt:o,raw:e,filtered:n}}},tt4z:function(e,t,n){"use strict";var r=n("u3HJ");t.name="treemap",t.plot=function(e,n,a,i){r.plotBasePlot(t.name,e,n,a,i)},t.clean=function(e,n,a,i){r.cleanBasePlot(t.name,e,n,a,i)}},u0qo:function(e,t,n){"use strict";var r=n("qTWP"),a=n("mEVB"),i=n("0wH6"),o=n("plED").templatedArray;e.exports=o("annotation",{visible:{valType:"boolean",role:"info",dflt:!0,editType:"calc+arraydraw",description:["Determines whether or not this annotation is visible."].join(" ")},text:{valType:"string",role:"info",editType:"calc+arraydraw",description:["Sets the text associated with this annotation.","Plotly uses a subset of HTML tags to do things like","newline (<br>), bold (<b></b>), italics (<i></i>),","hyperlinks (<a href='...'></a>). Tags <em>, <sup>, <sub>","<span> are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,role:"style",editType:"calc+arraydraw",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:a({editType:"calc+arraydraw",colorEditType:"arraydraw",description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,role:"style",editType:"calc+arraydraw",description:["Sets an explicit width for the text box. null (default) lets the","text set the box width. Wider text will be clipped.","There is no automatic wrapping; use <br> to start a new line."].join(" ")},height:{valType:"number",min:1,dflt:null,role:"style",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,role:"style",editType:"arraydraw",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",role:"style",editType:"arraydraw",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans two or more lines","(i.e. `text` contains one or more <br> HTML tags) or if an","explicit width is set to override the text width."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",role:"style",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)",role:"style",editType:"arraydraw",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",editType:"arraydraw",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,role:"style",editType:"calc+arraydraw",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,role:"style",editType:"calc+arraydraw",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,role:"style",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",role:"style",editType:"arraydraw",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:r.length,dflt:1,role:"style",editType:"arraydraw",description:"Sets the end annotation arrow head style."},startarrowhead:{valType:"integer",min:0,max:r.length,dflt:1,role:"style",editType:"arraydraw",description:"Sets the start annotation arrow head style."},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",role:"style",editType:"arraydraw",description:"Sets the annotation arrow head position."},arrowsize:{valType:"number",min:.3,dflt:1,role:"style",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,role:"style",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,role:"style",editType:"calc+arraydraw",description:"Sets the width (in px) of annotation arrow line."},standoff:{valType:"number",min:0,dflt:0,role:"style",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,role:"style",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",role:"info",editType:"calc+arraydraw",description:["Sets the x component of the arrow tail about the arrow head.","If `axref` is `pixel`, a positive (negative) ","component corresponds to an arrow pointing","from right to left (left to right).","If `axref` is an axis, this is an absolute value on that axis,","like `x`, NOT a relative value."].join(" ")},ay:{valType:"any",role:"info",editType:"calc+arraydraw",description:["Sets the y component of the arrow tail about the arrow head.","If `ayref` is `pixel`, a positive (negative) ","component corresponds to an arrow pointing","from bottom to top (top to bottom).","If `ayref` is an axis, this is an absolute value on that axis,","like `y`, NOT a relative value."].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.x.toString()],role:"info",editType:"calc",description:["Indicates in what terms the tail of the annotation (ax,ay) ","is specified. If `pixel`, `ax` is a relative offset in pixels ","from `x`. If set to an x axis id (e.g. *x* or *x2*), `ax` is ","specified in the same terms as that axis. This is useful ","for trendline annotations which should continue to indicate ","the correct trend when zoomed."].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",i.idRegex.y.toString()],role:"info",editType:"calc",description:["Indicates in what terms the tail of the annotation (ax,ay) ","is specified. If `pixel`, `ay` is a relative offset in pixels ","from `y`. If set to a y axis id (e.g. *y* or *y2*), `ay` is ","specified in the same terms as that axis. This is useful ","for trendline annotations which should continue to indicate ","the correct trend when zoomed."].join(" ")},xref:{valType:"enumerated",values:["paper",i.idRegex.x.toString()],role:"info",editType:"calc",description:["Sets the annotation's x coordinate axis.","If set to an x axis id (e.g. *x* or *x2*), the `x` position","refers to an x coordinate","If set to *paper*, the `x` position refers to the distance from","the left side of the plotting area in normalized coordinates","where 0 (1) corresponds to the left (right) side."].join(" ")},x:{valType:"any",role:"info",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",role:"info",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,role:"style",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()],role:"info",editType:"calc",description:["Sets the annotation's y coordinate axis.","If set to an y axis id (e.g. *y* or *y2*), the `y` position","refers to an y coordinate","If set to *paper*, the `y` position refers to the distance from","the bottom of the plotting area in normalized coordinates","where 0 (1) corresponds to the bottom (top)."].join(" ")},y:{valType:"any",role:"info",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",role:"info",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,role:"style",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,role:"style",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",role:"info",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",role:"info",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",role:"info",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",role:"style",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",role:"style",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:a({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",role:"info",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",role:"info",editType:"calc",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}})},u1sj:function(e,t,n){"use strict";var r=n("/CZE"),a=n("BkK/"),i=n("5azm"),o=n("Fyky"),l=n("u0qo");function s(e,t,n){function i(n,a){return r.coerce(e,t,l,n,a)}var s=i("visible"),c=i("clicktoshow");if(s||c){o(e,t,n,i);for(var u=t.showarrow,d=["x","y"],h=[-10,-30],f={_fullLayout:n},p=0;p<2;p++){var g=d[p],v=a.coerceRef(e,t,f,g,"","paper");if("paper"!==v)a.getFromId(f,v)._annIndices.push(t._index);if(a.coercePosition(t,f,i,v,g,.5),u){var m="a"+g,y=a.coerceRef(e,t,f,m,"pixel");"pixel"!==y&&y!==v&&(y=t[m]="pixel");var x="pixel"===y?h[p]:.4;a.coercePosition(t,f,i,y,m,x)}i(g+"anchor"),i(g+"shift")}if(r.noneOrAll(e,t,["x","y"]),u&&r.noneOrAll(e,t,["ax","ay"]),c){var b=i("xclick"),w=i("yclick");t._xclick=void 0===b?t.x:a.cleanPosition(b,f,t.xref),t._yclick=void 0===w?t.y:a.cleanPosition(w,f,t.yref)}}}e.exports=function(e,t){i(e,t,{name:"annotations",handleItemDefaults:s})}},u3HJ:function(e,t,n){"use strict";var r=n("bljh"),a=n("GbLo"),i=n("Nx4I"),o=n("aSHK"),l=n("plED"),s=n("/CZE"),c=n("0RW4"),u=n("6AZA").BADNUM,d=n("PBw4"),h=n("6Ue+").clearSelect,f=n("W2jp"),p=n("qcty"),g=n("rWI/").getModuleCalcData,v=s.relinkPrivateKeys,m=s._,y=e.exports={};s.extendFlat(y,i),y.attributes=n("qHYo"),y.attributes.type.values=y.allTypes,y.fontAttrs=n("mEVB"),y.layoutAttributes=n("poX/"),y.fontWeight="normal";var x=y.transformsRegistry,b=n("Rpvy");y.executeAPICommand=b.executeAPICommand,y.computeAPICommandBindings=b.computeAPICommandBindings,y.manageCommandObserver=b.manageCommandObserver,y.hasSimpleAPICommandBindings=b.hasSimpleAPICommandBindings,y.redrawText=function(e){var t=(e=s.getGraphDiv(e))._fullLayout||{};if(!(!(t._has&&t._has("polar"))&&e.data&&e.data[0]&&e.data[0].r))return new Promise((function(t){setTimeout((function(){i.getComponentMethod("annotations","draw")(e),i.getComponentMethod("legend","draw")(e),i.getComponentMethod("colorbar","draw")(e),t(y.previousPromises(e))}),300)}))},y.resize=function(e){var t;e=s.getGraphDiv(e);var n=new Promise((function(n,r){e&&!s.isHidden(e)||r(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout((function(){if(!e.layout||e.layout.width&&e.layout.height||s.isHidden(e))n(e);else{delete e.layout.width,delete e.layout.height;var t=e.changed;e.autoplay=!0,i.call("relayout",e,{autosize:!0}).then((function(){e.changed=t,e._resolveResize===n&&(delete e._resolveResize,n(e))}))}}),100)}));return t&&t(n),n},y.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then((function(){e._promises=[]}))},y.addLinks=function(e){if(e._context.showLink||e._context.showSources){var t=e._fullLayout,n=s.ensureSingle(t._paper,"text","js-plot-link-container",(function(e){e.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:c.defaultLine,"pointer-events":"all"}).each((function(){var e=r.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)}))})),a=n.node(),i={y:t._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),n.attr(i);var o=n.select(".js-link-to-tool"),l=n.select(".js-link-spacer"),u=n.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var n=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)n.on("click",(function(){y.sendDataToCloud(e)}));else{var r=window.location.pathname.split("/"),a=window.location.search;n.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+r[2].split(".")[0]+"/"+r[1]+a})}}(e,o),l.text(o.text()&&u.text()?" - ":"")}},y.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var n=r.select(e).append("div").attr("id","hiddenform").style("display","none"),a=n.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return a.append("input").attr({type:"text",name:"data"}).node().value=y.graphJson(e,!1,"keepdata"),a.node().submit(),n.remove(),e.emit("plotly_afterexport"),!1}};var w=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],_=["year","month","dayMonth","dayMonthYear"];function k(e,t){var n=e._context.locale,r=!1,a={};function o(e){for(var n=!0,i=0;i<t.length;i++){var o=t[i];a[o]||(e[o]?a[o]=e[o]:n=!1)}n&&(r=!0)}for(var l=0;l<2;l++){for(var s=e._context.locales,c=0;c<2;c++){var u=(s[n]||{}).format;if(u&&(o(u),r))break;s=i.localeRegistry}var d=n.split("-")[0];if(r||d===n)break;n=d}return r||o(i.localeRegistry.en.format),a}function T(e,t){var n={_fullLayout:t},r="x"===e._id.charAt(0),a=e._mainAxis._anchorAxis,i="",o="",l="";if(a&&(l=a._mainAxis._id,i=r?e._id+l:l+e._id),!i||!t._plots[i]){i="";for(var s=e._counterAxes,c=0;c<s.length;c++){var u=s[c],h=r?e._id+u:u+e._id;o||(o=h);var f=d.getFromId(n,u);if(l&&f.overlaying===l){i=h;break}}}return i||o}function M(e){var t=e.transforms;if(Array.isArray(t)&&t.length)for(var n=0;n<t.length;n++){var r=t[n],a=r._module||x[r.type];if(a&&a.makesData)return!0}return!1}function A(e,t,n,r){for(var a=e.transforms,i=[e],o=0;o<a.length;o++){var l=a[o],s=x[l.type];s&&s.transform&&(i=s.transform(i,{transform:l,fullTrace:e,fullData:t,layout:n,fullLayout:r,transformIndex:o}))}return i}function S(e){return"string"==typeof e&&"px"===e.substr(e.length-2)&&parseFloat(e)}function C(e){var t=e.margin;if(!e._size){var n=e._size={l:Math.round(t.l),r:Math.round(t.r),t:Math.round(t.t),b:Math.round(t.b),p:Math.round(t.pad)};n.w=Math.round(e.width)-n.l-n.r,n.h=Math.round(e.height)-n.t-n.b}e._pushmargin||(e._pushmargin={}),e._pushmarginIds||(e._pushmarginIds={})}y.supplyDefaults=function(e,t){var n=t&&t.skipUpdateCalc,a=e._fullLayout||{};if(a._skipDefaults)delete a._skipDefaults;else{var o,l=e._fullLayout={},c=e.layout||{},u=e._fullData||[],d=e._fullData=[],f=e.data||[],p=e.calcdata||[],g=e._context||{};e._transitionData||y.createTransitionData(e),l._dfltTitle={plot:m(e,"Click to enter Plot title"),x:m(e,"Click to enter X axis title"),y:m(e,"Click to enter Y axis title"),colorbar:m(e,"Click to enter Colorscale title"),annotation:m(e,"new text")},l._traceWord=m(e,"trace");var x=k(e,w);if(l._mapboxAccessToken=g.mapboxAccessToken,a._initialAutoSizeIsDone){var b=a.width,T=a.height;y.supplyLayoutGlobalDefaults(c,l,x),c.width||(l.width=b),c.height||(l.height=T),y.sanitizeMargins(l)}else{y.supplyLayoutGlobalDefaults(c,l,x);var M=!c.width||!c.height,A=l.autosize,S=g.autosizable;M&&(A||S)?y.plotAutoSize(e,c,l):M&&y.sanitizeMargins(l),!A&&M&&(c.width=l.width,c.height=l.height)}l._d3locale=function(e,t){return e.decimal=t.charAt(0),e.thousands=t.charAt(1),r.locale(e)}(x,l.separators),l._extraFormat=k(e,_),l._initialAutoSizeIsDone=!0,l._dataLength=f.length,l._modules=[],l._visibleModules=[],l._basePlotModules=[];var L=l._subplots=function(){var e,t,n=i.collectableSubplotTypes,r={};if(!n){n=[];var a=i.subplotsRegistry;for(var o in a){var l=a[o].attr;if(l&&(n.push(o),Array.isArray(l)))for(t=0;t<l.length;t++)s.pushUnique(n,l[t])}}for(e=0;e<n.length;e++)r[n[e]]=[];return r}(),I=l._splomAxes={x:{},y:{}},E=l._splomSubplots={};l._splomGridDflt={},l._scatterStackOpts={},l._firstScatter={},l._alignmentOpts={},l._colorAxes={},l._requestRangeslider={},l._traceUids=function(e,t){var n,r,a=t.length,i=[];for(n=0;n<e.length;n++){var o=e[n]._fullInput;o!==r&&i.push(o),r=o}var l=i.length,c=new Array(a),u={};function d(e,t){c[t]=e,u[e]=1}function h(e,t){if(e&&"string"==typeof e&&!u[e])return d(e,t),!0}for(n=0;n<a;n++){var f=t[n].uid;"number"==typeof f&&(f=String(f)),h(f,n)||(n<l&&h(i[n].uid,n)||d(s.randstr(u),n))}return c}(u,f),l._globalTransforms=(e._context||{}).globalTransforms,y.supplyDataDefaults(f,d,c,l);var O=Object.keys(I.x),D=Object.keys(I.y);if(O.length>1&&D.length>1){for(i.getComponentMethod("grid","sizeDefaults")(c,l),o=0;o<O.length;o++)s.pushUnique(L.xaxis,O[o]);for(o=0;o<D.length;o++)s.pushUnique(L.yaxis,D[o]);for(var P in E)s.pushUnique(L.cartesian,P)}if(l._has=y._hasPlotType.bind(l),u.length===d.length)for(o=0;o<d.length;o++)v(d[o],u[o]);y.supplyLayoutModuleDefaults(c,l,d,e._transitionData);var z=l._visibleModules,N=[];for(o=0;o<z.length;o++){var j=z[o].crossTraceDefaults;j&&s.pushUnique(N,j)}for(o=0;o<N.length;o++)N[o](d,l);l._hasOnlyLargeSploms=1===l._basePlotModules.length&&"splom"===l._basePlotModules[0].name&&O.length>15&&D.length>15&&0===l.shapes.length&&0===l.images.length,l._hasCartesian=l._has("cartesian"),l._hasGeo=l._has("geo"),l._hasGL3D=l._has("gl3d"),l._hasGL2D=l._has("gl2d"),l._hasTernary=l._has("ternary"),l._hasPie=l._has("pie"),y.linkSubplots(d,l,u,a),y.cleanPlot(d,l,u,a);var R=!(!a._has||!a._has("gl2d")),F=!(!l._has||!l._has("gl2d")),B=!(!a._has||!a._has("cartesian"))||R,H=!(!l._has||!l._has("cartesian"))||F;B&&!H?a._bgLayer.remove():H&&!B&&(l._shouldCreateBgLayer=!0),a._zoomlayer&&!e._dragging&&h({_fullLayout:a}),function(e,t){var n,r=[];t.meta&&(n=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var a=0;a<e.length;a++){var i=e[a];i.meta?r[i.index]=i._meta={meta:i.meta}:t.meta&&(i._meta={meta:t.meta}),t.meta&&(i._meta.layout={meta:t.meta})}r.length&&(n||(n=t._meta={}),n.data=r)}(d,l),v(l,a),i.getComponentMethod("colorscale","crossTraceDefaults")(d,l),l._preGUI||(l._preGUI={}),l._tracePreGUI||(l._tracePreGUI={});var V,G=l._tracePreGUI,U={};for(V in G)U[V]="old";for(o=0;o<d.length;o++)U[V=d[o]._fullInput.uid]||(G[V]={}),U[V]="new";for(V in U)"old"===U[V]&&delete G[V];C(l),i.getComponentMethod("rangeslider","makeData")(l),n||p.length!==d.length||y.supplyDefaultsUpdateCalc(p,d)}},y.supplyDefaultsUpdateCalc=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],a=(e[n]||[])[0];if(a&&a.trace){var i=a.trace;if(i._hasCalcTransform){var o,l,c,u=i._arrayAttrs;for(o=0;o<u.length;o++)l=u[o],c=s.nestedProperty(i,l).get().slice(),s.nestedProperty(r,l).set(c)}a.trace=r}}},y.createTransitionData=function(e){e._transitionData||(e._transitionData={}),e._transitionData._frames||(e._transitionData._frames=[]),e._transitionData._frameHash||(e._transitionData._frameHash={}),e._transitionData._counter||(e._transitionData._counter=0),e._transitionData._interruptCallbacks||(e._transitionData._interruptCallbacks=[])},y._hasPlotType=function(e){var t,n=this._basePlotModules||[];for(t=0;t<n.length;t++)if(n[t].name===e)return!0;var r=this._modules||[];for(t=0;t<r.length;t++){var a=r[t].name;if(a===e)return!0;var o=i.modules[a];if(o&&o.categories[e])return!0}return!1},y.cleanPlot=function(e,t,n,r){var a,i,o=r._basePlotModules||[];for(a=0;a<o.length;a++){var l=o[a];l.clean&&l.clean(e,t,n,r)}var s=r._has&&r._has("gl"),c=t._has&&t._has("gl");s&&!c&&void 0!==r._glcontainer&&(r._glcontainer.selectAll(".gl-canvas").remove(),r._glcontainer.selectAll(".no-webgl").remove(),r._glcanvas=null);var u=!!r._infolayer;e:for(a=0;a<n.length;a++){var d=n[a].uid;for(i=0;i<e.length;i++){if(d===e[i].uid)continue e}u&&r._infolayer.select(".cb"+d).remove()}},y.linkSubplots=function(e,t,n,r){var a,o,l=r._plots||{},c=t._plots={},u=t._subplots,h={_fullData:e,_fullLayout:t},f=u.cartesian.concat(u.gl2d||[]);for(a=0;a<f.length;a++){var p,g=f[a],v=l[g],m=d.getFromId(h,g,"x"),y=d.getFromId(h,g,"y");for(v?p=c[g]=v:(p=c[g]={}).id=g,m._counterAxes.push(y._id),y._counterAxes.push(m._id),m._subplotsWith.push(g),y._subplotsWith.push(g),p.xaxis=m,p.yaxis=y,p._hasClipOnAxisFalse=!1,o=0;o<e.length;o++){var x=e[o];if(x.xaxis===p.xaxis._id&&x.yaxis===p.yaxis._id&&!1===x.cliponaxis){p._hasClipOnAxisFalse=!0;break}}}var b,w=d.list(h,null,!0);for(a=0;a<w.length;a++){var _=null;(b=w[a]).overlaying&&(_=d.getFromId(h,b.overlaying))&&_.overlaying&&(b.overlaying=!1,_=null),b._mainAxis=_||b,_&&(b.domain=_.domain.slice()),b._anchorAxis="free"===b.anchor?null:d.getFromId(h,b.anchor)}for(a=0;a<w.length;a++)if((b=w[a])._counterAxes.sort(d.idSort),b._subplotsWith.sort(s.subplotSort),b._mainSubplot=T(b,t),b._counterAxes.length&&(b.spikemode&&-1!==b.spikemode.indexOf("across")||b.automargin&&b.mirror&&"free"!==b.anchor||i.getComponentMethod("rangeslider","isVisible")(b))){var k=1,M=0;for(o=0;o<b._counterAxes.length;o++){var A=d.getFromId(h,b._counterAxes[o]);k=Math.min(k,A.domain[0]),M=Math.max(M,A.domain[1])}k<M&&(b._counterDomainMin=k,b._counterDomainMax=M)}},y.clearExpandedTraceDefaultColors=function(e){var t,n,r;for(n=[],(t=e._module._colorAttrs)||(e._module._colorAttrs=t=[],o.crawl(e._module.attributes,(function(e,r,a,i){n[i]=r,n.length=i+1,"color"===e.valType&&void 0===e.dflt&&t.push(n.join("."))}))),r=0;r<t.length;r++){s.nestedProperty(e,"_input."+t[r]).get()||s.nestedProperty(e,t[r]).set(null)}},y.supplyDataDefaults=function(e,t,n,r){var a,o,c,u=r._modules,d=r._visibleModules,h=r._basePlotModules,f=0,p=0;function g(e){t.push(e);var n=e._module;n&&(s.pushUnique(u,n),!0===e.visible&&s.pushUnique(d,n),s.pushUnique(h,e._module.basePlotModule),f++,!1!==e._input.visible&&p++)}r._transformModules=[];var m={},x=[],b=(n.template||{}).data||{},w=l.traceTemplater(b);for(a=0;a<e.length;a++){if(c=e[a],(o=w.newTrace(c)).uid=r._traceUids[a],y.supplyTraceDefaults(c,o,p,r,a),o.index=a,o._input=c,o._expandedIndex=f,o.transforms&&o.transforms.length)for(var _=!1!==c.visible&&!1===o.visible,k=A(o,t,n,r),T=0;T<k.length;T++){var M=k[T],S={_template:o._template,type:o.type,uid:o.uid+T};_&&!1===M.visible&&delete M.visible,y.supplyTraceDefaults(M,S,f,r,a),v(S,M),S.index=a,S._input=c,S._fullInput=o,S._expandedIndex=f,S._expandedInput=M,g(S)}else o._fullInput=o,o._expandedInput=o,g(o);i.traceIs(o,"carpetAxis")&&(m[o.carpet]=o),i.traceIs(o,"carpetDependent")&&x.push(a)}for(a=0;a<x.length;a++)if((o=t[x[a]]).visible){var C=m[o.carpet];o._carpet=C,C&&C.visible?(o.xaxis=C.xaxis,o.yaxis=C.yaxis):o.visible=!1}},y.supplyAnimationDefaults=function(e){var t;e=e||{};var n={};function r(t,r){return s.coerce(e||{},n,f,t,r)}if(r("mode"),r("direction"),r("fromcurrent"),Array.isArray(e.frame))for(n.frame=[],t=0;t<e.frame.length;t++)n.frame[t]=y.supplyAnimationFrameDefaults(e.frame[t]||{});else n.frame=y.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(n.transition=[],t=0;t<e.transition.length;t++)n.transition[t]=y.supplyAnimationTransitionDefaults(e.transition[t]||{});else n.transition=y.supplyAnimationTransitionDefaults(e.transition||{});return n},y.supplyAnimationFrameDefaults=function(e){var t={};function n(n,r){return s.coerce(e||{},t,f.frame,n,r)}return n("duration"),n("redraw"),t},y.supplyAnimationTransitionDefaults=function(e){var t={};function n(n,r){return s.coerce(e||{},t,f.transition,n,r)}return n("duration"),n("easing"),t},y.supplyFrameDefaults=function(e){var t={};function n(n,r){return s.coerce(e,t,p,n,r)}return n("group"),n("name"),n("traces"),n("baseframe"),n("data"),n("layout"),t},y.supplyTraceDefaults=function(e,t,n,r,a){var o,l=r.colorway||c.defaults,u=l[n%l.length];function d(n,r){return s.coerce(e,t,y.attributes,n,r)}var h=d("visible");d("type"),d("name",r._traceWord+" "+a),d("uirevision",r.uirevision);var f=y.getModule(t);if(t._module=f,f){var p=f.basePlotModule,g=p.attr,v=p.attributes;if(g&&v){var m=r._subplots,x="";if(h||"gl2d"!==p.name){if(Array.isArray(g))for(o=0;o<g.length;o++){var b=g[o],w=s.coerce(e,t,v,b);m[b]&&s.pushUnique(m[b],w),x+=w}else x=s.coerce(e,t,v,g);m[p.name]&&s.pushUnique(m[p.name],x)}}}return h&&(d("customdata"),d("ids"),d("meta"),i.traceIs(t,"showLegend")?(s.coerce(e,t,f.attributes.showlegend?f.attributes:y.attributes,"showlegend"),d("legendgroup"),t._dfltShowLegend=!0):t._dfltShowLegend=!1,f&&f.supplyDefaults(e,t,u,r),i.traceIs(t,"noOpacity")||d("opacity"),i.traceIs(t,"notLegendIsolatable")&&(t.visible=!!t.visible),i.traceIs(t,"noHover")||(t.hovertemplate||s.coerceHoverinfo(e,t,r),"parcats"!==t.type&&i.getComponentMethod("fx","supplyDefaults")(e,t,u,r)),f&&f.selectPoints&&d("selectedpoints"),y.supplyTransformDefaults(e,t,r)),t},y.hasMakesDataTransform=M,y.supplyTransformDefaults=function(e,t,n){if(t._length||M(e)){var r=n._globalTransforms||[],a=n._transformModules||[];if(Array.isArray(e.transforms)||0!==r.length)for(var i=e.transforms||[],o=r.concat(i),l=t.transforms=[],c=0;c<o.length;c++){var u,d=o[c],h=d.type,f=x[h],p=!(d._module&&d._module===f),g=f&&"function"==typeof f.transform;f||s.warn("Unrecognized transform type "+h+"."),f&&f.supplyDefaults&&(p||g)?((u=f.supplyDefaults(d,t,n,e)).type=h,u._module=f,s.pushUnique(a,f)):u=s.extendFlat({},d),l.push(u)}}},y.supplyLayoutGlobalDefaults=function(e,t,n){function r(n,r){return s.coerce(e,t,y.layoutAttributes,n,r)}var a=e.template;s.isPlainObject(a)&&(t.template=a,t._template=a.layout,t._dataTemplate=a.data);var o=s.coerceFont(r,"font");r("title.text",t._dfltTitle.plot),s.coerceFont(r,"title.font",{family:o.family,size:Math.round(1.4*o.size),color:o.color}),r("title.xref"),r("title.yref"),r("title.x"),r("title.y"),r("title.xanchor"),r("title.yanchor"),r("title.pad.t"),r("title.pad.r"),r("title.pad.b"),r("title.pad.l"),r("uniformtext.mode")&&r("uniformtext.minsize"),r("autosize",!(e.width&&e.height)),r("width"),r("height"),r("margin.l"),r("margin.r"),r("margin.t"),r("margin.b"),r("margin.pad"),r("margin.autoexpand"),e.width&&e.height&&y.sanitizeMargins(t),i.getComponentMethod("grid","sizeDefaults")(e,t),r("paper_bgcolor"),r("separators",n.decimal+n.thousands),r("hidesources"),r("colorway"),r("datarevision");var l=r("uirevision");r("editrevision",l),r("selectionrevision",l),r("modebar.orientation"),r("modebar.bgcolor",c.addOpacity(t.paper_bgcolor,.5));var u=c.contrast(c.rgb(t.modebar.bgcolor));r("modebar.color",c.addOpacity(u,.3)),r("modebar.activecolor",c.addOpacity(u,.7)),r("modebar.uirevision",l),i.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,t,r),r("meta"),s.isPlainObject(e.transition)&&(r("transition.duration"),r("transition.easing"),r("transition.ordering")),i.getComponentMethod("calendars","handleDefaults")(e,t,"calendar"),i.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,t,r)},y.plotAutoSize=function(e,t,n){var r,i,o=e._context||{},l=o.frameMargins,c=s.isPlotDiv(e);if(c&&e.emit("plotly_autosize"),o.fillFrame)r=window.innerWidth,i=window.innerHeight,document.body.style.overflow="hidden";else{var u=c?window.getComputedStyle(e):{};if(r=S(u.width)||S(u.maxWidth)||n.width,i=S(u.height)||S(u.maxHeight)||n.height,a(l)&&l>0){var d=1-2*l;r=Math.round(d*r),i=Math.round(d*i)}}var h=y.layoutAttributes.width.min,f=y.layoutAttributes.height.min;r<h&&(r=h),i<f&&(i=f);var p=!t.width&&Math.abs(n.width-r)>1,g=!t.height&&Math.abs(n.height-i)>1;(g||p)&&(p&&(n.width=r),g&&(n.height=i)),e._initialAutoSize||(e._initialAutoSize={width:r,height:i}),y.sanitizeMargins(n)},y.supplyLayoutModuleDefaults=function(e,t,n,r){var a,o,l,c=i.componentsRegistry,u=t._basePlotModules,d=i.subplotsRegistry.cartesian;for(a in c)(l=c[a]).includeBasePlot&&l.includeBasePlot(e,t);for(var h in u.length||u.push(d),t._has("cartesian")&&(i.getComponentMethod("grid","contentDefaults")(e,t),d.finalizeSubplots(e,t)),t._subplots)t._subplots[h].sort(s.subplotSort);for(o=0;o<u.length;o++)(l=u[o]).supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,n);var f=t._modules;for(o=0;o<f.length;o++)(l=f[o]).supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,n);var p=t._transformModules;for(o=0;o<p.length;o++)(l=p[o]).supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,n,r);for(a in c)(l=c[a]).supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,n)},y.purge=function(e){var t=e._fullLayout||{};void 0!==t._glcontainer&&(t._glcontainer.selectAll(".gl-canvas").remove(),t._glcontainer.remove(),t._glcanvas=null),t._modeBar&&t._modeBar.destroy(),e._transitionData&&(e._transitionData._interruptCallbacks&&(e._transitionData._interruptCallbacks.length=0),e._transitionData._animationRaf&&window.cancelAnimationFrame(e._transitionData._animationRaf)),s.clearThrottle(),s.clearResponsive(e),delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,delete e.framework,delete e.empty,delete e.fid,delete e.undoqueue,delete e.undonum,delete e.autoplay,delete e.changed,delete e._promises,delete e._redrawTimer,delete e._hmlumcount,delete e._hmpixcount,delete e._transitionData,delete e._transitioning,delete e._initialAutoSize,delete e._transitioningWithDuration,delete e._dragging,delete e._dragged,delete e._dragdata,delete e._hoverdata,delete e._snapshotInProgress,delete e._editing,delete e._mouseDownTime,delete e._legendMouseDownTime,e.removeAllListeners&&e.removeAllListeners()},y.style=function(e){var t,n=e._fullLayout._visibleModules,r=[];for(t=0;t<n.length;t++){var a=n[t];a.style&&s.pushUnique(r,a.style)}for(t=0;t<r.length;t++)r[t](e)},y.sanitizeMargins=function(e){if(e&&e.margin){var t,n=e.width,r=e.height,a=e.margin,i=n-(a.l+a.r),o=r-(a.t+a.b);i<0&&(t=(n-1)/(a.l+a.r),a.l=Math.floor(t*a.l),a.r=Math.floor(t*a.r)),o<0&&(t=(r-1)/(a.t+a.b),a.t=Math.floor(t*a.t),a.b=Math.floor(t*a.b))}},y.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}},y.allowAutoMargin=function(e,t){e._fullLayout._pushmarginIds[t]=1},y.autoMargin=function(e,t,n){var r=e._fullLayout,a=r._pushmargin,i=r._pushmarginIds;if(!1!==r.margin.autoexpand){if(n){var o=n.pad;if(void 0===o){var l=r.margin;o=Math.min(12,l.l,l.r,l.t,l.b)}n.l+n.r>.5*r.width&&(s.log("Margin push",t,"is too big in x, dropping"),n.l=n.r=0),n.b+n.t>.5*r.height&&(s.log("Margin push",t,"is too big in y, dropping"),n.b=n.t=0);var c=void 0!==n.xl?n.xl:n.x,u=void 0!==n.xr?n.xr:n.x,d=void 0!==n.yt?n.yt:n.y,h=void 0!==n.yb?n.yb:n.y;a[t]={l:{val:c,size:n.l+o},r:{val:u,size:n.r+o},b:{val:h,size:n.b+o},t:{val:d,size:n.t+o}},i[t]=1}else delete a[t],delete i[t];if(!r._replotting)return y.doAutoMargin(e)}},y.doAutoMargin=function(e){var t=e._fullLayout;t._size||(t._size={}),C(t);var n=t._size,r=t.margin,o=s.extendFlat({},n),l=r.l,c=r.r,u=r.t,d=r.b,h=t.width,f=t.height,p=t._pushmargin,g=t._pushmarginIds;if(!1!==t.margin.autoexpand){for(var v in p)g[v]||delete p[v];for(var m in p.base={l:{val:0,size:l},r:{val:1,size:c},t:{val:1,size:u},b:{val:0,size:d}},p){var x=p[m].l||{},b=p[m].b||{},w=x.val,_=x.size,k=b.val,T=b.size;for(var M in p){if(a(_)&&p[M].r){var A=p[M].r.val,S=p[M].r.size;if(A>w){var L=(_*A+(S-h)*w)/(A-w),I=(S*(1-w)+(_-h)*(1-A))/(A-w);L>=0&&I>=0&&h-(L+I)>0&&L+I>l+c&&(l=L,c=I)}}if(a(T)&&p[M].t){var E=p[M].t.val,O=p[M].t.size;if(E>k){var D=(T*E+(O-f)*k)/(E-k),P=(O*(1-k)+(T-f)*(1-E))/(E-k);D>=0&&P>=0&&f-(P+D)>0&&D+P>d+u&&(d=D,u=P)}}}}}if(n.l=Math.round(l),n.r=Math.round(c),n.t=Math.round(u),n.b=Math.round(d),n.p=Math.round(r.pad),n.w=Math.round(h)-n.l-n.r,n.h=Math.round(f)-n.t-n.b,!t._replotting&&y.didMarginChange(o,n)){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var z=3*(1+Object.keys(g).length);if(t._redrawFromAutoMarginCount<z)return i.call("plot",e);s.warn("Too many auto-margin redraws.")}};var L=["l","r","t","b","p","w","h"];function I(e,t,n){var r=!1;var a=[y.previousPromises,function(){if(e._transitionData)return e._transitioning=!1,function(e){var t=Promise.resolve();if(!e)return t;for(;e.length;)t=t.then(e.shift());return t}(e._transitionData._interruptCallbacks)},n.prepareFn,y.rehover,function(){return e.emit("plotly_transitioning",[]),new Promise((function(a){e._transitioning=!0,t.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push((function(){r=!0})),n.redraw&&e._transitionData._interruptCallbacks.push((function(){return i.call("redraw",e)})),e._transitionData._interruptCallbacks.push((function(){e.emit("plotly_transitioninterrupted",[])}));var o=0,l=0;function s(){return o++,function(){l++,r||l!==o||function(t){if(!e._transitionData)return;(function(e){if(e)for(;e.length;)e.shift()})(e._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(n.redraw)return i.call("redraw",e)})).then((function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])})).then(t)}(a)}}n.runFn(s),setTimeout(s())}))}],o=s.syncOrAsync(a,e);return o&&o.then||(o=Promise.resolve()),o.then((function(){return e}))}y.didMarginChange=function(e,t){for(var n=0;n<L.length;n++){var r=L[n],i=e[r],o=t[r];if(!a(i)||Math.abs(o-i)>1)return!0}return!1},y.graphJson=function(e,t,n,r,a,i){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&y.supplyDefaults(e);var o=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,c=(e._transitionData||{})._frames;function u(e,t){if("function"==typeof e)return t?"_function_":null;if(s.isPlainObject(e)){var r,a={};return Object.keys(e).sort().forEach((function(i){if(-1===["_","["].indexOf(i.charAt(0)))if("function"!=typeof e[i]){if("keepdata"===n){if("src"===i.substr(i.length-3))return}else if("keepstream"===n){if("string"==typeof(r=e[i+"src"])&&r.indexOf(":")>0&&!s.isPlainObject(e.stream))return}else if("keepall"!==n&&"string"==typeof(r=e[i+"src"])&&r.indexOf(":")>0)return;a[i]=u(e[i],t)}else t&&(a[i]="_function")})),a}return Array.isArray(e)?e.map((function(e){return u(e,t)})):s.isTypedArray(e)?s.simpleMap(e,s.identity):s.isJSDate(e)?s.ms2DateTimeLocal(+e):e}var d={data:(o||[]).map((function(e){var n=u(e);return t&&delete n.fit,n}))};return t||(d.layout=u(l)),e.framework&&e.framework.isPolar&&(d=e.framework.getConfig()),c&&(d.frames=u(c)),i&&(d.config=u(e._context,!0)),"object"===r?d:JSON.stringify(d)},y.modifyFrames=function(e,t){var n,r,a,i=e._transitionData._frames,o=e._transitionData._frameHash;for(n=0;n<t.length;n++)switch((r=t[n]).type){case"replace":a=r.value;var l=(i[r.index]||{}).name,s=a.name;i[r.index]=o[s]=a,s!==l&&(delete o[l],o[s]=a);break;case"insert":o[(a=r.value).name]=a,i.splice(r.index,0,a);break;case"delete":delete o[(a=i[r.index]).name],i.splice(r.index,1)}return Promise.resolve()},y.computeFrame=function(e,t){var n,r,a,i,o=e._transitionData._frameHash;if(!t)throw new Error("computeFrame must be given a string frame name");var l=o[t.toString()];if(!l)return!1;for(var s=[l],c=[l.name];l.baseframe&&(l=o[l.baseframe.toString()])&&-1===c.indexOf(l.name);)s.push(l),c.push(l.name);for(var u={};l=s.pop();)if(l.layout&&(u.layout=y.extendLayout(u.layout,l.layout)),l.data){if(u.data||(u.data=[]),!(r=l.traces))for(r=[],n=0;n<l.data.length;n++)r[n]=n;for(u.traces||(u.traces=[]),n=0;n<l.data.length;n++)null!=(a=r[n])&&(-1===(i=u.traces.indexOf(a))&&(i=u.data.length,u.traces[i]=a),u.data[i]=y.extendTrace(u.data[i],l.data[n]))}return u},y.recomputeFrameHash=function(e){for(var t=e._transitionData._frameHash={},n=e._transitionData._frames,r=0;r<n.length;r++){var a=n[r];a&&a.name&&(t[a.name]=a)}},y.extendObjectWithContainers=function(e,t,n){var r,a,i,o,l,c,u,d=s.extendDeepNoArrays({},t||{}),h=s.expandObjectPaths(d),f={};if(n&&n.length)for(i=0;i<n.length;i++)void 0===(a=(r=s.nestedProperty(h,n[i])).get())?s.nestedProperty(f,n[i]).set(null):(r.set(null),s.nestedProperty(f,n[i]).set(a));if(e=s.extendDeepNoArrays(e||{},h),n&&n.length)for(i=0;i<n.length;i++)if(c=s.nestedProperty(f,n[i]).get()){for(u=(l=s.nestedProperty(e,n[i])).get(),Array.isArray(u)||(u=[],l.set(u)),o=0;o<c.length;o++){var p=c[o];u[o]=null===p?null:y.extendObjectWithContainers(u[o],p)}l.set(u)}return e},y.dataArrayContainers=["transforms","dimensions"],y.layoutArrayContainers=i.layoutArrayContainers,y.extendTrace=function(e,t){return y.extendObjectWithContainers(e,t,y.dataArrayContainers)},y.extendLayout=function(e,t){return y.extendObjectWithContainers(e,t,y.layoutArrayContainers)},y.transition=function(e,t,n,r,a,i){var o={redraw:a.redraw},l={},c=[];return o.prepareFn=function(){for(var a=Array.isArray(t)?t.length:0,i=r.slice(0,a),o=0;o<i.length;o++){var u=i[o],d=e._fullData[u]._module;if(d){if(d.animatable){var h=d.basePlotModule.name;l[h]||(l[h]=[]),l[h].push(u)}e.data[i[o]]=y.extendTrace(e.data[i[o]],t[o])}}var f=s.expandObjectPaths(s.extendDeepNoArrays({},n)),p=/^[xy]axis[0-9]*$/;for(var g in f)p.test(g)&&delete f[g].range;y.extendLayout(e.layout,f),delete e.calcdata,y.supplyDefaults(e),y.doCalcdata(e);var v=s.expandObjectPaths(n);if(v){var m=e._fullLayout._plots;for(var x in m){var b=m[x],w=b.xaxis,_=b.yaxis,k=w.range.slice(),T=_.range.slice(),M=null,A=null,S=null,C=null;Array.isArray(v[w._name+".range"])?M=v[w._name+".range"].slice():Array.isArray((v[w._name]||{}).range)&&(M=v[w._name].range.slice()),Array.isArray(v[_._name+".range"])?A=v[_._name+".range"].slice():Array.isArray((v[_._name]||{}).range)&&(A=v[_._name].range.slice()),k&&M&&(w.r2l(k[0])!==w.r2l(M[0])||w.r2l(k[1])!==w.r2l(M[1]))&&(S={xr0:k,xr1:M}),T&&A&&(_.r2l(T[0])!==_.r2l(A[0])||_.r2l(T[1])!==_.r2l(A[1]))&&(C={yr0:T,yr1:A}),(S||C)&&c.push(s.extendFlat({plotinfo:b},S,C))}}return Promise.resolve()},o.runFn=function(t){var r,a,o=e._fullLayout._basePlotModules,u=c.length;if(n)for(a=0;a<o.length;a++)o[a].transitionAxes&&o[a].transitionAxes(e,c,i,t);for(var d in u?((r=s.extendFlat({},i)).duration=0,delete l.cartesian):r=i,l){var h=l[d];e._fullData[h[0]]._module.basePlotModule.plot(e,h,r,t)}},I(e,i,o)},y.transitionFromReact=function(e,t,n,r){var a=e._fullLayout,i=a.transition,o={},l=[];return o.prepareFn=function(){var e=a._plots;for(var i in o.redraw=!1,"some"===t.anim&&(o.redraw=!0),"some"===n.anim&&(o.redraw=!0),e){var c=e[i],u=c.xaxis,d=c.yaxis,h=r[u._name].range.slice(),f=r[d._name].range.slice(),p=u.range.slice(),g=d.range.slice();u.setScale(),d.setScale();var v=null,m=null;u.r2l(h[0])===u.r2l(p[0])&&u.r2l(h[1])===u.r2l(p[1])||(v={xr0:h,xr1:p}),d.r2l(f[0])===d.r2l(g[0])&&d.r2l(f[1])===d.r2l(g[1])||(m={yr0:f,yr1:g}),(v||m)&&l.push(s.extendFlat({plotinfo:c},v,m))}return Promise.resolve()},o.runFn=function(n){for(var r,a,o,c=e._fullData,u=e._fullLayout._basePlotModules,d=[],h=0;h<c.length;h++)d.push(h);function f(){for(var t=0;t<u.length;t++)u[t].transitionAxes&&u[t].transitionAxes(e,l,r,n)}function p(){for(var t=0;t<u.length;t++)u[t].plot(e,o,a,n)}l.length&&t.anim?"traces first"===i.ordering?(r=s.extendFlat({},i,{duration:0}),o=d,a=i,setTimeout(f,i.duration),p()):(r=i,o=null,a=s.extendFlat({},i,{duration:0}),setTimeout(p,r.duration),f()):l.length?(r=i,f()):t.anim&&(o=d,a=i,p())},I(e,i,o)},y.doCalcdata=function(e,t){var n,r,a,l,c=d.list(e),h=e._fullData,f=e._fullLayout,p=new Array(h.length),g=(e.calcdata||[]).slice();for(e.calcdata=p,f._numBoxes=0,f._numViolins=0,f._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,f._piecolormap={},f._sunburstcolormap={},f._treemapcolormap={},f._funnelareacolormap={},a=0;a<h.length;a++)Array.isArray(t)&&-1===t.indexOf(a)&&(p[a]=g[a]);for(a=0;a<h.length;a++)(n=h[a])._arrayAttrs=o.findArrayAttributes(n),n._extremes={};var v=f._subplots.polar||[];for(a=0;a<v.length;a++)c.push(f[v[a]].radialaxis,f[v[a]].angularaxis);for(var m in f._colorAxes){var y=f[m];!1!==y.cauto&&(delete y.cmin,delete y.cmax)}var b=!1;function w(t){if(n=h[t],r=n._module,!0===n.visible&&n.transforms){if(r&&r.calc){var a=r.calc(e,n);a[0]&&a[0].t&&a[0].t._scene&&delete a[0].t._scene.dirty}for(l=0;l<n.transforms.length;l++){var i=n.transforms[l];(r=x[i.type])&&r.calcTransform&&(n._hasCalcTransform=!0,b=!0,r.calcTransform(e,n,i))}}}function _(t,a){if(n=h[t],!!(r=n._module).isContainer===a){var i=[];if(!0===n.visible&&0!==n._length){delete n._indexToPoints;var o=n.transforms||[];for(l=o.length-1;l>=0;l--)if(o[l].enabled){n._indexToPoints=o[l]._indexToPoints;break}r&&r.calc&&(i=r.calc(e,n))}Array.isArray(i)&&i[0]||(i=[{x:u,y:u}]),i[0].t||(i[0].t={}),i[0].trace=n,p[t]=i}}for(O(c,h,f),a=0;a<h.length;a++)_(a,!0);for(a=0;a<h.length;a++)w(a);for(b&&O(c,h,f),a=0;a<h.length;a++)_(a,!0);for(a=0;a<h.length;a++)_(a,!1);D(e);var k=function(e,t){var n,r,a,o,l,c=[];function u(e,n,r){var a=n._id.charAt(0);if("histogram2dcontour"===e){var i=n._counterAxes[0],o=d.getFromId(t,i),l="x"===a||"x"===i&&"category"===o.type,s="y"===a||"y"===i&&"category"===o.type;return function(e,t){return 0===e||0===t||l&&e===r[t].length-1||s&&t===r.length-1?-1:("y"===a?t:e)-1}}return function(e,t){return"y"===a?t:e}}var h={min:function(e){return s.aggNums(Math.min,null,e)},max:function(e){return s.aggNums(Math.max,null,e)},sum:function(e){return s.aggNums((function(e,t){return e+t}),null,e)},total:function(e){return s.aggNums((function(e,t){return e+t}),null,e)},mean:function(e){return s.mean(e)},median:function(e){return s.median(e)}};for(n=0;n<e.length;n++){var f=e[n];if("category"===f.type){var p=f.categoryorder.match(E);if(p){var g=p[1],v=p[2],m=[];for(r=0;r<f._categories.length;r++)m.push([f._categories[r],[]]);for(r=0;r<f._traceIndices.length;r++){var y=f._traceIndices[r],x=t._fullData[y],b=f._id.charAt(0);if(!0===x.visible){var w=x.type;i.traceIs(x,"histogram")&&(delete x._xautoBinFinished,delete x._yautoBinFinished);var _=t.calcdata[y];for(a=0;a<_.length;a++){var k,T,M,A=_[a];if("splom"===w){var S=x._axesDim[f._id];if("y"===b){var C=x._diag[S][0];C&&(f=t._fullLayout[d.id2name(C)])}var L=A.trace.dimensions[S].values;for(o=0;o<L.length;o++)for(k=L[o],T=f._categoriesMap[k],l=0;l<A.trace.dimensions.length;l++)if(l!==S){var I=A.trace.dimensions[l];m[T][1].push(I.values[o])}}else if("scattergl"===w){for(o=0;o<A.t.x.length;o++)"x"===b&&(k=A.t.x[o],T=k,M=A.t.y[o]),"y"===b&&(k=A.t.y[o],T=k,M=A.t.x[o]),m[T][1].push(M);A.t&&A.t._scene&&delete A.t._scene.dirty}else if(A.hasOwnProperty("z")){M=A.z;var O=u(x.type,f,M);for(o=0;o<M.length;o++)for(l=0;l<M[o].length;l++)(T=O(l,o))+1&&m[T][1].push(M[o][l])}else for("x"===b?(k=A.p+1?A.p:A.x,M=A.s||A.v||A.y):"y"===b&&(k=A.p+1?A.p:A.y,M=A.s||A.v||A.x),Array.isArray(M)||(M=[M]),o=0;o<M.length;o++)m[k][1].push(M[o])}}}f._categoriesValue=m;var D=[];for(r=0;r<m.length;r++)D.push([m[r][0],h[g](m[r][1])]);D.sort((function(e,t){return e[1]-t[1]})),f._categoriesAggregatedValue=D,f._initialCategories=D.map((function(e){return e[0]})),"descending"===v&&f._initialCategories.reverse(),c=c.concat(f.sortByInitialCategories())}}}return c}(c,e);if(k.length){for(f._numBoxes=0,f._numViolins=0,a=0;a<k.length;a++)_(k[a],!0);for(a=0;a<k.length;a++)_(k[a],!1);D(e)}i.getComponentMethod("fx","calc")(e),i.getComponentMethod("errorbars","calc")(e)};var E=/(total|sum|min|max|mean|median) (ascending|descending)/;function O(e,t,n){var r,a,i,o={};for(r=0;r<e.length;r++)i=(a=e[r])._id,a.clearCalc(),"multicategory"===a.type&&a.setupMultiCategory(t),o[a._id]=1;var l=n._axisMatchGroups||[];for(r=0;r<l.length;r++)for(i in l[r])o[i]||(a=n[d.id2name(i)]).clearCalc()}function D(e){var t,n,r,a=e._fullLayout,i=a._visibleModules,o={};for(n=0;n<i.length;n++){var l=i[n],c=l.crossTraceCalc;if(c){var u=l.basePlotModule.name;o[u]?s.pushUnique(o[u],c):o[u]=[c]}}for(r in o){var d=o[r],h=a._subplots[r];if(Array.isArray(h))for(t=0;t<h.length;t++){var f=h[t],p="cartesian"===r?a._plots[f]:a[f];for(n=0;n<d.length;n++)d[n](e,p,f)}else for(n=0;n<d.length;n++)d[n](e)}}y.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()},y.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()},y.generalUpdatePerTraceModule=function(e,t,n,r){var a,i=t.traceHash,o={};for(a=0;a<n.length;a++){var l=n[a],c=l[0].trace;c.visible&&(o[c.type]=o[c.type]||[],o[c.type].push(l))}for(var u in i)if(!o[u]){var d=i[u][0];d[0].trace.visible=!1,o[u]=[d]}for(var h in o){var f=o[h];f[0][0].trace._module.plot(e,t,s.filterVisible(f),r)}t.traceHash=o},y.plotBasePlot=function(e,t,n,r,a){var o=i.getModule(e),l=g(t.calcdata,o)[0];o.plot(t,l,r,a)},y.cleanBasePlot=function(e,t,n,r,a){var i=a._has&&a._has(e),o=n._has&&n._has(e);i&&!o&&a["_"+e+"layer"].selectAll("g.trace").remove()}},u4aF:function(e,t,n){"use strict";var r=n("/CZE"),a=n("IJNW"),i=n("kn30");e.exports=function(e,t){a(e,t,(function(n,a){return r.coerce(e,t,i,n,a)}))}},uM7j:function(e,t,n){"use strict";e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"โฒ"},DECREASING:{COLOR:"#FF4136",SYMBOL:"โผ"}}},uSQw:function(e,t){function n(e,t,n){var r=[];return e.forEach((function(e){var a=(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[a]&&r.push({id:n?n.segmentId():-1,start:e.start,end:e.end,myFill:{above:1===t[a],below:2===t[a]},otherFill:null})})),n&&n.selected(r),r}var r={union:function(e,t){return n(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return n(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return n(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return n(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return n(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};e.exports=r},uvVx:function(e,t,n){"use strict";e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,textGap:40,itemGap:5}},v7ZX:function(e,t,n){"use strict";var r=n("bljh"),a=n("/CZE"),i=n("g9E0"),o=n("A3kh"),l=n("yLjo"),s=n("2oy/").styleOne,c=n("I8wg"),u=n("+1bK"),d=n("aWIO"),h=n("4X2v").formatSliceLabel;e.exports=function(e,t,n,f,p){var g=p.width,v=p.height,m=p.viewX,y=p.viewY,x=p.pathSlice,b=p.toMoveInsideSlice,w=p.strTransform,_=p.hasTransition,k=p.handleSlicesExit,T=p.makeUpdateSliceInterpolator,M=p.makeUpdateTextInterpolator,A=p.prevEntry,S=e._fullLayout,C=t[0].trace,L=-1!==C.textposition.indexOf("left"),I=-1!==C.textposition.indexOf("right"),E=-1!==C.textposition.indexOf("bottom"),O=!E&&!C.marker.pad.t||E&&!C.marker.pad.b,D=l(n,[g,v],{packing:C.tiling.packing,squarifyratio:C.tiling.squarifyratio,flipX:C.tiling.flip.indexOf("x")>-1,flipY:C.tiling.flip.indexOf("y")>-1,pad:{inner:C.tiling.pad,top:C.marker.pad.t,left:C.marker.pad.l,right:C.marker.pad.r,bottom:C.marker.pad.b}}).descendants(),P=1/0,z=-1/0;D.forEach((function(e){var t=e.depth;t>=C._maxDepth?(e.x0=e.x1=(e.x0+e.x1)/2,e.y0=e.y1=(e.y0+e.y1)/2):(P=Math.min(P,t),z=Math.max(z,t))})),f=f.data(D,u.getPtId),C._maxVisibleLayers=isFinite(z)?z-P+1:0,f.enter().append("g").classed("slice",!0),k(f,!1,{},[g,v],x),f.order();var N=null;if(_&&A){var j=u.getPtId(A);f.each((function(e){null===N&&u.getPtId(e)===j&&(N={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1})}))}var R=function(){return N||{x0:0,x1:g,y0:0,y1:v}},F=f;return _&&(F=F.transition().each("end",(function(){var t=r.select(this);u.setSliceCursor(t,e,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),F.each((function(l){var f=u.isHeader(l,C);l._hoverX=m(l.x1-C.marker.pad.r),l._hoverY=y(E?l.y1-C.marker.pad.b/2:l.y0+C.marker.pad.t/2);var p=r.select(this),k=a.ensureSingle(p,"path","surface",(function(e){e.style("pointer-events","all")}));_?k.transition().attrTween("d",(function(e){var t=T(e,!1,R(),[g,v]);return function(e){return x(t(e))}})):k.attr("d",x),p.call(d,n,e,t,{styleOne:s,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,e,{isTransitioning:e._transitioning}),k.call(s,l,C,{hovered:!1}),l.x0===l.x1||l.y0===l.y1?l._text="":l._text=f?O?"":u.getPtLabel(l)||"":h(l,n,C,t,S)||"";var A=a.ensureSingle(p,"g","slicetext"),D=a.ensureSingle(A,"text","",(function(e){e.attr("data-notex",1)})),P=a.ensureUniformFontSize(e,u.determineTextFont(C,l,S.font));D.text(l._text||" ").classed("slicetext",!0).attr("text-anchor",I?"end":L||f?"start":"middle").call(i.font,P).call(o.convertToTspans,e),l.textBB=i.bBox(D.node()),l.transform=b(l,{fontSize:P.size,isHeader:f}),l.transform.fontSize=P.size,_?D.transition().attrTween("transform",(function(e){var t=M(e,!1,R(),[g,v]);return function(e){return w(t(e))}})):D.attr("transform",w(l))})),N}},"vN+2":function(e,t){e.exports=function(){}},vmS9:function(e,t,n){"use strict";var r=n("bljh"),a=n("/CZE"),i=n("Nx4I"),o=Math.PI/180,l=180/Math.PI,s={cursor:"pointer"},c={cursor:"auto"};function u(e,t){return r.behavior.zoom().translate(t.translate()).scale(t.scale())}function d(e,t,n){var r=e.id,o=e.graphDiv,l=o.layout,s=l[r],c=o._fullLayout,u=c[r],d={},h={};function f(e,t){d[r+"."+e]=a.nestedProperty(s,e).get(),i.call("_storeDirectGUIEdit",l,c._preGUI,d);var n=a.nestedProperty(u,e);n.get()!==t&&(n.set(t),a.nestedProperty(s,e).set(t),h[r+"."+e]=t)}n(f),f("projection.scale",t.scale()/e.fitScale),f("fitbounds",!1),o.emit("plotly_relayout",h)}function h(e,t){var n=u(0,t);function a(n){var r=t.invert(e.midPt);n("center.lon",r[0]),n("center.lat",r[1])}return n.on("zoomstart",(function(){r.select(this).style(s)})).on("zoom",(function(){t.scale(r.event.scale).translate(r.event.translate),e.render();var n=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":n[0],"geo.center.lat":n[1]})})).on("zoomend",(function(){r.select(this).style(c),d(e,t,a)})),n}function f(e,t){var n,a,i,o,l,h,f,p,g,v=u(0,t);function m(e){return t.invert(e)}function y(n){var r=t.rotate(),a=t.invert(e.midPt);n("projection.rotation.lon",-r[0]),n("center.lon",a[0]),n("center.lat",a[1])}return v.on("zoomstart",(function(){r.select(this).style(s),n=r.mouse(this),a=t.rotate(),i=t.translate(),o=a,l=m(n)})).on("zoom",(function(){if(h=r.mouse(this),function(e){var n=m(e);if(!n)return!0;var r=t(n);return Math.abs(r[0]-e[0])>2||Math.abs(r[1]-e[1])>2}(n))return v.scale(t.scale()),void v.translate(t.translate());t.scale(r.event.scale),t.translate([i[0],r.event.translate[1]]),l?m(h)&&(p=m(h),f=[o[0]+(p[0]-l[0]),a[1],a[2]],t.rotate(f),o=f):l=m(n=h),g=!0,e.render();var s=t.rotate(),c=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":c[0],"geo.center.lat":c[1],"geo.projection.rotation.lon":-s[0]})})).on("zoomend",(function(){r.select(this).style(c),g&&d(e,t,y)})),v}function p(e,t){var n,a={r:t.rotate(),k:t.scale()},i=u(0,t),o=function(e){var t=0,n=arguments.length,a=[];for(;++t<n;)a.push(arguments[t]);var i=r.dispatch.apply(null,a);return i.of=function(t,n){return function(a){var o;try{o=a.sourceEvent=r.event,a.target=e,r.event=a,i[a.type].apply(t,n)}finally{r.event=o}}},i}(i,"zoomstart","zoom","zoomend"),l=0,h=i.on;function f(e){l++||e({type:"zoomstart"})}function p(e){e({type:"zoom"})}function b(e){--l||e({type:"zoomend"})}function w(e){var n=t.rotate();e("projection.rotation.lon",-n[0]),e("projection.rotation.lat",-n[1])}return i.on("zoomstart",(function(){r.select(this).style(s);var e=r.mouse(this),l=t.rotate(),c=l,u=t.translate(),d=v(l);n=g(t,e),h.call(i,"zoom",(function(){var i=r.mouse(this);if(t.scale(a.k=r.event.scale),n){if(g(t,i)){t.rotate(l).translate(u);var s=g(t,i),h=y(n,s),f=k(m(d,h)),v=a.r=x(f,n,c);isFinite(v[0])&&isFinite(v[1])&&isFinite(v[2])||(v=c),t.rotate(v),c=v}}else n=g(t,e=i);p(o.of(this,arguments))})),f(o.of(this,arguments))})).on("zoomend",(function(){r.select(this).style(c),h.call(i,"zoom",null),b(o.of(this,arguments)),d(e,t,w)})).on("zoom.redraw",(function(){e.render();var n=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-n[0],"geo.projection.rotation.lat":-n[1]})})),r.rebind(i,o,"on")}function g(e,t){var n=e.invert(t);return n&&isFinite(n[0])&&isFinite(n[1])&&function(e){var t=e[0]*o,n=e[1]*o,r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}(n)}function v(e){var t=.5*e[0]*o,n=.5*e[1]*o,r=.5*e[2]*o,a=Math.sin(t),i=Math.cos(t),l=Math.sin(n),s=Math.cos(n),c=Math.sin(r),u=Math.cos(r);return[i*s*u+a*l*c,a*s*u-i*l*c,i*l*u+a*s*c,i*s*c-a*l*u]}function m(e,t){var n=e[0],r=e[1],a=e[2],i=e[3],o=t[0],l=t[1],s=t[2],c=t[3];return[n*o-r*l-a*s-i*c,n*l+r*o+a*c-i*s,n*s-r*c+a*o+i*l,n*c+r*s-a*l+i*o]}function y(e,t){if(e&&t){var n=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(e,t),r=Math.sqrt(T(n,n)),a=.5*Math.acos(Math.max(-1,Math.min(1,T(e,t)))),i=Math.sin(a)/r;return r&&[Math.cos(a),n[2]*i,-n[1]*i,n[0]*i]}}function x(e,t,n){var r=_(t,2,e[0]);r=_(r,1,e[1]),r=_(r,0,e[2]-n[2]);var a,i,o=t[0],s=t[1],c=t[2],u=r[0],d=r[1],h=r[2],f=Math.atan2(s,o)*l,p=Math.sqrt(o*o+s*s);Math.abs(d)>p?(i=(d>0?90:-90)-f,a=0):(i=Math.asin(d/p)*l-f,a=Math.sqrt(p*p-d*d));var g=180-i-2*f,v=(Math.atan2(h,u)-Math.atan2(c,a))*l,m=(Math.atan2(h,u)-Math.atan2(c,-a))*l;return b(n[0],n[1],i,v)<=b(n[0],n[1],g,m)?[i,v,n[2]]:[g,m,n[2]]}function b(e,t,n,r){var a=w(n-e),i=w(r-t);return Math.sqrt(a*a+i*i)}function w(e){return(e%360+540)%360-180}function _(e,t,n){var r=n*o,a=e.slice(),i=0===t?1:0,l=2===t?1:2,s=Math.cos(r),c=Math.sin(r);return a[i]=e[i]*s-e[l]*c,a[l]=e[l]*s+e[i]*c,a}function k(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*l,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*l,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*l]}function T(e,t){for(var n=0,r=0,a=e.length;r<a;++r)n+=e[r]*t[r];return n}e.exports=function(e,t){var n=e.projection;return(t._isScoped?h:t._isClipped?p:f)(e,n)}},wAWO:function(e,t,n){"use strict";e.exports={percent:function(e,t){for(var n=e.length,r=100/t,a=0;a<n;a++)e[a]*=r},probability:function(e,t){for(var n=e.length,r=0;r<n;r++)e[r]/=t},density:function(e,t,n,r){var a=e.length;r=r||1;for(var i=0;i<a;i++)e[i]*=n[i]*r},"probability density":function(e,t,n,r){var a=e.length;r&&(t/=r);for(var i=0;i<a;i++)e[i]*=n[i]/t}}},wK8V:function(e,t,n){"use strict";var r=n("bljh"),a=n("u3HJ"),i=n("pcRN"),o=n("0RW4"),l=n("g9E0"),s=n("/CZE"),c=n("A3kh"),u=n("k6aH"),d=u.recordMinTextSize,h=u.clearMinTextSize,f=n("Gl7E").TEXTPAD,p=n("WeBh"),g=n("iJj1"),v=n("/CZE").isValidTextValue;function m(e,t,n){var a=n[0],o=a.trace,l=a.cx,c=a.cy;"_hasHoverLabel"in o||(o._hasHoverLabel=!1),"_hasHoverEvent"in o||(o._hasHoverEvent=!1),e.on("mouseover",(function(e){var n=t._fullLayout,u=t._fullData[o.index];if(!t._dragging&&!1!==n.hovermode){var d=u.hoverinfo;if(Array.isArray(d)&&(d=i.castHoverinfo({hoverinfo:[p.castOption(d,e.pts)],_module:o._module},n,0)),"all"===d&&(d="label+text+value+percent+name"),u.hovertemplate||"none"!==d&&"skip"!==d&&d){var h=e.rInscribed||0,f=l+e.pxmid[0]*(1-h),v=c+e.pxmid[1]*(1-h),m=n.separators,y=[];if(d&&-1!==d.indexOf("label")&&y.push(e.label),e.text=p.castOption(u.hovertext||u.text,e.pts),d&&-1!==d.indexOf("text")){var x=e.text;s.isValidTextValue(x)&&y.push(x)}e.value=e.v,e.valueLabel=p.formatPieValue(e.v,m),d&&-1!==d.indexOf("value")&&y.push(e.valueLabel),e.percent=e.v/a.vTotal,e.percentLabel=p.formatPiePercent(e.percent,m),d&&-1!==d.indexOf("percent")&&y.push(e.percentLabel);var b=u.hoverlabel,w=b.font;i.loneHover({trace:o,x0:f-h*a.r,x1:f+h*a.r,y:v,text:y.join("<br>"),name:u.hovertemplate||-1!==d.indexOf("name")?u.name:void 0,idealAlign:e.pxmid[0]<0?"left":"right",color:p.castOption(b.bgcolor,e.pts)||e.color,borderColor:p.castOption(b.bordercolor,e.pts),fontFamily:p.castOption(w.family,e.pts),fontSize:p.castOption(w.size,e.pts),fontColor:p.castOption(w.color,e.pts),nameLength:p.castOption(b.namelength,e.pts),textAlign:p.castOption(b.align,e.pts),hovertemplate:p.castOption(u.hovertemplate,e.pts),hovertemplateLabels:e,eventData:[g(e,u)]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t}),o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[g(e,u)],event:r.event})}})),e.on("mouseout",(function(e){var n=t._fullLayout,a=t._fullData[o.index],l=r.select(this).datum();o._hasHoverEvent&&(e.originalEvent=r.event,t.emit("plotly_unhover",{points:[g(l,a)],event:r.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(i.loneUnhover(n._hoverlayer.node()),o._hasHoverLabel=!1)})),e.on("click",(function(e){var n=t._fullLayout,a=t._fullData[o.index];t._dragging||!1===n.hovermode||(t._hoverdata=[g(e,a)],i.click(t,r.event))}))}function y(e,t,n){var r=p.castOption(e.insidetextfont.color,t.pts);!r&&e._input.textfont&&(r=p.castOption(e._input.textfont.color,t.pts));var a=p.castOption(e.insidetextfont.family,t.pts)||p.castOption(e.textfont.family,t.pts)||n.family,i=p.castOption(e.insidetextfont.size,t.pts)||p.castOption(e.textfont.size,t.pts)||n.size;return{color:r||o.contrast(t.color),family:a,size:i}}function x(e,t){for(var n,r,a=0;a<e.length;a++)if((r=(n=e[a][0]).trace).title.text){var i=r.title.text;r._meta&&(i=s.templateString(i,r._meta));var o=l.tester.append("text").attr("data-notex",1).text(i).call(l.font,r.title.font).call(c.convertToTspans,t),u=l.bBox(o.node(),!0);n.titleBox={width:u.width,height:u.height},o.remove()}}function b(e,t,n){var r=n.r||t.rpx1,a=t.rInscribed;if(t.startangle===t.stopangle)return{rCenter:1-a,scale:0,rotate:0,textPosAngle:0};var i,o=t.ring,l=1===o&&Math.abs(t.startangle-t.stopangle)===2*Math.PI,s=t.halfangle,c=t.midangle,u=n.trace.insidetextorientation,d="horizontal"===u,h="tangential"===u,f="radial"===u,p="auto"===u,g=[];if(!p){var v,m=function(n,a){if(function(e,t){var n=e.startangle,r=e.stopangle;return n>t&&t>r||n<t&&t<r}(t,n)){var l=Math.abs(n-t.startangle),s=Math.abs(n-t.stopangle),c=l<s?l:s;(i="tan"===a?_(e,r,o,c,0):w(e,r,o,c,Math.PI/2)).textPosAngle=n,g.push(i)}};if(d||h){for(v=4;v>=-4;v-=2)m(Math.PI*v,"tan");for(v=4;v>=-4;v-=2)m(Math.PI*(v+1),"tan")}if(d||f){for(v=4;v>=-4;v-=2)m(Math.PI*(v+1.5),"rad");for(v=4;v>=-4;v-=2)m(Math.PI*(v+.5),"rad")}}if(l||p||d){var y=Math.sqrt(e.width*e.width+e.height*e.height);if((i={scale:a*r*2/y,rCenter:1-a,rotate:0}).textPosAngle=(t.startangle+t.stopangle)/2,i.scale>=1)return i;g.push(i)}(p||f)&&((i=w(e,r,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(i)),(p||h)&&((i=_(e,r,o,s,c)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(i));for(var x=0,b=0,k=0;k<g.length;k++){var T=g[k].scale;if(b<T&&(b=T,x=k),!p&&b>=1)break}return g[x]}function w(e,t,n,r,a){t=Math.max(0,t-2*f);var i=e.width/e.height,o=M(i,r,t,n);return{scale:2*o/e.height,rCenter:k(i,o/t),rotate:T(a)}}function _(e,t,n,r,a){t=Math.max(0,t-2*f);var i=e.height/e.width,o=M(i,r,t,n);return{scale:2*o/e.width,rCenter:k(i,o/t),rotate:T(a+Math.PI/2)}}function k(e,t){return Math.cos(t)-e*t}function T(e){return(180/Math.PI*e+720)%180-90}function M(e,t,n,r){var a=e+1/(2*Math.tan(t));return n*Math.min(1/(Math.sqrt(a*a+.5)+a),r/(Math.sqrt(e*e+r/2)+e))}function A(e,t){return e.v!==t.vTotal||t.trace.hole?Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2):1}function S(e,t){var n=t.pxmid[0],r=t.pxmid[1],a=e.width/2,i=e.height/2;return n<0&&(a*=-1),r<0&&(i*=-1),{scale:1,rCenter:1,rotate:0,x:a+Math.abs(i)*(a>0?1:-1)/2,y:i/(1+n*n/(r*r)),outside:!0}}function C(e,t){var n,r,a,i=e.trace,o={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=i.title.font.size,a=I(i),-1!==i.title.position.indexOf("top")?(o.y-=(1+a)*e.r,l.ty-=e.titleBox.height):-1!==i.title.position.indexOf("bottom")&&(o.y+=(1+a)*e.r);var s,c,u=(s=e.r,c=e.trace.aspectratio,s/(void 0===c?1:c)),d=t.w*(i.domain.x[1]-i.domain.x[0])/2;return-1!==i.title.position.indexOf("left")?(d+=u,o.x-=(1+a)*u,l.tx+=e.titleBox.width/2):-1!==i.title.position.indexOf("center")?d*=2:-1!==i.title.position.indexOf("right")&&(d+=u,o.x+=(1+a)*u,l.tx-=e.titleBox.width/2),n=d/e.titleBox.width,r=L(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(n,r),tx:l.tx,ty:l.ty}}function L(e,t){var n=e.trace,r=t.h*(n.domain.y[1]-n.domain.y[0]);return Math.min(e.titleBox.height,r/2)}function I(e){var t,n=e.pull;if(!n)return 0;if(Array.isArray(n))for(n=0,t=0;t<e.pull.length;t++)e.pull[t]>n&&(n=e.pull[t]);return n}function E(e,t){for(var n=[],r=0;r<e.length;r++){var a=e[r][0],i=a.trace,o=i.domain,l=t.w*(o.x[1]-o.x[0]),s=t.h*(o.y[1]-o.y[0]);i.title.text&&"middle center"!==i.title.position&&(s-=L(a,t));var c=l/2,u=s/2;"funnelarea"!==i.type||i.scalegroup||(u/=i.aspectratio),a.r=Math.min(c,u)/(1+I(i)),a.cx=t.l+t.w*(i.domain.x[1]+i.domain.x[0])/2,a.cy=t.t+t.h*(1-i.domain.y[0])-s/2,i.title.text&&-1!==i.title.position.indexOf("bottom")&&(a.cy-=L(a,t)),i.scalegroup&&-1===n.indexOf(i.scalegroup)&&n.push(i.scalegroup)}!function(e,t){for(var n,r,a,i=0;i<t.length;i++){var o=1/0,l=t[i];for(r=0;r<e.length;r++)if(n=e[r][0],(a=n.trace).scalegroup===l){var s;if("pie"===a.type)s=n.r*n.r;else if("funnelarea"===a.type){var c,u;a.aspectratio>1?(c=n.r,u=c/a.aspectratio):(u=n.r,c=u*a.aspectratio),c*=(1+a.baseratio)/2,s=c*u}o=Math.min(o,s/n.vTotal)}for(r=0;r<e.length;r++)if(n=e[r][0],(a=n.trace).scalegroup===l){var d=o*n.vTotal;"funnelarea"===a.type&&(d/=(1+a.baseratio)/2,d/=a.aspectratio),n.r=Math.sqrt(d)}}}(e,n)}function O(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function D(e,t,n){var r=e._fullLayout,a=n.trace,i=a.texttemplate,o=a.textinfo;if(!i&&o&&"none"!==o){var l,c=o.split("+"),u=function(e){return-1!==c.indexOf(e)},d=u("label"),h=u("text"),f=u("value"),g=u("percent"),m=r.separators;if(l=d?[t.label]:[],h){var y=p.getFirstFilled(a.text,t.pts);v(y)&&l.push(y)}f&&l.push(p.formatPieValue(t.v,m)),g&&l.push(p.formatPiePercent(t.v/n.vTotal,m)),t.text=l.join("<br>")}if(i){var x=s.castOption(a,t.i,"texttemplate");if(x){var b=function(e){return{label:e.label,value:e.v,valueLabel:p.formatPieValue(e.v,r.separators),percent:e.v/n.vTotal,percentLabel:p.formatPiePercent(e.v/n.vTotal,r.separators),color:e.color,text:e.text,customdata:s.castOption(a,e.i,"customdata")}}(t),w=p.getFirstFilled(a.text,t.pts);(v(w)||""===w)&&(b.text=w),t.text=s.texttemplateString(x,b,e._fullLayout._d3locale,b,a._meta||{})}else t.text=""}}function P(e,t){var n=e.rotate*Math.PI/180,r=Math.cos(n),a=Math.sin(n),i=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=i*r-o*a,e.textY=i*a+o*r,e.noCenter=!0}e.exports={plot:function(e,t){var n=e._fullLayout,i=n._size;h("pie",n),x(t,e),E(t,i);var u=s.makeTraceGroups(n._pielayer,t,"trace").each((function(t){var u=r.select(this),h=t[0],f=h.trace;!function(e){var t,n,r,a=e[0],i=a.r,o=a.trace,l=o.rotation*Math.PI/180,s=2*Math.PI/a.vTotal,c="px0",u="px1";if("counterclockwise"===o.direction){for(t=0;t<e.length&&e[t].hidden;t++);if(t===e.length)return;l+=s*e[t].v,s*=-1,c="px1",u="px0"}for(r=O(i,l),t=0;t<e.length;t++)(n=e[t]).hidden||(n[c]=r,n.startangle=l,l+=s*n.v/2,n.pxmid=O(i,l),n.midangle=l,l+=s*n.v/2,r=O(i,l),n.stopangle=l,n[u]=r,n.largeArc=n.v>a.vTotal/2?1:0,n.halfangle=Math.PI*Math.min(n.v/a.vTotal,.5),n.ring=1-o.hole,n.rInscribed=A(n,a))}(t),u.attr("stroke-linejoin","round"),u.each((function(){var g=r.select(this).selectAll("g.slice").data(t);g.enter().append("g").classed("slice",!0),g.exit().remove();var v=[[[],[]],[[],[]]],x=!1;g.each((function(a,i){if(a.hidden)r.select(this).selectAll("path,g").remove();else{a.pointNumber=a.i,a.curveNumber=f.index,v[a.pxmid[1]<0?0:1][a.pxmid[0]<0?0:1].push(a);var o=h.cx,u=h.cy,g=r.select(this),w=g.selectAll("path.surface").data([a]);if(w.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),g.call(m,e,t),f.pull){var _=+p.castOption(f.pull,a.pts)||0;_>0&&(o+=_*a.pxmid[0],u+=_*a.pxmid[1])}a.cxFinal=o,a.cyFinal=u;var k=f.hole;if(a.v===h.vTotal){var T="M"+(o+a.px0[0])+","+(u+a.px0[1])+I(a.px0,a.pxmid,!0,1)+I(a.pxmid,a.px0,!0,1)+"Z";k?w.attr("d","M"+(o+k*a.px0[0])+","+(u+k*a.px0[1])+I(a.px0,a.pxmid,!1,k)+I(a.pxmid,a.px0,!1,k)+"Z"+T):w.attr("d",T)}else{var M=I(a.px0,a.px1,!0,1);if(k){var A=1-k;w.attr("d","M"+(o+k*a.px1[0])+","+(u+k*a.px1[1])+I(a.px1,a.px0,!1,k)+"l"+A*a.px0[0]+","+A*a.px0[1]+M+"Z")}else w.attr("d","M"+o+","+u+"l"+a.px0[0]+","+a.px0[1]+M+"Z")}D(e,a,h);var C=p.castOption(f.textposition,a.pts),L=g.selectAll("g.slicetext").data(a.text&&"none"!==C?[0]:[]);L.enter().append("g").classed("slicetext",!0),L.exit().remove(),L.each((function(){var g=s.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),v=s.ensureUniformFontSize(e,"outside"===C?function(e,t,n){var r=p.castOption(e.outsidetextfont.color,t.pts)||p.castOption(e.textfont.color,t.pts)||n.color,a=p.castOption(e.outsidetextfont.family,t.pts)||p.castOption(e.textfont.family,t.pts)||n.family,i=p.castOption(e.outsidetextfont.size,t.pts)||p.castOption(e.textfont.size,t.pts)||n.size;return{color:r,family:a,size:i}}(f,a,n.font):y(f,a,n.font));g.text(a.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(l.font,v).call(c.convertToTspans,e);var m,w=l.bBox(g.node());if("outside"===C)m=S(w,a);else if(m=b(w,a,h),"auto"===C&&m.scale<1){var _=s.ensureUniformFontSize(e,f.outsidetextfont);g.call(l.font,_),m=S(w=l.bBox(g.node()),a)}var k=m.textPosAngle,T=void 0===k?a.pxmid:O(h.r,k);if(m.targetX=o+T[0]*m.rCenter+(m.x||0),m.targetY=u+T[1]*m.rCenter+(m.y||0),P(m,w),m.outside){var M=m.targetY;a.yLabelMin=M-w.height/2,a.yLabelMid=M,a.yLabelMax=M+w.height/2,a.labelExtraX=0,a.labelExtraY=0,x=!0}m.fontSize=v.size,d(f.type,m,n),t[i].transform=m,g.attr("transform",s.getTextTransform(m))}))}function I(e,t,n,r){var i=r*(t[0]-e[0]),o=r*(t[1]-e[1]);return"a"+r*h.r+","+r*h.r+" 0 "+a.largeArc+(n?" 1 ":" 0 ")+i+","+o}}));var w=r.select(this).selectAll("g.titletext").data(f.title.text?[0]:[]);if(w.enter().append("g").classed("titletext",!0),w.exit().remove(),w.each((function(){var t,n=s.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),a=f.title.text;f._meta&&(a=s.templateString(a,f._meta)),n.text(a).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(l.font,f.title.font).call(c.convertToTspans,e),t="middle center"===f.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}}(h):C(h,i),n.attr("transform","translate("+t.x+","+t.y+")"+(t.scale<1?"scale("+t.scale+")":"")+"translate("+t.tx+","+t.ty+")")})),x&&function(e,t){var n,r,a,i,o,l,s,c,u,d,h,f,g;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,n){n||(n={});var a,c,u,h,f=n.labelExtraY+(r?n.yLabelMax:n.yLabelMin),g=r?e.yLabelMin:e.yLabelMax,v=r?e.yLabelMax:e.yLabelMin,m=e.cyFinal+o(e.px0[1],e.px1[1]),y=f-g;if(y*s>0&&(e.labelExtraY=y),Array.isArray(t.pull))for(c=0;c<d.length;c++)(u=d[c])===e||(p.castOption(t.pull,e.pts)||0)>=(p.castOption(t.pull,u.pts)||0)||((e.pxmid[1]-u.pxmid[1])*s>0?(y=u.cyFinal+o(u.px0[1],u.px1[1])-g-e.labelExtraY)*s>0&&(e.labelExtraY+=y):(v+e.labelExtraY-m)*s>0&&(a=3*l*Math.abs(c-d.indexOf(e)),(h=u.cxFinal+i(u.px0[0],u.px1[0])+a-(e.cxFinal+e.pxmid[0])-e.labelExtraX)*l>0&&(e.labelExtraX+=h)))}for(r=0;r<2;r++)for(a=r?v:m,o=r?Math.max:Math.min,s=r?1:-1,n=0;n<2;n++){for(i=n?Math.max:Math.min,l=n?1:-1,(c=e[r][n]).sort(a),u=e[1-r][n],d=u.concat(c),f=[],h=0;h<c.length;h++)void 0!==c[h].yLabelMid&&f.push(c[h]);for(g=!1,h=0;r&&h<u.length;h++)if(void 0!==u[h].yLabelMid){g=u[h];break}for(h=0;h<f.length;h++){var x=h&&f[h-1];g&&!h&&(x=g),y(f[h],x)}}}(v,f),function(e,t){e.each((function(e){var n=r.select(this);if(e.labelExtraX||e.labelExtraY){var a=n.select("g.slicetext text");e.transform.targetX+=e.labelExtraX,e.transform.targetY+=e.labelExtraY,a.attr("transform",s.getTextTransform(e.transform));var i=e.cxFinal+e.pxmid[0],l="M"+i+","+(e.cyFinal+e.pxmid[1]),c=(e.yLabelMax-e.yLabelMin)*(e.pxmid[0]<0?-1:1)/4;if(e.labelExtraX){var u=e.labelExtraX*e.pxmid[1]/e.pxmid[0],d=e.yLabelMid+e.labelExtraY-(e.cyFinal+e.pxmid[1]);Math.abs(u)>Math.abs(d)?l+="l"+d*e.pxmid[0]/e.pxmid[1]+","+d+"H"+(i+e.labelExtraX+c):l+="l"+e.labelExtraX+","+u+"v"+(d-u)+"h"+c}else l+="V"+(e.yLabelMid+e.labelExtraY)+"h"+c;s.ensureSingle(n,"path","textline").call(o.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:l,fill:"none"})}else n.select("path.textline").remove()}))}(g,f),x&&f.automargin){var _=l.bBox(u.node()),k=f.domain,T=i.w*(k.x[1]-k.x[0]),M=i.h*(k.y[1]-k.y[0]),A=(.5*T-h.r)/i.w,L=(.5*M-h.r)/i.h;a.autoMargin(e,"pie."+f.uid+".automargin",{xl:k.x[0]-A,xr:k.x[1]+A,yb:k.y[0]-L,yt:k.y[1]+L,l:Math.max(h.cx-h.r-_.left,0),r:Math.max(_.right-(h.cx+h.r),0),b:Math.max(_.bottom-(h.cy+h.r),0),t:Math.max(h.cy-h.r-_.top,0),pad:5})}}))}));setTimeout((function(){u.selectAll("tspan").each((function(){var e=r.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))}))}),0)},formatSliceLabel:D,transformInsideText:b,determineInsideTextFont:y,positionTitleOutside:C,prerenderTitles:x,layoutAreas:E,attachFxHandlers:m,computeTransform:P}},wTVA:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},wU1k:function(e,t){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,n){for(var r=e.root,a=e.root.next;null!==a;){if(n(a))return t.prev=a.prev,t.next=a,a.prev.next=t,void(a.prev=t);r=a,a=a.next}r.next=t,t.prev=r,t.next=null},findTransition:function(t){for(var n=e.root,r=e.root.next;null!==r&&!t(r);)n=r,r=r.next;return{before:n===e.root?null:n,after:r,insert:function(e){return e.prev=n,e.next=r,n.next=e,null!==r&&(r.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}}},wX2h:function(e,t,n){"use strict";e.exports=n("xOBz")},wkBT:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},wlgE:function(e,t,n){"use strict";var r=n("SFLx"),a=n("IVx0");e.exports={moduleType:"component",name:"colorscale",attributes:n("9Okp"),layoutAttributes:n("DdeV"),supplyLayoutDefaults:n("c5s0"),handleDefaults:n("QYPY"),crossTraceDefaults:n("Hbft"),calc:n("OqjQ"),scales:r.scales,defaultScale:r.defaultScale,getScale:r.get,isValidScale:r.isValid,hasColorscale:a.hasColorscale,extractOpts:a.extractOpts,extractScale:a.extractScale,flipScale:a.flipScale,makeColorScaleFunc:a.makeColorScaleFunc,makeColorScaleFuncFromTrace:a.makeColorScaleFuncFromTrace}},x5FY:function(e,t,n){"use strict";var r=n("bljh"),a=n("GbLo"),i=n("/CZE"),o=n("A3kh"),l=n("0RW4"),s=n("g9E0"),c=n("Nx4I"),u=n("BkK/").tickText,d=n("k6aH"),h=d.recordMinTextSize,f=d.clearMinTextSize,p=n("LfN2"),g=n("aDMI"),v=n("Gl7E"),m=n("+1rr"),y=m.text,x=m.textposition,b=n("xMdC").appendArrayPointValue,w=v.TEXTPAD;function _(e){return e.id}function k(e){if(e.ids)return _}function T(e,t){return e<t?1:-1}function M(e,t,n,r){var a;return!t.uniformtext.mode&&A(n)?(r&&(a=r()),e.transition().duration(n.duration).ease(n.easing).each("end",(function(){a&&a()})).each("interrupt",(function(){a&&a()}))):e}function A(e){return e&&e.duration>0}function S(e){return"auto"===e?0:e}function C(e,t){var n=Math.PI/180*t,r=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));return{x:e.width*a+e.height*r,y:e.width*r+e.height*a}}function L(e,t,n,r,a,i){var o=!!i.isHorizontal,l=!!i.constrained,s=i.angle||0,c=i.anchor||"end",u="end"===c,d="start"===c,h=((i.leftToRight||0)+1)/2,f=1-h,p=a.width,g=a.height,v=Math.abs(t-e),m=Math.abs(r-n),y=v>2*w&&m>2*w?w:0;v-=2*y,m-=2*y;var x=S(s);"auto"!==s||p<=v&&g<=m||!(p>v||g>m)||(p>m||g>v)&&p<g==v<m||(x+=90);var b=C(a,x),_=1;l&&(_=Math.min(1,v/b.x,m/b.y));var k=a.left*f+a.right*h,M=(a.top+a.bottom)/2,A=(e+w)*f+(t-w)*h,L=(n+r)/2,I=0,E=0;if(d||u){var O=(o?b.x:b.y)/2,D=o?T(e,t):T(n,r);o?d?(A=e+D*y,I=-D*O):(A=t-D*y,I=D*O):d?(L=n+D*y,E=-D*O):(L=r-D*y,E=D*O)}return{textX:k,textY:M,targetX:A,targetY:L,anchorX:I,anchorY:E,scale:_,rotate:x}}e.exports={plot:function(e,t,n,d,v,m){var _=t.xaxis,I=t.yaxis,E=e._fullLayout;v||(v={mode:E.barmode,norm:E.barmode,gap:E.bargap,groupgap:E.bargroupgap},f("bar",E));var O=i.makeTraceGroups(d,n,"trace bars").each((function(n){var c=r.select(this),d=n[0].trace,f="waterfall"===d.type,O="funnel"===d.type,D="bar"===d.type||O,P=0;f&&d.connector.visible&&"between"===d.connector.mode&&(P=d.connector.line.width/2);var z="h"===d.orientation,N=A(v),j=i.ensureSingle(c,"g","points"),R=k(d),F=j.selectAll("g.point").data(i.identity,R);F.enter().append("g").classed("point",!0),F.exit().remove(),F.each((function(c,f){var k,A,O=r.select(this),j=function(e,t,n,r){var a=[],i=[],o=r?t:n,l=r?n:t;return a[0]=o.c2p(e.s0,!0),i[0]=l.c2p(e.p0,!0),a[1]=o.c2p(e.s1,!0),i[1]=l.c2p(e.p1,!0),r?[a,i]:[i,a]}(c,_,I,z),R=j[0][0],F=j[0][1],B=j[1][0],H=j[1][1],V=0==(z?F-R:H-B);if(V&&D&&g.getLineWidth(d,c)&&(V=!1),V||(V=!(a(R)&&a(F)&&a(B)&&a(H))),c.isBlank=V,V&&(z?F=R:H=B),P&&!V&&(z?(R-=T(R,F)*P,F+=T(R,F)*P):(B-=T(B,H)*P,H+=T(B,H)*P)),"waterfall"===d.type){if(!V){var G=d[c.dir].marker;k=G.line.width,A=G.color}}else k=g.getLineWidth(d,c),A=c.mc||d.marker.color;function U(e){var t=r.round(k/2%1,2);return 0===v.gap&&0===v.groupgap?r.round(Math.round(e)-t,2):e}if(!e._context.staticPlot){var q=l.opacity(A)<1||k>.01?U:function(e,t,n){return n&&e===t?e:Math.abs(e-t)>=2?U(e):e>t?Math.ceil(e):Math.floor(e)};R=q(R,F,z),F=q(F,R,z),B=q(B,H,!z),H=q(H,B,!z)}var Z=M(i.ensureSingle(O,"path"),E,v,m);if(Z.style("vector-effect","non-scaling-stroke").attr("d",isNaN((F-R)*(H-B))?"M0,0Z":"M"+R+","+B+"V"+H+"H"+F+"V"+B+"Z").call(s.setClipUrl,t.layerClipId,e),!E.uniformtext.mode&&N){var W=s.makePointStyleFns(d);s.singlePointStyle(c,Z,d,W,e)}!function(e,t,n,r,a,l,c,d,f,v,m){var _,k=t.xaxis,A=t.yaxis,I=e._fullLayout;function E(t,n,r){return i.ensureSingle(t,"text").text(n).attr({class:"bartext bartext-"+_,"text-anchor":"middle","data-notex":1}).call(s.font,r).call(o.convertToTspans,e)}var O=r[0].trace,D="h"===O.orientation,P=function(e,t,n,r,a){var o,l=t[0].trace;o=l.texttemplate?function(e,t,n,r,a){var o=t[0].trace,l=i.castOption(o,n,"texttemplate");if(!l)return"";var s,c,d,h,f="waterfall"===o.type,p="funnel"===o.type;"h"===o.orientation?(s="y",c=a,d="x",h=r):(s="x",c=r,d="y",h=a);function g(e){return u(h,+e,!0).text}var v=t[n],m={};m.label=v.p,m.labelLabel=m[s+"Label"]=(y=v.p,u(c,y,!0).text);var y;var x=i.castOption(o,v.i,"text");(0===x||x)&&(m.text=x);m.value=v.s,m.valueLabel=m[d+"Label"]=g(v.s);var w={};b(w,o,v.i),f&&(m.delta=+v.rawS||v.s,m.deltaLabel=g(m.delta),m.final=v.v,m.finalLabel=g(m.final),m.initial=m.final-m.delta,m.initialLabel=g(m.initial));p&&(m.value=v.s,m.valueLabel=g(m.value),m.percentInitial=v.begR,m.percentInitialLabel=i.formatPercent(v.begR),m.percentPrevious=v.difR,m.percentPreviousLabel=i.formatPercent(v.difR),m.percentTotal=v.sumR,m.percenTotalLabel=i.formatPercent(v.sumR));var _=i.castOption(o,v.i,"customdata");_&&(m.customdata=_);return i.texttemplateString(l,m,e._d3locale,w,m,o._meta||{})}(e,t,n,r,a):l.textinfo?function(e,t,n,r){var a=e[0].trace,o="h"===a.orientation,l="waterfall"===a.type,s="funnel"===a.type;function c(e){return u(o?n:r,+e,!0).text}var d,h=a.textinfo,f=e[t],p=h.split("+"),g=[],v=function(e){return-1!==p.indexOf(e)};v("label")&&g.push((m=e[t].p,u(o?r:n,m,!0).text));var m;v("text")&&(0===(d=i.castOption(a,f.i,"text"))||d)&&g.push(d);if(l){var y=+f.rawS||f.s,x=f.v,b=x-y;v("initial")&&g.push(c(b)),v("delta")&&g.push(c(y)),v("final")&&g.push(c(x))}if(s){v("value")&&g.push(c(f.s));var w=0;v("percent initial")&&w++,v("percent previous")&&w++,v("percent total")&&w++;var _=w>1;v("percent initial")&&(d=i.formatPercent(f.begR),_&&(d+=" of initial"),g.push(d)),v("percent previous")&&(d=i.formatPercent(f.difR),_&&(d+=" of previous"),g.push(d)),v("percent total")&&(d=i.formatPercent(f.sumR),_&&(d+=" of total"),g.push(d))}return g.join("<br>")}(t,n,r,a):g.getValue(l.text,n);return g.coerceString(y,o)}(I,r,a,k,A);_=function(e,t){var n=g.getValue(e.textposition,t);return g.coerceEnumerated(x,n)}(O,a);var z="stack"===v.mode||"relative"===v.mode,N=r[a],j=!z||N._outmost;if(!P||"none"===_||(N.isBlank||l===c||d===f)&&("auto"===_||"inside"===_))return void n.select("text").remove();var R=I.font,F=p.getBarColor(r[a],O),B=p.getInsideTextFont(O,a,R,F),H=p.getOutsideTextFont(O,a,R),V=n.datum();D?"log"===k.type&&V.s0<=0&&(l=k.range[0]<k.range[1]?0:k._length):"log"===A.type&&V.s0<=0&&(d=A.range[0]<A.range[1]?A._length:0);var G,U,q,Z,W,Y=Math.abs(c-l)-2*w,X=Math.abs(f-d)-2*w;"outside"===_&&(j||N.hasB||(_="inside"));if("auto"===_)if(j){_="inside",W=i.ensureUniformFontSize(e,B),G=E(n,P,W),U=s.bBox(G.node()),q=U.width,Z=U.height;var $=q<=Y&&Z<=X,J=q<=X&&Z<=Y,K=D?Y>=q*(X/Z):X>=Z*(Y/q);q>0&&Z>0&&($||J||K)?_="inside":(_="outside",G.remove(),G=null)}else _="inside";if(!G){W=i.ensureUniformFontSize(e,"outside"===_?H:B);var Q=(G=E(n,P,W)).attr("transform");if(G.attr("transform",""),U=s.bBox(G.node()),q=U.width,Z=U.height,G.attr("transform",Q),q<=0||Z<=0)return void G.remove()}var ee,te,ne=O.textangle;"outside"===_?(te="both"===O.constraintext||"outside"===O.constraintext,ee=function(e,t,n,r,a,i){var o,l=!!i.isHorizontal,s=!!i.constrained,c=i.angle||0,u=a.width,d=a.height,h=Math.abs(t-e),f=Math.abs(r-n);o=l?f>2*w?w:0:h>2*w?w:0;var p=1;s&&(p=l?Math.min(1,f/d):Math.min(1,h/u));var g=S(c),v=C(a,g),m=(l?v.x:v.y)/2,y=(a.left+a.right)/2,x=(a.top+a.bottom)/2,b=(e+t)/2,_=(n+r)/2,k=0,M=0,A=l?T(t,e):T(n,r);l?(b=t-A*o,k=A*m):(_=r+A*o,M=-A*m);return{textX:y,textY:x,targetX:b,targetY:_,anchorX:k,anchorY:M,scale:p,rotate:g}}(l,c,d,f,U,{isHorizontal:D,constrained:te,angle:ne})):(te="both"===O.constraintext||"inside"===O.constraintext,ee=L(l,c,d,f,U,{isHorizontal:D,constrained:te,angle:ne,anchor:O.insidetextanchor}));ee.fontSize=W.size,h(O.type,ee,I),N.transform=ee,M(G,I,v,m).attr("transform",i.getTextTransform(ee))}(e,t,O,n,f,R,F,B,H,v,m),t.layerClipId&&s.hideOutsideRangePoint(c,O.select("text"),_,I,d.xcalendar,d.ycalendar)}));var B=!1===d.cliponaxis;s.setClipUrl(c,B?null:t.layerClipId,e)}));c.getComponentMethod("errorbars","plot")(e,O,t,v)},toMoveInsideBar:L}},x8K2:function(e,t,n){"use strict";e.exports={moduleType:"trace",name:"treemap",basePlotModule:n("tt4z"),categories:[],animatable:!0,attributes:n("l9FN"),layoutAttributes:n("Po4l"),supplyDefaults:n("Kicf"),supplyLayoutDefaults:n("SqgR"),calc:n("/Hui").calc,crossTraceCalc:n("/Hui").crossTraceCalc,plot:n("V9qq"),style:n("2oy/").style,colorbar:n("88/Y"),meta:{description:["Visualize hierarchal data from leaves (and/or outer branches) towards root","with rectangles. The treemap sectors are determined by the entries in","*labels* or *ids* and in *parents*."].join(" ")}}},"xAC+":function(e,t,n){"use strict";var r=e.exports={},a=n("CASU").locationmodeToLayer,i=n("0hfp").feature;r.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")},r.getTopojsonPath=function(e,t){return e+t+".json"},r.getTopojsonFeatures=function(e,t){var n=a[e.locationmode],r=t.objects[n];return i(t,r).features}},xDfF:function(e,t,n){"use strict";var r=n("bljh");e.exports=function(e){r.select(e).selectAll(".hm image").style("opacity",(function(e){return e.trace.opacity}))}},xJcw:function(e,t,n){"use strict";var r=n("GbLo"),a=n("WSjQ"),i=n("Nx4I"),o=n("/CZE"),l=n("u3HJ"),s=n("PBw4"),c=n("0RW4"),u=s.cleanId,d=s.getFromTrace,h=i.traceIs;function f(e,t){var n=e[t],r=t.charAt(0);n&&"paper"!==n&&(e[t]=u(n,r))}function p(e){function t(t,n){var r=e[t],a=e.title&&e.title[n];r&&!a&&(e.title||(e.title={}),e.title[n]=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 g(e){if(!o.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,n,r){if(n&&!r)return e;if(r&&!n)return t;if(!e.trim())return t;if(!t.trim())return e;var a,i=Math.min(e.length,t.length);for(a=0;a<i&&e.charAt(a)===t.charAt(a);a++);return e.substr(0,a).trim()}function m(e){var t="middle",n="center";return"string"==typeof e&&(-1!==e.indexOf("top")?t="top":-1!==e.indexOf("bottom")&&(t="bottom"),-1!==e.indexOf("left")?n="left":-1!==e.indexOf("right")&&(n="right")),t+" "+n}function y(e,t){return t in e&&"object"==typeof e[t]&&0===Object.keys(e[t]).length}t.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&o.log("Clearing previous rejected promises from queue."),e._promises=[]},t.cleanLayout=function(e){var n,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 i=(l.subplotsRegistry.cartesian||{}).attrRegex,s=(l.subplotsRegistry.polar||{}).attrRegex,d=(l.subplotsRegistry.ternary||{}).attrRegex,h=(l.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(e);for(n=0;n<g.length;n++){var v=g[n];if(i&&i.test(v)){var m=e[v];m.anchor&&"free"!==m.anchor&&(m.anchor=u(m.anchor)),m.overlaying&&(m.overlaying=u(m.overlaying)),m.type||(m.isdate?m.type="date":m.islog?m.type="log":!1===m.isdate&&!1===m.islog&&(m.type="linear")),"withzero"!==m.autorange&&"tozero"!==m.autorange||(m.autorange=!0,m.rangemode="tozero"),delete m.islog,delete m.isdate,delete m.categories,y(m,"domain")&&delete m.domain,void 0!==m.autotick&&(void 0===m.tickmode&&(m.tickmode=m.autotick?"auto":"linear"),delete m.autotick),p(m)}else if(s&&s.test(v)){p(e[v].radialaxis)}else if(d&&d.test(v)){var x=e[v];p(x.aaxis),p(x.baxis),p(x.caxis)}else if(h&&h.test(v)){var b=e[v],w=b.cameraposition;if(Array.isArray(w)&&4===w[0].length){var _=w[0],k=w[1],T=w[2],M=a([],_),A=[];for(r=0;r<3;++r)A[r]=k[r]+T*M[2+4*r];b.camera={eye:{x:A[0],y:A[1],z:A[2]},center:{x:k[0],y:k[1],z:k[2]},up:{x:0,y:0,z:1}},delete b.cameraposition}p(b.xaxis),p(b.yaxis),p(b.zaxis)}}var S=Array.isArray(e.annotations)?e.annotations.length:0;for(n=0;n<S;n++){var C=e.annotations[n];o.isPlainObject(C)&&(C.ref&&("paper"===C.ref?(C.xref="paper",C.yref="paper"):"data"===C.ref&&(C.xref="x",C.yref="y"),delete C.ref),f(C,"xref"),f(C,"yref"))}var L=Array.isArray(e.shapes)?e.shapes.length:0;for(n=0;n<L;n++){var I=e.shapes[n];o.isPlainObject(I)&&(f(I,"xref"),f(I,"yref"))}var E=e.legend;return E&&(E.x>3?(E.x=1.02,E.xanchor="left"):E.x<-2&&(E.x=-.02,E.xanchor="right"),E.y>3?(E.y=1.02,E.yanchor="bottom"):E.y<-2&&(E.y=-.02,E.yanchor="top")),p(e),"rotate"===e.dragmode&&(e.dragmode="orbit"),c.clean(e),e.template&&e.template.layout&&t.cleanLayout(e.template.layout),e},t.cleanData=function(e){for(var n=0;n<e.length;n++){var r,a=e[n];if("histogramy"===a.type&&"xbins"in a&&!("ybins"in a)&&(a.ybins=a.xbins,delete a.xbins),a.error_y&&"opacity"in a.error_y){var s=c.defaults,d=a.error_y.color||(h(a,"bar")?c.defaultLine:s[n%s.length]);a.error_y.color=c.addOpacity(c.rgb(d),c.opacity(d)*a.error_y.opacity),delete a.error_y.opacity}if("bardir"in a&&("h"!==a.bardir||!h(a,"bar")&&"histogram"!==a.type.substr(0,9)||(a.orientation="h",t.swapXYData(a)),delete a.bardir),"histogramy"===a.type&&t.swapXYData(a),"histogramx"!==a.type&&"histogramy"!==a.type||(a.type="histogram"),"scl"in a&&!("colorscale"in a)&&(a.colorscale=a.scl,delete a.scl),"reversescl"in a&&!("reversescale"in a)&&(a.reversescale=a.reversescl,delete a.reversescl),a.xaxis&&(a.xaxis=u(a.xaxis,"x")),a.yaxis&&(a.yaxis=u(a.yaxis,"y")),h(a,"gl3d")&&a.scene&&(a.scene=l.subplotsRegistry.gl3d.cleanId(a.scene)),!h(a,"pie-like")&&!h(a,"bar-like"))if(Array.isArray(a.textposition))for(r=0;r<a.textposition.length;r++)a.textposition[r]=m(a.textposition[r]);else a.textposition&&(a.textposition=m(a.textposition));var f=i.getModule(a);if(f&&f.colorbar){var x=f.colorbar.container,b=x?a[x]:a;b&&b.colorscale&&("YIGnBu"===b.colorscale&&(b.colorscale="YlGnBu"),"YIOrRd"===b.colorscale&&(b.colorscale="YlOrRd"))}if("surface"===a.type&&o.isPlainObject(a.contours)){var w=["x","y","z"];for(r=0;r<w.length;r++){var _=a.contours[w[r]];o.isPlainObject(_)&&(_.highlightColor&&(_.highlightcolor=_.highlightColor,delete _.highlightColor),_.highlightWidth&&(_.highlightwidth=_.highlightWidth,delete _.highlightWidth))}}if("candlestick"===a.type||"ohlc"===a.type){var k=!1!==(a.increasing||{}).showlegend,T=!1!==(a.decreasing||{}).showlegend,M=g(a.increasing),A=g(a.decreasing);if(!1!==M&&!1!==A){var S=v(M,A,k,T);S&&(a.name=S)}else!M&&!A||a.name||(a.name=M||A)}if(Array.isArray(a.transforms)){var C=a.transforms;for(r=0;r<C.length;r++){var L=C[r];if(o.isPlainObject(L))switch(L.type){case"filter":L.filtersrc&&(L.target=L.filtersrc,delete L.filtersrc),L.calendar&&(L.valuecalendar||(L.valuecalendar=L.calendar),delete L.calendar);break;case"groupby":if(L.styles=L.styles||L.style,L.styles&&!Array.isArray(L.styles)){var I=L.styles,E=Object.keys(I);L.styles=[];for(var O=0;O<E.length;O++)L.styles.push({target:E[O],value:I[E[O]]})}}}}y(a,"line")&&delete a.line,"marker"in a&&(y(a.marker,"line")&&delete a.marker.line,y(a,"marker")&&delete a.marker),c.clean(a),a.autobinx&&(delete a.autobinx,delete a.xbins),a.autobiny&&(delete a.autobiny,delete a.ybins),p(a),a.colorbar&&p(a.colorbar),a.marker&&a.marker.colorbar&&p(a.marker.colorbar),a.line&&a.line.colorbar&&p(a.line.colorbar),a.aaxis&&p(a.aaxis),a.baxis&&p(a.baxis)}},t.swapXYData=function(e){var t;if(o.swapAttrs(e,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(e.z)&&Array.isArray(e.z[0])&&(e.transpose?delete e.transpose:e.transpose=!0),e.error_x&&e.error_y){var n=e.error_y,r="copy_ystyle"in n?n.copy_ystyle:!(n.color||n.thickness||n.width);o.swapAttrs(e,["error_?.copy_ystyle"]),r&&o.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if("string"==typeof e.hoverinfo){var a=e.hoverinfo.split("+");for(t=0;t<a.length;t++)"x"===a[t]?a[t]="y":"y"===a[t]&&(a[t]="x");e.hoverinfo=a.join("+")}},t.coerceTraceIndices=function(e,t){if(r(t))return[t];if(!Array.isArray(t)||!t.length)return e.data.map((function(e,t){return t}));if(Array.isArray(t)){for(var n=[],a=0;a<t.length;a++)o.isIndex(t[a],e.data.length)?n.push(t[a]):o.warn("trace index (",t[a],") is not a number or is out of bounds");return n}return t},t.manageArrayContainers=function(e,t,n){var a=e.obj,i=e.parts,l=i.length,s=i[l-1],c=r(s);if(c&&null===t){var u=i.slice(0,l-1).join(".");o.nestedProperty(a,u).get().splice(s,1)}else c&&void 0===e.get()?(void 0===e.get()&&(n[e.astr]=null),e.set(t)):e.set(t)};var x=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function b(e){var t=e.search(x);if(t>0)return e.substr(0,t)}t.hasParent=function(e,t){for(var n=b(t);n;){if(n in e)return!0;n=b(n)}return!1};var w=["x","y","z"];t.clearAxisTypes=function(e,t,n){for(var r=0;r<t.length;r++)for(var a=e._fullData[r],i=0;i<3;i++){var l=d(e,a,w[i]);if(l&&"log"!==l.type){var s=l._name,c=l._id.substr(1);if("scene"===c.substr(0,5)){if(void 0!==n[c])continue;s=c+"."+s}var u=s+".type";void 0===n[s]&&void 0===n[u]&&o.nestedProperty(e.layout,u).set(null)}}}},xMdC:function(e,t,n){"use strict";var r=n("/CZE");t.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},t.isTraceInSubplots=function(e,n){if("splom"===e.type){for(var r=e.xaxes||[],a=e.yaxes||[],i=0;i<r.length;i++)for(var o=0;o<a.length;o++)if(-1!==n.indexOf(r[i]+a[o]))return!0;return!1}return-1!==n.indexOf(t.getSubplot(e))},t.flat=function(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)n[r]=t;return n},t.p2c=function(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r].p2c(t);return n},t.getDistanceFunction=function(e,n,r,a){return"closest"===e?a||t.quadrature(n,r):"x"===e.charAt(0)?n:r},t.getClosest=function(e,t,n){if(!1!==n.index)n.index>=0&&n.index<e.length?n.distance=0:n.index=!1;else for(var r=0;r<e.length;r++){var a=t(e[r]);a<=n.distance&&(n.index=r,n.distance=a)}return n},t.inbox=function(e,t,n){return e*t<0||0===e?n:1/0},t.quadrature=function(e,t){return function(n){var r=e(n),a=t(n);return Math.sqrt(r*r+a*a)}},t.makeEventData=function(e,n,r){var a="index"in e?e.index:e.pointNumber,i={data:n._input,fullData:n,curveNumber:n.index,pointNumber:a};if(n._indexToPoints){var o=n._indexToPoints[a];1===o.length?i.pointIndex=o[0]:i.pointIndices=o}else i.pointIndex=a;return n._module.eventData?i=n._module.eventData(i,e,n,r,a):("xVal"in e?i.x=e.xVal:"x"in e&&(i.x=e.x),"yVal"in e?i.y=e.yVal:"y"in e&&(i.y=e.y),e.xa&&(i.xaxis=e.xa),e.ya&&(i.yaxis=e.ya),void 0!==e.zLabelVal&&(i.z=e.zLabelVal)),t.appendArrayPointValue(i,n,a),i},t.appendArrayPointValue=function(e,t,n){var a=t._arrayAttrs;if(a)for(var l=0;l<a.length;l++){var s=a[l],c=i(s);if(void 0===e[c]){var u=o(r.nestedProperty(t,s).get(),n);void 0!==u&&(e[c]=u)}}},t.appendArrayMultiPointValues=function(e,t,n){var a=t._arrayAttrs;if(a)for(var l=0;l<a.length;l++){var s=a[l],c=i(s);if(void 0===e[c]){for(var u=r.nestedProperty(t,s).get(),d=new Array(n.length),h=0;h<n.length;h++)d[h]=o(u,n[h]);e[c]=d}}};var a={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function i(e){return a[e]||e}function o(e,t){return Array.isArray(t)?Array.isArray(e)&&Array.isArray(e[t[0]])?e[t[0]][t[1]]:void 0:e[t]}var l={x:!0,y:!0},s={"x unified":!0,"y unified":!0};t.isUnifiedHover=function(e){return"string"==typeof e&&!!s[e]},t.isXYhover=function(e){return"string"==typeof e&&!!l[e]}},xOBz:function(e,t,n){"use strict";t.version=n("W0H3").version,n("E2g8").polyfill(),n("BGtl"),n("drJC")();for(var r=n("Nx4I"),a=t.register=r.register,i=n("RC9+"),o=Object.keys(i),l=0;l<o.length;l++){var s=o[l];"_"!==s.charAt(0)&&(t[s]=i[s]),a({moduleType:"apiMethod",name:s,fn:i[s]})}a(n("Xo+u")),a([n("l3j2"),n("pcRN"),n("cPlZ"),n("ybzJ"),n("MnPd"),n("fJ8H"),n("zRkR"),n("7rOW"),n("HAuI"),n("BK0j"),n("eXRl"),n("fu4d"),n("wlgE"),n("/LJd")]),a([n("Hqa2"),n("HgMN")]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(a(window.PlotlyLocales),delete window.PlotlyLocales),t.Icons=n("dVlp"),t.Plots=n("u3HJ"),t.Fx=n("pcRN"),t.Snapshot=n("yme6"),t.PlotSchema=n("aSHK"),t.Queue=n("xra3"),t.d3=n("bljh")},xPRw:function(e,t,n){"use strict";var r=n("/CZE"),a=n("BkK/"),i=n("5azm"),o=n("Fyky"),l=n("FLbl");function s(e,t,n,i){function s(n,a){return r.coerce(e,t,l,n,a)}function c(e){var r=e+"axis",i={_fullLayout:{}};return i._fullLayout[r]=n[r],a.coercePosition(t,i,s,e,e,.5)}s("visible")&&(o(e,t,i.fullLayout,s),c("x"),c("y"),c("z"),r.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),r.noneOrAll(e,t,["ax","ay"])))}e.exports=function(e,t,n){i(e,t,{name:"annotations",handleItemDefaults:s,fullLayout:n.fullLayout})}},xra3:function(e,t,n){"use strict";var r=n("/CZE"),a=n("P/XJ").dfltConfig;var i={add:function(e,t,n,r,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(n),o.redo.calls.push(r),o.redo.args.push(i)),e.undoQueue.queue.length>a.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,n;if(e.framework&&e.framework.isPolar)e.framework.undo();else 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,n=0;n<t.undo.calls.length;n++)i.plotDo(e,t.undo.calls[n],t.undo.args[n]);e.undoQueue.inSequence=!1,e.autoplay=!1}},redo:function(e){var t,n;if(e.framework&&e.framework.isPolar)e.framework.redo();else if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index>=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n<t.redo.calls.length;n++)i.plotDo(e,t.redo.calls[n],t.redo.args[n]);e.undoQueue.inSequence=!1,e.autoplay=!1,e.undoQueue.index++}}};i.plotDo=function(e,t,n){e.autoplay=!0,n=function(e,t){for(var n,a=[],i=0;i<t.length;i++)n=t[i],a[i]=n===e?n:"object"==typeof n?Array.isArray(n)?r.extendDeep([],n):r.extendDeepAll({},n):n;return a}(e,n),t.apply(null,n)},e.exports=i},y9Tj:function(e,t,n){"use strict";var r=n("/CZE"),a=n("pGKX"),i=n("IJNW");e.exports=function(e,t,n,o){var l=r.extendFlat({},o.hoverlabel);t.hovertemplate&&(l.namelength=-1),i(e,t,(function(n,i){return r.coerce(e,t,a,n,i)}),l)}},yA84:function(e,t,n){"use strict";e.exports=n("en0M")},yLjo:function(e,t,n){"use strict";var r=n("yUfG");e.exports=function(e,t,n){var a,i=n.flipX,o=n.flipY,l="dice-slice"===n.packing,s=n.pad[o?"bottom":"top"],c=n.pad[i?"right":"left"],u=n.pad[i?"left":"right"],d=n.pad[o?"top":"bottom"];l&&(a=c,c=s,s=a,a=u,u=d,d=a);var h=r.treemap().tile(function(e,t){switch(e){case"squarify":return r.treemapSquarify.ratio(t);case"binary":return r.treemapBinary;case"dice":return r.treemapDice;case"slice":return r.treemapSlice;default:return r.treemapSliceDice}}(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(c).paddingRight(u).paddingTop(s).paddingBottom(d).size(l?[t[1],t[0]]:t)(e);return(l||i||o)&&function e(t,n,r){var a;r.swapXY&&(a=t.x0,t.x0=t.y0,t.y0=a,a=t.x1,t.x1=t.y1,t.y1=a);r.flipX&&(a=t.x0,t.x0=n[0]-t.x1,t.x1=n[0]-a);r.flipY&&(a=t.y0,t.y0=n[1]-t.y1,t.y1=n[1]-a);var i=t.children;if(i)for(var o=0;o<i.length;o++)e(i[o],n,r)}(h,t,{swapXY:l,flipX:i,flipY:o}),h}},yPDV:function(e,t,n){"use strict";e.exports=function(e,t,n){!1===n("zsmooth")&&(n("xgap"),n("ygap")),n("zhoverformat")}},yUfG:function(e,t,n){"use strict";function r(e,t){return e.parent===t.parent?1:2}function a(e,t){return e+t.x}function i(e,t){return Math.max(e,t.y)}n.r(t),n.d(t,"cluster",(function(){return o})),n.d(t,"hierarchy",(function(){return s})),n.d(t,"pack",(function(){return D})),n.d(t,"packSiblings",(function(){return S})),n.d(t,"packEnclose",(function(){return p})),n.d(t,"partition",(function(){return F})),n.d(t,"stratify",(function(){return U})),n.d(t,"tree",(function(){return J})),n.d(t,"treemap",(function(){return ne})),n.d(t,"treemapBinary",(function(){return re})),n.d(t,"treemapDice",(function(){return R})),n.d(t,"treemapSlice",(function(){return K})),n.d(t,"treemapSliceDice",(function(){return ae})),n.d(t,"treemapSquarify",(function(){return te})),n.d(t,"treemapResquarify",(function(){return ie}));var o=function(){var e=r,t=1,n=1,o=!1;function l(r){var l,s=0;r.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(a,0)/e.length}(n),t.y=function(e){return 1+e.reduce(i,0)}(n)):(t.x=l?s+=e(t,l):0,t.y=0,l=t)}));var c=function(e){for(var t;t=e.children;)e=t[0];return e}(r),u=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(r),d=c.x-e(c,u)/2,h=u.x+e(u,c)/2;return r.eachAfter(o?function(e){e.x=(e.x-r.x)*t,e.y=(r.y-e.y)*n}:function(e){e.x=(e.x-d)/(h-d)*t,e.y=(1-(r.y?e.y/r.y:1))*n})}return l.separation=function(t){return arguments.length?(e=t,l):e},l.size=function(e){return arguments.length?(o=!1,t=+e[0],n=+e[1],l):o?null:[t,n]},l.nodeSize=function(e){return arguments.length?(o=!0,t=+e[0],n=+e[1],l):o?[t,n]:null},l};function l(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function s(e,t){var n,r,a,i,o,l=new h(e),s=+e.value&&(l.value=e.value),u=[l];for(null==t&&(t=c);n=u.pop();)if(s&&(n.value=+n.data.value),(a=t(n.data))&&(o=a.length))for(n.children=new Array(o),i=o-1;i>=0;--i)u.push(r=n.children[i]=new h(a[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(d)}function c(e){return e.children}function u(e){e.data=e.data.data}function d(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function h(e){this.data=e,this.depth=this.height=0,this.parent=null}h.prototype=s.prototype={constructor:h,count:function(){return this.eachAfter(l)},each:function(e){var t,n,r,a,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(e(i),n=i.children)for(r=0,a=n.length;r<a;++r)o.push(n[r])}while(o.length);return this},eachAfter:function(e){for(var t,n,r,a=this,i=[a],o=[];a=i.pop();)if(o.push(a),t=a.children)for(n=0,r=t.length;n<r;++n)i.push(t[n]);for(;a=o.pop();)e(a);return this},eachBefore:function(e){for(var t,n,r=this,a=[r];r=a.pop();)if(e(r),t=r.children)for(n=t.length-1;n>=0;--n)a.push(t[n]);return this},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,a=r&&r.length;--a>=0;)n+=r[a].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),a=null;e=n.pop(),t=r.pop();for(;e===t;)a=e,e=n.pop(),t=r.pop();return a}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var a=r.length;e!==n;)r.splice(a,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each((function(t){e.push(t)})),e},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return s(this).eachBefore(u)}};var f=Array.prototype.slice;var p=function(e){for(var t,n,r=0,a=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(f.call(e))).length,i=[];r<a;)t=e[r],n&&m(n,t)?++r:(n=x(i=g(i,t)),r=0);return n};function g(e,t){var n,r;if(y(t,e))return[t];for(n=0;n<e.length;++n)if(v(t,e[n])&&y(b(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(v(b(e[n],e[r]),t)&&v(b(e[n],t),e[r])&&v(b(e[r],t),e[n])&&y(w(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function v(e,t){var n=e.r-t.r,r=t.x-e.x,a=t.y-e.y;return n<0||n*n<r*r+a*a}function m(e,t){var n=e.r-t.r+1e-6,r=t.x-e.x,a=t.y-e.y;return n>0&&n*n>r*r+a*a}function y(e,t){for(var n=0;n<t.length;++n)if(!m(e,t[n]))return!1;return!0}function x(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return b(e[0],e[1]);case 3:return w(e[0],e[1],e[2])}var t}function b(e,t){var n=e.x,r=e.y,a=e.r,i=t.x,o=t.y,l=t.r,s=i-n,c=o-r,u=l-a,d=Math.sqrt(s*s+c*c);return{x:(n+i+s/d*u)/2,y:(r+o+c/d*u)/2,r:(d+a+l)/2}}function w(e,t,n){var r=e.x,a=e.y,i=e.r,o=t.x,l=t.y,s=t.r,c=n.x,u=n.y,d=n.r,h=r-o,f=r-c,p=a-l,g=a-u,v=s-i,m=d-i,y=r*r+a*a-i*i,x=y-o*o-l*l+s*s,b=y-c*c-u*u+d*d,w=f*p-h*g,_=(p*b-g*x)/(2*w)-r,k=(g*v-p*m)/w,T=(f*x-h*b)/(2*w)-a,M=(h*m-f*v)/w,A=k*k+M*M-1,S=2*(i+_*k+T*M),C=_*_+T*T-i*i,L=-(A?(S+Math.sqrt(S*S-4*A*C))/(2*A):C/S);return{x:r+_+k*L,y:a+T+M*L,r:L}}function _(e,t,n){var r,a,i,o,l=e.x-t.x,s=e.y-t.y,c=l*l+s*s;c?(a=t.r+n.r,a*=a,o=e.r+n.r,a>(o*=o)?(r=(c+o-a)/(2*c),i=Math.sqrt(Math.max(0,o/c-r*r)),n.x=e.x-r*l-i*s,n.y=e.y-r*s+i*l):(r=(c+a-o)/(2*c),i=Math.sqrt(Math.max(0,a/c-r*r)),n.x=t.x+r*l-i*s,n.y=t.y+r*s+i*l)):(n.x=t.x+n.r,n.y=t.y)}function k(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,a=t.y-e.y;return n>0&&n*n>r*r+a*a}function T(e){var t=e._,n=e.next._,r=t.r+n.r,a=(t.x*n.r+n.x*t.r)/r,i=(t.y*n.r+n.y*t.r)/r;return a*a+i*i}function M(e){this._=e,this.next=null,this.previous=null}function A(e){if(!(a=e.length))return 0;var t,n,r,a,i,o,l,s,c,u,d;if((t=e[0]).x=0,t.y=0,!(a>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(a>2))return t.r+n.r;_(n,t,r=e[2]),t=new M(t),n=new M(n),r=new M(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(l=3;l<a;++l){_(t._,n._,r=e[l]),r=new M(r),s=n.next,c=t.previous,u=n._.r,d=t._.r;do{if(u<=d){if(k(s._,r._)){n=s,t.next=n,n.previous=t,--l;continue e}u+=s._.r,s=s.next}else{if(k(c._,r._)){(t=c).next=n,n.previous=t,--l;continue e}d+=c._.r,c=c.previous}}while(s!==c.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,i=T(t);(r=r.next)!==n;)(o=T(r))<i&&(t=r,i=o);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=p(t),l=0;l<a;++l)(t=e[l]).x-=r.x,t.y-=r.y;return r.r}var S=function(e){return A(e),e};function C(e){return null==e?null:L(e)}function L(e){if("function"!=typeof e)throw new Error;return e}function I(){return 0}var E=function(e){return function(){return e}};function O(e){return Math.sqrt(e.value)}var D=function(){var e=null,t=1,n=1,r=I;function a(a){return a.x=t/2,a.y=n/2,e?a.eachBefore(P(e)).eachAfter(z(r,.5)).eachBefore(N(1)):a.eachBefore(P(O)).eachAfter(z(I,1)).eachAfter(z(r,a.r/Math.min(t,n))).eachBefore(N(Math.min(t,n)/(2*a.r))),a}return a.radius=function(t){return arguments.length?(e=C(t),a):e},a.size=function(e){return arguments.length?(t=+e[0],n=+e[1],a):[t,n]},a.padding=function(e){return arguments.length?(r="function"==typeof e?e:E(+e),a):r},a};function P(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function z(e,t){return function(n){if(r=n.children){var r,a,i,o=r.length,l=e(n)*t||0;if(l)for(a=0;a<o;++a)r[a].r+=l;if(i=A(r),l)for(a=0;a<o;++a)r[a].r-=l;n.r=i+l}}}function N(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}var j=function(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)},R=function(e,t,n,r,a){for(var i,o=e.children,l=-1,s=o.length,c=e.value&&(r-t)/e.value;++l<s;)(i=o[l]).y0=n,i.y1=a,i.x0=t,i.x1=t+=i.value*c},F=function(){var e=1,t=1,n=0,r=!1;function a(a){var i=a.height+1;return a.x0=a.y0=n,a.x1=e,a.y1=t/i,a.eachBefore(function(e,t){return function(r){r.children&&R(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var a=r.x0,i=r.y0,o=r.x1-n,l=r.y1-n;o<a&&(a=o=(a+o)/2),l<i&&(i=l=(i+l)/2),r.x0=a,r.y0=i,r.x1=o,r.y1=l}}(t,i)),r&&a.eachBefore(j),a}return a.round=function(e){return arguments.length?(r=!!e,a):r},a.size=function(n){return arguments.length?(e=+n[0],t=+n[1],a):[e,t]},a.padding=function(e){return arguments.length?(n=+e,a):n},a},B={depth:-1},H={};function V(e){return e.id}function G(e){return e.parentId}var U=function(){var e=V,t=G;function n(n){var r,a,i,o,l,s,c,u=n.length,f=new Array(u),p={};for(a=0;a<u;++a)r=n[a],l=f[a]=new h(r),null!=(s=e(r,a,n))&&(s+="")&&(p[c="$"+(l.id=s)]=c in p?H:l);for(a=0;a<u;++a)if(l=f[a],null!=(s=t(n[a],a,n))&&(s+="")){if(!(o=p["$"+s]))throw new Error("missing: "+s);if(o===H)throw new Error("ambiguous: "+s);o.children?o.children.push(l):o.children=[l],l.parent=o}else{if(i)throw new Error("multiple roots");i=l}if(!i)throw new Error("no root");if(i.parent=B,i.eachBefore((function(e){e.depth=e.parent.depth+1,--u})).eachBefore(d),i.parent=null,u>0)throw new Error("cycle");return i}return n.id=function(t){return arguments.length?(e=L(t),n):e},n.parentId=function(e){return arguments.length?(t=L(e),n):t},n};function q(e,t){return e.parent===t.parent?1:2}function Z(e){var t=e.children;return t?t[0]:e.t}function W(e){var t=e.children;return t?t[t.length-1]:e.t}function Y(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function X(e,t,n){return e.a.parent===t.parent?e.a:n}function $(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}$.prototype=Object.create(h.prototype);var J=function(){var e=q,t=1,n=1,r=null;function a(a){var s=function(e){for(var t,n,r,a,i,o=new $(e,0),l=[o];t=l.pop();)if(r=t._.children)for(t.children=new Array(i=r.length),a=i-1;a>=0;--a)l.push(n=t.children[a]=new $(r[a],a)),n.parent=t;return(o.parent=new $(null,0)).children=[o],o}(a);if(s.eachAfter(i),s.parent.m=-s.z,s.eachBefore(o),r)a.eachBefore(l);else{var c=a,u=a,d=a;a.eachBefore((function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)}));var h=c===u?1:e(c,u)/2,f=h-c.x,p=t/(u.x+h+f),g=n/(d.depth||1);a.eachBefore((function(e){e.x=(e.x+f)*p,e.y=e.depth*g}))}return a}function i(t){var n=t.children,r=t.parent.children,a=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,a=e.children,i=a.length;--i>=0;)(t=a[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var i=(n[0].z+n[n.length-1].z)/2;a?(t.z=a.z+e(t._,a._),t.m=t.z-i):t.z=i}else a&&(t.z=a.z+e(t._,a._));t.parent.A=function(t,n,r){if(n){for(var a,i=t,o=t,l=n,s=i.parent.children[0],c=i.m,u=o.m,d=l.m,h=s.m;l=W(l),i=Z(i),l&&i;)s=Z(s),(o=W(o)).a=t,(a=l.z+d-i.z-c+e(l._,i._))>0&&(Y(X(l,t,r),t,a),c+=a,u+=a),d+=l.m,c+=i.m,h+=s.m,u+=o.m;l&&!W(o)&&(o.t=l,o.m+=d-u),i&&!Z(s)&&(s.t=i,s.m+=c-h,r=t)}return r}(t,a,t.parent.A||r[0])}function o(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function l(e){e.x*=t,e.y=e.depth*n}return a.separation=function(t){return arguments.length?(e=t,a):e},a.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],a):r?null:[t,n]},a.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],a):r?[t,n]:null},a},K=function(e,t,n,r,a){for(var i,o=e.children,l=-1,s=o.length,c=e.value&&(a-n)/e.value;++l<s;)(i=o[l]).x0=t,i.x1=r,i.y0=n,i.y1=n+=i.value*c},Q=(1+Math.sqrt(5))/2;function ee(e,t,n,r,a,i){for(var o,l,s,c,u,d,h,f,p,g,v,m=[],y=t.children,x=0,b=0,w=y.length,_=t.value;x<w;){s=a-n,c=i-r;do{u=y[b++].value}while(!u&&b<w);for(d=h=u,v=u*u*(g=Math.max(c/s,s/c)/(_*e)),p=Math.max(h/v,v/d);b<w;++b){if(u+=l=y[b].value,l<d&&(d=l),l>h&&(h=l),v=u*u*g,(f=Math.max(h/v,v/d))>p){u-=l;break}p=f}m.push(o={value:u,dice:s<c,children:y.slice(x,b)}),o.dice?R(o,n,r,a,_?r+=c*u/_:i):K(o,n,r,_?n+=s*u/_:a,i),_-=u,x=b}return m}var te=function e(t){function n(e,n,r,a,i){ee(t,e,n,r,a,i)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(Q),ne=function(){var e=te,t=!1,n=1,r=1,a=[0],i=I,o=I,l=I,s=I,c=I;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),a=[0],t&&e.eachBefore(j),e}function d(t){var n=a[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,h=t.y1-n;d<r&&(r=d=(r+d)/2),h<u&&(u=h=(u+h)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=h,t.children&&(n=a[t.depth+1]=i(t)/2,r+=c(t)-n,u+=o(t)-n,(d-=l(t)-n)<r&&(r=d=(r+d)/2),(h-=s(t)-n)<u&&(u=h=(u+h)/2),e(t,r,u,d,h))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=L(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(i="function"==typeof e?e:E(+e),u):i},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o="function"==typeof e?e:E(+e),u):o},u.paddingRight=function(e){return arguments.length?(l="function"==typeof e?e:E(+e),u):l},u.paddingBottom=function(e){return arguments.length?(s="function"==typeof e?e:E(+e),u):s},u.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:E(+e),u):c},u},re=function(e,t,n,r,a){var i,o,l=e.children,s=l.length,c=new Array(s+1);for(c[0]=o=i=0;i<s;++i)c[i+1]=o+=l[i].value;!function e(t,n,r,a,i,o,s){if(t>=n-1){var u=l[t];return u.x0=a,u.y0=i,u.x1=o,void(u.y1=s)}var d=c[t],h=r/2+d,f=t+1,p=n-1;for(;f<p;){var g=f+p>>>1;c[g]<h?f=g+1:p=g}h-c[f-1]<c[f]-h&&t+1<f&&--f;var v=c[f]-d,m=r-v;if(o-a>s-i){var y=(a*m+o*v)/r;e(t,f,v,a,i,y,s),e(f,n,m,y,i,o,s)}else{var x=(i*m+s*v)/r;e(t,f,v,a,i,o,x),e(f,n,m,a,x,o,s)}}(0,s,e.value,t,n,r,a)},ae=function(e,t,n,r,a){(1&e.depth?K:R)(e,t,n,r,a)},ie=function e(t){function n(e,n,r,a,i){if((o=e._squarify)&&o.ratio===t)for(var o,l,s,c,u,d=-1,h=o.length,f=e.value;++d<h;){for(s=(l=o[d]).children,c=l.value=0,u=s.length;c<u;++c)l.value+=s[c].value;l.dice?R(l,n,r,a,r+=(i-r)*l.value/f):K(l,n,r,n+=(a-n)*l.value/f,i),f-=l.value}else e._squarify=o=ee(t,e,n,r,a,i),o.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(Q)},yVNY:function(e,t,n){"use strict";var r=n("DzeQ"),a="data-savedcursor";e.exports=function(e,t){var n=e.attr(a);if(t){if(!n){for(var i=(e.attr("class")||"").split(" "),o=0;o<i.length;o++){var l=i[o];0===l.indexOf("cursor-")&&e.attr(a,l.substr(7)).classed(l,!1)}e.attr(a)||e.attr(a,"!!")}r(e,t)}else n&&(e.attr(a,null),"!!"===n?r(e):r(e,n))}},"yZ/U":function(e,t,n){"use strict";var r=n("+1rr"),a=n("EHyX").line,i=n("qHYo"),o=n("lNV6").hovertemplateAttrs,l=n("lNV6").texttemplateAttrs,s=n("sgXD"),c=n("kJIm").extendFlat,u=n("0RW4");e.exports={x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,hovertext:r.hovertext,hovertemplate:o({},{keys:s.eventDataKeys}),hoverinfo:c({},i.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],role:"info",editType:"plot",arrayOk:!1,description:["Determines which trace information appear on the graph.","In the case of having multiple funnels, percentages & totals","are computed separately (per trace)."].join(" ")},texttemplate:l({editType:"plot"},{keys:s.eventDataKeys.concat(["label","value"])}),text:r.text,textposition:c({},r.textposition,{dflt:"auto"}),insidetextanchor:c({},r.insidetextanchor,{dflt:"middle"}),textangle:c({},r.textangle,{dflt:0}),textfont:r.textfont,insidetextfont:r.insidetextfont,outsidetextfont:r.outsidetextfont,constraintext:r.constraintext,cliponaxis:r.cliponaxis,orientation:c({},r.orientation,{description:["Sets the orientation of the funnels.","With *v* (*h*), the value of the each bar spans","along the vertical (horizontal).","By default funnels are tend to be oriented horizontally;","unless only *y* array is presented or orientation is set to *v*.","Also regarding graphs including only 'horizontal' funnels,","*autorange* on the *y-axis* are set to *reversed*."].join(" ")}),offset:c({},r.offset,{arrayOk:!1}),width:c({},r.width,{arrayOk:!1}),marker:r.marker,connector:{fillcolor:{valType:"color",role:"style",editType:"style",description:["Sets the fill color."].join(" ")},line:{color:c({},a.color,{dflt:u.defaultLine}),width:c({},a.width,{dflt:0,editType:"plot"}),dash:a.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,role:"info",editType:"plot",description:["Determines if connector regions and lines are drawn."].join(" ")},editType:"plot"},offsetgroup:r.offsetgroup,alignmentgroup:r.alignmentgroup}},ybzJ:function(e,t,n){"use strict";var r=n("Nx4I"),a=n("/CZE");e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:n("FLbl")}}},layoutAttributes:n("FLbl"),handleDefaults:n("xPRw"),includeBasePlot:function(e,t){var n=r.subplotsRegistry.gl3d;if(!n)return;for(var i=n.attrRegex,o=Object.keys(e),l=0;l<o.length;l++){var s=o[l];i.test(s)&&(e[s].annotations||[]).length&&(a.pushUnique(t._basePlotModules,n),a.pushUnique(t._subplots.gl3d,s))}},convert:n("3iLW"),draw:n("9CI2")}},yhet:function(e,t,n){ /*! * vue-treeselect v0.4.0 | (c) 2017-2019 Riophae Lee * Released under the MIT License. * https://vue-treeselect.js.org/ */ e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=16)}([function(e,t){e.exports=n("J4zp")},function(e,t){e.exports=n("RIqP")},function(e,t){e.exports=n("lSNA")},function(e,t){e.exports=n("Ljmf")},function(e,t){e.exports=n("vN+2")},function(e,t){e.exports=n("sEfC")},function(e,t){e.exports=n("3w8G")},function(e,t){e.exports=n("JlUD")},function(e,t){e.exports=n("HZII")},function(e,t){e.exports=n("zZ0H")},function(e,t){e.exports=n("cvCv")},function(e,t){e.exports=n("cDf5")},function(e,t){e.exports=n("RBan")},function(e,t){e.exports=n("kvrn")},function(e,t){e.exports=n("XuX8")},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(0),a=n.n(r),i=n(1),o=n.n(i),l=n(2),s=n.n(l),c=n(3),u=n.n(c),d=n(4),h=n.n(d).a;function f(e){return function(t){if("mousedown"===t.type&&0===t.button){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];e.call.apply(e,[this,t].concat(r))}}}function p(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=t.offsetHeight/3;r.bottom+a>n.bottom?e.scrollTop=Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight):r.top-a<n.top&&(e.scrollTop=Math.max(t.offsetTop-a,0))}var g,v=n(5),m=n.n(v),y=n(6),x=n.n(y);function b(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}var w=[];function _(e){var t=e.$el,n=e.listener,r=e.lastWidth,a=e.lastHeight,i=t.offsetWidth,o=t.offsetHeight;r===i&&a===o||(e.lastWidth=i,e.lastHeight=o,n({width:i,height:o}))}function k(e,t){var n={$el:e,listener:t,lastWidth:null,lastHeight:null};return w.push(n),_(n),g=setInterval((function(){w.forEach(_)}),100),function(){b(w,n),w.length||(clearInterval(g),g=null)}}function T(e,t){var n=9===document.documentMode,r=!0,a=(n?k:x.a)(e,(function(){return r||t.apply(void 0,arguments)}));return r=!1,a}function M(e){var t=getComputedStyle(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(n+a+r)}function A(e,t){var n=function(e){for(var t=[],n=e.parentNode;n&&"BODY"!==n.nodeName&&n.nodeType===document.ELEMENT_NODE;)M(n)&&t.push(n),n=n.parentNode;return t.push(window),t}(e);return window.addEventListener("resize",t,{passive:!0}),n.forEach((function(e){e.addEventListener("scroll",t,{passive:!0})})),function(){window.removeEventListener("resize",t,{passive:!0}),n.forEach((function(e){e.removeEventListener("scroll",t,{passive:!0})}))}}function S(e){return e!=e}var C=n(7),L=n.n(C),I=n(8),E=n.n(I),O=n(9),D=n.n(O),P=n(10),z=n.n(P),N=function(){return Object.create(null)},j=n(11),R=n.n(j);function F(e){return null!=e&&"object"===R()(e)&&Object.getPrototypeOf(e)===Object.prototype}function B(e,t){if(F(t))for(var n=Object.keys(t),r=0,a=n.length;r<a;r++)i=e,o=n[r],F(l=t[n[r]])?(i[o]||(i[o]={}),B(i[o],l)):i[o]=l;var i,o,l;return e}var H=n(12),V=n.n(H);function G(e,t){return-1!==e.indexOf(t)}function U(e,t,n){for(var r=0,a=e.length;r<a;r++)if(t.call(n,e[r],r,e))return e[r]}function q(e,t){if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}var Z=8,W=13,Y=27,X=35,$=36,J=37,K=38,Q=39,ee=40,te=46;function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(n,!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t){for(var n=0;;){if(e.level<n)return-1;if(t.level<n)return 1;if(e.index[n]!==t.index[n])return e.index[n]-t.index[n];n++}}function ie(e,t,n){return e?u()(t,n):G(n,t)}function oe(e){return e.message||String(e)}var le=0,se={provide:function(){return{instance:this}},props:{allowClearingDisabled:{type:Boolean,default:!1},allowSelectingDisabledDescendants:{type:Boolean,default:!1},alwaysOpen:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},async:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},autoLoadRootOptions:{type:Boolean,default:!0},autoDeselectAncestors:{type:Boolean,default:!1},autoDeselectDescendants:{type:Boolean,default:!1},autoSelectAncestors:{type:Boolean,default:!1},autoSelectDescendants:{type:Boolean,default:!1},backspaceRemoves:{type:Boolean,default:!0},beforeClearAll:{type:Function,default:z()(!0)},branchNodesFirst:{type:Boolean,default:!1},cacheOptions:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},clearAllText:{type:String,default:"Clear all"},clearOnSelect:{type:Boolean,default:!1},clearValueText:{type:String,default:"Clear value"},closeOnSelect:{type:Boolean,default:!0},defaultExpandLevel:{type:Number,default:0},defaultOptions:{default:!1},deleteRemoves:{type:Boolean,default:!0},delimiter:{type:String,default:","},flattenSearchResults:{type:Boolean,default:!1},disableBranchNodes:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFuzzyMatching:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},instanceId:{default:function(){return"".concat(le++,"$$")},type:[String,Number]},joinValues:{type:Boolean,default:!1},limit:{type:Number,default:1/0},limitText:{type:Function,default:function(e){return"and ".concat(e," more")}},loadingText:{type:String,default:"Loading..."},loadOptions:{type:Function},matchKeys:{type:Array,default:z()(["label"])},maxHeight:{type:Number,default:300},multiple:{type:Boolean,default:!1},name:{type:String},noChildrenText:{type:String,default:"No sub-options."},noOptionsText:{type:String,default:"No options available."},noResultsText:{type:String,default:"No results found..."},normalizer:{type:Function,default:D.a},openDirection:{type:String,default:"auto",validator:function(e){return G(["auto","top","bottom","above","below"],e)}},openOnClick:{type:Boolean,default:!0},openOnFocus:{type:Boolean,default:!1},options:{type:Array},placeholder:{type:String,default:"Select..."},required:{type:Boolean,default:!1},retryText:{type:String,default:"Retry?"},retryTitle:{type:String,default:"Click to retry"},searchable:{type:Boolean,default:!0},searchNested:{type:Boolean,default:!1},searchPromptText:{type:String,default:"Type to search..."},showCount:{type:Boolean,default:!1},showCountOf:{type:String,default:"ALL_CHILDREN",validator:function(e){return G(["ALL_CHILDREN","ALL_DESCENDANTS","LEAF_CHILDREN","LEAF_DESCENDANTS"],e)}},showCountOnSearch:null,sortValueBy:{type:String,default:"ORDER_SELECTED",validator:function(e){return G(["ORDER_SELECTED","LEVEL","INDEX"],e)}},tabIndex:{type:Number,default:0},value:null,valueConsistsOf:{type:String,default:"BRANCH_PRIORITY",validator:function(e){return G(["ALL","BRANCH_PRIORITY","LEAF_PRIORITY","ALL_WITH_INDETERMINATE"],e)}},valueFormat:{type:String,default:"id"},zIndex:{type:[Number,String],default:999}},data:function(){return{trigger:{isFocused:!1,searchQuery:""},menu:{isOpen:!1,current:null,lastScrollPosition:0,placement:"bottom"},forest:{normalizedOptions:[],nodeMap:N(),checkedStateMap:N(),selectedNodeIds:this.extractCheckedNodeIdsFromValue(),selectedNodeMap:N()},rootOptionsStates:{isLoaded:!1,isLoading:!1,loadingError:""},localSearch:{active:!1,noResults:!0,countMap:N()},remoteSearch:N()}},computed:{selectedNodes:function(){return this.forest.selectedNodeIds.map(this.getNode)},internalValue:function(){var e,t=this;if(this.single||this.flat||this.disableBranchNodes||"ALL"===this.valueConsistsOf)e=this.forest.selectedNodeIds.slice();else if("BRANCH_PRIORITY"===this.valueConsistsOf)e=this.forest.selectedNodeIds.filter((function(e){var n=t.getNode(e);return!!n.isRootNode||!t.isSelected(n.parentNode)}));else if("LEAF_PRIORITY"===this.valueConsistsOf)e=this.forest.selectedNodeIds.filter((function(e){var n=t.getNode(e);return!!n.isLeaf||0===n.children.length}));else if("ALL_WITH_INDETERMINATE"===this.valueConsistsOf){var n,r=[];e=this.forest.selectedNodeIds.slice(),this.selectedNodes.forEach((function(t){t.ancestors.forEach((function(t){G(r,t.id)||G(e,t.id)||r.push(t.id)}))})),(n=e).push.apply(n,r)}return"LEVEL"===this.sortValueBy?e.sort((function(e,n){return function(e,t){return e.level===t.level?ae(e,t):e.level-t.level}(t.getNode(e),t.getNode(n))})):"INDEX"===this.sortValueBy&&e.sort((function(e,n){return ae(t.getNode(e),t.getNode(n))})),e},hasValue:function(){return this.internalValue.length>0},single:function(){return!this.multiple},visibleOptionIds:function(){var e=this,t=[];return this.traverseAllNodesByIndex((function(n){if(e.localSearch.active&&!e.shouldOptionBeIncludedInSearchResult(n)||t.push(n.id),n.isBranch&&!e.shouldExpand(n))return!1})),t},hasVisibleOptions:function(){return 0!==this.visibleOptionIds.length},showCountOnSearchComputed:function(){return"boolean"==typeof this.showCountOnSearch?this.showCountOnSearch:this.showCount},hasBranchNodes:function(){return this.forest.normalizedOptions.some((function(e){return e.isBranch}))},shouldFlattenOptions:function(){return this.localSearch.active&&this.flattenSearchResults}},watch:{alwaysOpen:function(e){e?this.openMenu():this.closeMenu()},branchNodesFirst:function(){this.initialize()},disabled:function(e){e&&this.menu.isOpen?this.closeMenu():e||this.menu.isOpen||!this.alwaysOpen||this.openMenu()},flat:function(){this.initialize()},internalValue:function(e,t){q(e,t)&&this.$emit("input",this.getValue(),this.getInstanceId())},matchKeys:function(){this.initialize()},multiple:function(e){e&&this.buildForestState()},options:{handler:function(){this.async||(this.initialize(),this.rootOptionsStates.isLoaded=Array.isArray(this.options))},deep:!0,immediate:!0},"trigger.searchQuery":function(){this.async?this.handleRemoteSearch():this.handleLocalSearch(),this.$emit("search-change",this.trigger.searchQuery,this.getInstanceId())},value:function(){var e=this.extractCheckedNodeIdsFromValue();q(e,this.internalValue)&&this.fixSelectedNodeIds(e)}},methods:{verifyProps:function(){var e=this;if(h((function(){return!e.async||e.searchable}),(function(){return'For async search mode, the value of "searchable" prop must be true.'})),null!=this.options||this.loadOptions||h((function(){return!1}),(function(){return'Are you meant to dynamically load options? You need to use "loadOptions" prop.'})),this.flat&&h((function(){return e.multiple}),(function(){return'You are using flat mode. But you forgot to add "multiple=true"?'})),!this.flat){["autoSelectAncestors","autoSelectDescendants","autoDeselectAncestors","autoDeselectDescendants"].forEach((function(t){h((function(){return!e[t]}),(function(){return'"'.concat(t,'" only applies to flat mode.')}))}))}},resetFlags:function(){this._blurOnSelect=!1},initialize:function(){var e=this.async?this.getRemoteSearchEntry().options:this.options;if(Array.isArray(e)){var t=this.forest.nodeMap;this.forest.nodeMap=N(),this.keepDataOfSelectedNodes(t),this.forest.normalizedOptions=this.normalize(null,e,t),this.fixSelectedNodeIds(this.internalValue)}else this.forest.normalizedOptions=[]},getInstanceId:function(){return null==this.instanceId?this.id:this.instanceId},getValue:function(){var e=this;if("id"===this.valueFormat)return this.multiple?this.internalValue.slice():this.internalValue[0];var t=this.internalValue.map((function(t){return e.getNode(t).raw}));return this.multiple?t:t[0]},getNode:function(e){return h((function(){return null!=e}),(function(){return"Invalid node id: ".concat(e)})),null==e?null:e in this.forest.nodeMap?this.forest.nodeMap[e]:this.createFallbackNode(e)},createFallbackNode:function(e){var t=this.extractNodeFromValue(e),n={id:e,label:this.enhancedNormalizer(t).label||"".concat(e," (unknown)"),ancestors:[],parentNode:null,isFallbackNode:!0,isRootNode:!0,isLeaf:!0,isBranch:!1,isDisabled:!1,isNew:!1,index:[-1],level:0,raw:t};return this.$set(this.forest.nodeMap,e,n)},extractCheckedNodeIdsFromValue:function(){var e=this;return null==this.value?[]:"id"===this.valueFormat?this.multiple?this.value.slice():[this.value]:(this.multiple?this.value:[this.value]).map((function(t){return e.enhancedNormalizer(t)})).map((function(e){return e.id}))},extractNodeFromValue:function(e){var t=this,n={id:e};return"id"===this.valueFormat?n:U(this.multiple?Array.isArray(this.value)?this.value:[]:this.value?[this.value]:[],(function(n){return n&&t.enhancedNormalizer(n).id===e}))||n},fixSelectedNodeIds:function(e){var t=this,n=[];if(this.single||this.flat||this.disableBranchNodes||"ALL"===this.valueConsistsOf)n=e;else if("BRANCH_PRIORITY"===this.valueConsistsOf)e.forEach((function(e){n.push(e);var r=t.getNode(e);r.isBranch&&t.traverseDescendantsBFS(r,(function(e){n.push(e.id)}))}));else if("LEAF_PRIORITY"===this.valueConsistsOf)for(var r=N(),a=e.slice();a.length;){var i=a.shift(),o=this.getNode(i);n.push(i),o.isRootNode||(o.parentNode.id in r||(r[o.parentNode.id]=o.parentNode.children.length),0==--r[o.parentNode.id]&&a.push(o.parentNode.id))}else if("ALL_WITH_INDETERMINATE"===this.valueConsistsOf)for(var l=N(),s=e.filter((function(e){var n=t.getNode(e);return n.isLeaf||0===n.children.length}));s.length;){var c=s.shift(),u=this.getNode(c);n.push(c),u.isRootNode||(u.parentNode.id in l||(l[u.parentNode.id]=u.parentNode.children.length),0==--l[u.parentNode.id]&&s.push(u.parentNode.id))}q(this.forest.selectedNodeIds,n)&&(this.forest.selectedNodeIds=n),this.buildForestState()},keepDataOfSelectedNodes:function(e){var t=this;this.forest.selectedNodeIds.forEach((function(n){if(e[n]){var r=re({},e[n],{isFallbackNode:!0});t.$set(t.forest.nodeMap,n,r)}}))},isSelected:function(e){return!0===this.forest.selectedNodeMap[e.id]},traverseDescendantsBFS:function(e,t){if(e.isBranch)for(var n=e.children.slice();n.length;){var r=n[0];r.isBranch&&n.push.apply(n,o()(r.children)),t(r),n.shift()}},traverseDescendantsDFS:function(e,t){var n=this;e.isBranch&&e.children.forEach((function(e){n.traverseDescendantsDFS(e,t),t(e)}))},traverseAllNodesDFS:function(e){var t=this;this.forest.normalizedOptions.forEach((function(n){t.traverseDescendantsDFS(n,e),e(n)}))},traverseAllNodesByIndex:function(e){!function t(n){n.children.forEach((function(n){!1!==e(n)&&n.isBranch&&t(n)}))}({children:this.forest.normalizedOptions})},toggleClickOutsideEvent:function(e){e?document.addEventListener("mousedown",this.handleClickOutside,!1):document.removeEventListener("mousedown",this.handleClickOutside,!1)},getValueContainer:function(){return this.$refs.control.$refs["value-container"]},getInput:function(){return this.getValueContainer().$refs.input},focusInput:function(){this.getInput().focus()},blurInput:function(){this.getInput().blur()},handleMouseDown:f((function(e){(e.preventDefault(),e.stopPropagation(),this.disabled)||(this.getValueContainer().$el.contains(e.target)&&!this.menu.isOpen&&(this.openOnClick||this.trigger.isFocused)&&this.openMenu(),this._blurOnSelect?this.blurInput():this.focusInput(),this.resetFlags())})),handleClickOutside:function(e){this.$refs.wrapper&&!this.$refs.wrapper.contains(e.target)&&(this.blurInput(),this.closeMenu())},handleLocalSearch:function(){var e=this,t=this.trigger.searchQuery,n=function(){return e.resetHighlightedOptionWhenNecessary(!0)};if(!t)return this.localSearch.active=!1,n();this.localSearch.active=!0,this.localSearch.noResults=!0,this.traverseAllNodesDFS((function(t){var n;t.isBranch&&(t.isExpandedOnSearch=!1,t.showAllChildrenOnSearch=!1,t.isMatched=!1,t.hasMatchedDescendants=!1,e.$set(e.localSearch.countMap,t.id,(n={},s()(n,"ALL_CHILDREN",0),s()(n,"ALL_DESCENDANTS",0),s()(n,"LEAF_CHILDREN",0),s()(n,"LEAF_DESCENDANTS",0),n)))}));var r=t.trim().toLocaleLowerCase(),a=r.replace(/\s+/g," ").split(" ");this.traverseAllNodesDFS((function(t){e.searchNested&&a.length>1?t.isMatched=a.every((function(e){return ie(!1,e,t.nestedSearchLabel)})):t.isMatched=e.matchKeys.some((function(n){return ie(!e.disableFuzzyMatching,r,t.lowerCased[n])})),t.isMatched&&(e.localSearch.noResults=!1,t.ancestors.forEach((function(t){return e.localSearch.countMap[t.id].ALL_DESCENDANTS++})),t.isLeaf&&t.ancestors.forEach((function(t){return e.localSearch.countMap[t.id].LEAF_DESCENDANTS++})),null!==t.parentNode&&(e.localSearch.countMap[t.parentNode.id].ALL_CHILDREN+=1,t.isLeaf&&(e.localSearch.countMap[t.parentNode.id].LEAF_CHILDREN+=1))),(t.isMatched||t.isBranch&&t.isExpandedOnSearch)&&null!==t.parentNode&&(t.parentNode.isExpandedOnSearch=!0,t.parentNode.hasMatchedDescendants=!0)})),n()},handleRemoteSearch:function(){var e=this,t=this.trigger.searchQuery,n=this.getRemoteSearchEntry(),r=function(){e.initialize(),e.resetHighlightedOptionWhenNecessary(!0)};if((""===t||this.cacheOptions)&&n.isLoaded)return r();this.callLoadOptionsProp({action:"ASYNC_SEARCH",args:{searchQuery:t},isPending:function(){return n.isLoading},start:function(){n.isLoading=!0,n.isLoaded=!1,n.loadingError=""},succeed:function(a){n.isLoaded=!0,n.options=a,e.trigger.searchQuery===t&&r()},fail:function(e){n.loadingError=oe(e)},end:function(){n.isLoading=!1}})},getRemoteSearchEntry:function(){var e=this,t=this.trigger.searchQuery,n=this.remoteSearch[t]||re({},{isLoaded:!1,isLoading:!1,loadingError:""},{options:[]});if(this.$watch((function(){return n.options}),(function(){e.trigger.searchQuery===t&&e.initialize()}),{deep:!0}),""===t){if(Array.isArray(this.defaultOptions))return n.options=this.defaultOptions,n.isLoaded=!0,n;if(!0!==this.defaultOptions)return n.isLoaded=!0,n}return this.remoteSearch[t]||this.$set(this.remoteSearch,t,n),n},shouldExpand:function(e){return this.localSearch.active?e.isExpandedOnSearch:e.isExpanded},shouldOptionBeIncludedInSearchResult:function(e){return!!e.isMatched||(!(!e.isBranch||!e.hasMatchedDescendants||this.flattenSearchResults)||!(e.isRootNode||!e.parentNode.showAllChildrenOnSearch))},shouldShowOptionInMenu:function(e){return!(this.localSearch.active&&!this.shouldOptionBeIncludedInSearchResult(e))},getControl:function(){return this.$refs.control.$el},getMenu:function(){var e=(this.appendToBody?this.$refs.portal.portalTarget:this).$refs.menu.$refs.menu;return e&&"#comment"!==e.nodeName?e:null},setCurrentHighlightedOption:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.menu.current;if(null!=r&&r in this.forest.nodeMap&&(this.forest.nodeMap[r].isHighlighted=!1),this.menu.current=e.id,e.isHighlighted=!0,this.menu.isOpen&&n){var a=function(){var n=t.getMenu(),r=n.querySelector('.vue-treeselect__option[data-id="'.concat(e.id,'"]'));r&&p(n,r)};this.getMenu()?a():this.$nextTick(a)}},resetHighlightedOptionWhenNecessary:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.menu.current;!e&&null!=t&&t in this.forest.nodeMap&&this.shouldShowOptionInMenu(this.getNode(t))||this.highlightFirstOption()},highlightFirstOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds[0];this.setCurrentHighlightedOption(this.getNode(e))}},highlightPrevOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds.indexOf(this.menu.current)-1;if(-1===e)return this.highlightLastOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]))}},highlightNextOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds.indexOf(this.menu.current)+1;if(e===this.visibleOptionIds.length)return this.highlightFirstOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]))}},highlightLastOption:function(){if(this.hasVisibleOptions){var e=V()(this.visibleOptionIds);this.setCurrentHighlightedOption(this.getNode(e))}},resetSearchQuery:function(){this.trigger.searchQuery=""},closeMenu:function(){!this.menu.isOpen||!this.disabled&&this.alwaysOpen||(this.saveMenuScrollPosition(),this.menu.isOpen=!1,this.toggleClickOutsideEvent(!1),this.resetSearchQuery(),this.$emit("close",this.getValue(),this.getInstanceId()))},openMenu:function(){this.disabled||this.menu.isOpen||(this.menu.isOpen=!0,this.$nextTick(this.resetHighlightedOptionWhenNecessary),this.$nextTick(this.restoreMenuScrollPosition),this.options||this.async||this.loadRootOptions(),this.toggleClickOutsideEvent(!0),this.$emit("open",this.getInstanceId()))},toggleMenu:function(){this.menu.isOpen?this.closeMenu():this.openMenu()},toggleExpanded:function(e){var t;this.localSearch.active?(t=e.isExpandedOnSearch=!e.isExpandedOnSearch)&&(e.showAllChildrenOnSearch=!0):t=e.isExpanded=!e.isExpanded,t&&!e.childrenStates.isLoaded&&this.loadChildrenOptions(e)},buildForestState:function(){var e=this,t=N();this.forest.selectedNodeIds.forEach((function(e){t[e]=!0})),this.forest.selectedNodeMap=t;var n=N();this.multiple&&(this.traverseAllNodesByIndex((function(e){n[e.id]=0})),this.selectedNodes.forEach((function(t){n[t.id]=2,e.flat||e.disableBranchNodes||t.ancestors.forEach((function(t){e.isSelected(t)||(n[t.id]=1)}))}))),this.forest.checkedStateMap=n},enhancedNormalizer:function(e){return re({},e,{},this.normalizer(e,this.getInstanceId()))},normalize:function(e,t,n){var r=this,i=t.map((function(e){return[r.enhancedNormalizer(e),e]})).map((function(t,i){var o=a()(t,2),l=o[0],c=o[1];r.checkDuplication(l),r.verifyNodeShape(l);var u=l.id,d=l.label,f=l.children,p=l.isDefaultExpanded,g=null===e,v=g?0:e.level+1,m=Array.isArray(f)||null===f,y=!m,x=!!l.isDisabled||!r.flat&&!g&&e.isDisabled,b=!!l.isNew,w=r.matchKeys.reduce((function(e,t){return re({},e,s()({},t,(n=l[t],"string"==typeof n?n:"number"!=typeof n||S(n)?"":n+"").toLocaleLowerCase()));var n}),{}),_=g?w.label:e.nestedSearchLabel+" "+w.label,k=r.$set(r.forest.nodeMap,u,N());if(r.$set(k,"id",u),r.$set(k,"label",d),r.$set(k,"level",v),r.$set(k,"ancestors",g?[]:[e].concat(e.ancestors)),r.$set(k,"index",(g?[]:e.index).concat(i)),r.$set(k,"parentNode",e),r.$set(k,"lowerCased",w),r.$set(k,"nestedSearchLabel",_),r.$set(k,"isDisabled",x),r.$set(k,"isNew",b),r.$set(k,"isMatched",!1),r.$set(k,"isHighlighted",!1),r.$set(k,"isBranch",m),r.$set(k,"isLeaf",y),r.$set(k,"isRootNode",g),r.$set(k,"raw",c),m){var T,M=Array.isArray(f);r.$set(k,"childrenStates",re({},{isLoaded:!1,isLoading:!1,loadingError:""},{isLoaded:M})),r.$set(k,"isExpanded","boolean"==typeof p?p:v<r.defaultExpandLevel),r.$set(k,"hasMatchedDescendants",!1),r.$set(k,"hasDisabledDescendants",!1),r.$set(k,"isExpandedOnSearch",!1),r.$set(k,"showAllChildrenOnSearch",!1),r.$set(k,"count",(T={},s()(T,"ALL_CHILDREN",0),s()(T,"ALL_DESCENDANTS",0),s()(T,"LEAF_CHILDREN",0),s()(T,"LEAF_DESCENDANTS",0),T)),r.$set(k,"children",M?r.normalize(k,f,n):[]),!0===p&&k.ancestors.forEach((function(e){e.isExpanded=!0})),M||"function"==typeof r.loadOptions?!M&&k.isExpanded&&r.loadChildrenOptions(k):h((function(){return!1}),(function(){return'Unloaded branch node detected. "loadOptions" prop is required to load its children.'}))}if(k.ancestors.forEach((function(e){return e.count.ALL_DESCENDANTS++})),y&&k.ancestors.forEach((function(e){return e.count.LEAF_DESCENDANTS++})),g||(e.count.ALL_CHILDREN+=1,y&&(e.count.LEAF_CHILDREN+=1),x&&(e.hasDisabledDescendants=!0)),n&&n[u]){var A=n[u];k.isMatched=A.isMatched,k.showAllChildrenOnSearch=A.showAllChildrenOnSearch,k.isHighlighted=A.isHighlighted,A.isBranch&&k.isBranch&&(k.isExpanded=A.isExpanded,k.isExpandedOnSearch=A.isExpandedOnSearch,A.childrenStates.isLoaded&&!k.childrenStates.isLoaded?k.isExpanded=!1:k.childrenStates=re({},A.childrenStates))}return k}));if(this.branchNodesFirst){var o=i.filter((function(e){return e.isBranch})),l=i.filter((function(e){return e.isLeaf}));i=o.concat(l)}return i},loadRootOptions:function(){var e=this;this.callLoadOptionsProp({action:"LOAD_ROOT_OPTIONS",isPending:function(){return e.rootOptionsStates.isLoading},start:function(){e.rootOptionsStates.isLoading=!0,e.rootOptionsStates.loadingError=""},succeed:function(){e.rootOptionsStates.isLoaded=!0,e.$nextTick((function(){e.resetHighlightedOptionWhenNecessary(!0)}))},fail:function(t){e.rootOptionsStates.loadingError=oe(t)},end:function(){e.rootOptionsStates.isLoading=!1}})},loadChildrenOptions:function(e){var t=this,n=e.id,r=e.raw;this.callLoadOptionsProp({action:"LOAD_CHILDREN_OPTIONS",args:{parentNode:r},isPending:function(){return t.getNode(n).childrenStates.isLoading},start:function(){t.getNode(n).childrenStates.isLoading=!0,t.getNode(n).childrenStates.loadingError=""},succeed:function(){t.getNode(n).childrenStates.isLoaded=!0},fail:function(e){t.getNode(n).childrenStates.loadingError=oe(e)},end:function(){t.getNode(n).childrenStates.isLoading=!1}})},callLoadOptionsProp:function(e){var t=e.action,n=e.args,r=e.isPending,a=e.start,i=e.succeed,o=e.fail,l=e.end;if(this.loadOptions&&!r()){a();var s=E()((function(e,t){e?o(e):i(t),l()})),c=this.loadOptions(re({id:this.getInstanceId(),instanceId:this.getInstanceId(),action:t},n,{callback:s}));L()(c)&&c.then((function(){s()}),(function(e){s(e)})).catch((function(e){console.error(e)}))}},checkDuplication:function(e){var t=this;h((function(){return!(e.id in t.forest.nodeMap&&!t.forest.nodeMap[e.id].isFallbackNode)}),(function(){return"Detected duplicate presence of node id ".concat(JSON.stringify(e.id),". ")+'Their labels are "'.concat(t.forest.nodeMap[e.id].label,'" and "').concat(e.label,'" respectively.')}))},verifyNodeShape:function(e){h((function(){return!(void 0===e.children&&!0===e.isBranch)}),(function(){return"Are you meant to declare an unloaded branch node? `isBranch: true` is no longer supported, please use `children: null` instead."}))},select:function(e){if(!this.disabled&&!e.isDisabled){this.single&&this.clear();var t=this.multiple&&!this.flat?0===this.forest.checkedStateMap[e.id]:!this.isSelected(e);t?this._selectNode(e):this._deselectNode(e),this.buildForestState(),t?this.$emit("select",e.raw,this.getInstanceId()):this.$emit("deselect",e.raw,this.getInstanceId()),this.localSearch.active&&t&&(this.single||this.clearOnSelect)&&this.resetSearchQuery(),this.single&&this.closeOnSelect&&(this.closeMenu(),this.searchable&&(this._blurOnSelect=!0))}},clear:function(){var e=this;this.hasValue&&(this.single||this.allowClearingDisabled?this.forest.selectedNodeIds=[]:this.forest.selectedNodeIds=this.forest.selectedNodeIds.filter((function(t){return e.getNode(t).isDisabled})),this.buildForestState())},_selectNode:function(e){var t=this;if(this.single||this.disableBranchNodes)return this.addValue(e);if(this.flat)return this.addValue(e),void(this.autoSelectAncestors?e.ancestors.forEach((function(e){t.isSelected(e)||e.isDisabled||t.addValue(e)})):this.autoSelectDescendants&&this.traverseDescendantsBFS(e,(function(e){t.isSelected(e)||e.isDisabled||t.addValue(e)})));var n=e.isLeaf||!e.hasDisabledDescendants||this.allowSelectingDisabledDescendants;if(n&&this.addValue(e),e.isBranch&&this.traverseDescendantsBFS(e,(function(e){e.isDisabled&&!t.allowSelectingDisabledDescendants||t.addValue(e)})),n)for(var r=e;null!==(r=r.parentNode)&&r.children.every(this.isSelected);)this.addValue(r)},_deselectNode:function(e){var t=this;if(this.disableBranchNodes)return this.removeValue(e);if(this.flat)return this.removeValue(e),void(this.autoDeselectAncestors?e.ancestors.forEach((function(e){t.isSelected(e)&&!e.isDisabled&&t.removeValue(e)})):this.autoDeselectDescendants&&this.traverseDescendantsBFS(e,(function(e){t.isSelected(e)&&!e.isDisabled&&t.removeValue(e)})));var n=!1;if(e.isBranch&&this.traverseDescendantsDFS(e,(function(e){e.isDisabled&&!t.allowSelectingDisabledDescendants||(t.removeValue(e),n=!0)})),e.isLeaf||n||0===e.children.length){this.removeValue(e);for(var r=e;null!==(r=r.parentNode)&&this.isSelected(r);)this.removeValue(r)}},addValue:function(e){this.forest.selectedNodeIds.push(e.id),this.forest.selectedNodeMap[e.id]=!0},removeValue:function(e){b(this.forest.selectedNodeIds,e.id),delete this.forest.selectedNodeMap[e.id]},removeLastValue:function(){if(this.hasValue){if(this.single)return this.clear();var e=V()(this.internalValue),t=this.getNode(e);this.select(t)}},saveMenuScrollPosition:function(){var e=this.getMenu();e&&(this.menu.lastScrollPosition=e.scrollTop)},restoreMenuScrollPosition:function(){var e=this.getMenu();e&&(e.scrollTop=this.menu.lastScrollPosition)}},created:function(){this.verifyProps(),this.resetFlags()},mounted:function(){this.autoFocus&&this.focusInput(),this.options||this.async||!this.autoLoadRootOptions||this.loadRootOptions(),this.alwaysOpen&&this.openMenu(),this.async&&this.defaultOptions&&this.handleRemoteSearch()},destroyed:function(){this.toggleClickOutsideEvent(!1)}};function ce(e){return"string"==typeof e?e:null==e||S(e)?"":JSON.stringify(e)}function ue(e,t,n,r,a,i,o,l){var s,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=s):a&&(s=l?function(){a.call(this,this.$root.$options.shadowRoot)}:a),s)if(c.functional){c._injectStyles=s;var u=c.render;c.render=function(e,t){return s.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,s):[s]}return{exports:e,options:c}}var de=ue({name:"vue-treeselect--hidden-fields",inject:["instance"],functional:!0,render:function(e,t){var n=arguments[0],r=t.injections.instance;if(!r.name||r.disabled||!r.hasValue)return null;var a=r.internalValue.map(ce);return r.multiple&&r.joinValues&&(a=[a.join(r.delimiter)]),a.map((function(e,t){return n("input",{attrs:{type:"hidden",name:r.name},domProps:{value:e},key:"hidden-field-"+t})}))}},void 0,void 0,!1,null,null,null);de.options.__file="src/components/HiddenFields.vue";var he=de.exports,fe=n(13),pe=n.n(fe),ge=[W,X,$,J,K,Q,ee],ve=ue({name:"vue-treeselect--input",inject:["instance"],data:function(){return{inputWidth:5,value:""}},computed:{needAutoSize:function(){var e=this.instance;return e.searchable&&!e.disabled&&e.multiple},inputStyle:function(){return{width:this.needAutoSize?"".concat(this.inputWidth,"px"):null}}},watch:{"instance.trigger.searchQuery":function(e){this.value=e},value:function(){this.needAutoSize&&this.$nextTick(this.updateInputWidth)}},created:function(){this.debouncedCallback=m()(this.updateSearchQuery,200,{leading:!0,trailing:!0})},methods:{clear:function(){this.onInput({target:{value:""}})},focus:function(){this.instance.disabled||this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},onFocus:function(){var e=this.instance;e.trigger.isFocused=!0,e.openOnFocus&&e.openMenu()},onBlur:function(){var e=this.instance,t=e.getMenu();if(t&&document.activeElement===t)return this.focus();e.trigger.isFocused=!1,e.closeMenu()},onInput:function(e){var t=e.target.value;this.value=t,t?this.debouncedCallback():(this.debouncedCallback.cancel(),this.updateSearchQuery())},onKeyDown:function(e){var t=this.instance,n="which"in e?e.which:e.keyCode;if(!(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)){if(!t.menu.isOpen&&G(ge,n))return e.preventDefault(),t.openMenu();switch(n){case Z:t.backspaceRemoves&&!this.value.length&&t.removeLastValue();break;case W:if(e.preventDefault(),null===t.menu.current)return;var r=t.getNode(t.menu.current);if(r.isBranch&&t.disableBranchNodes)return;t.select(r);break;case Y:this.value.length?this.clear():t.menu.isOpen&&t.closeMenu();break;case X:e.preventDefault(),t.highlightLastOption();break;case $:e.preventDefault(),t.highlightFirstOption();break;case J:var a=t.getNode(t.menu.current);a.isBranch&&t.shouldExpand(a)?(e.preventDefault(),t.toggleExpanded(a)):!a.isRootNode&&(a.isLeaf||a.isBranch&&!t.shouldExpand(a))&&(e.preventDefault(),t.setCurrentHighlightedOption(a.parentNode));break;case K:e.preventDefault(),t.highlightPrevOption();break;case Q:var i=t.getNode(t.menu.current);i.isBranch&&!t.shouldExpand(i)&&(e.preventDefault(),t.toggleExpanded(i));break;case ee:e.preventDefault(),t.highlightNextOption();break;case te:t.deleteRemoves&&!this.value.length&&t.removeLastValue();break;default:t.openMenu()}}},onMouseDown:function(e){this.value.length&&e.stopPropagation()},renderInputContainer:function(){var e=this.$createElement,t=this.instance,n={},r=[];return t.searchable&&!t.disabled&&(r.push(this.renderInput()),this.needAutoSize&&r.push(this.renderSizer())),t.searchable||B(n,{on:{focus:this.onFocus,blur:this.onBlur,keydown:this.onKeyDown},ref:"input"}),t.searchable||t.disabled||B(n,{attrs:{tabIndex:t.tabIndex}}),e("div",pe()([{class:"vue-treeselect__input-container"},n]),[r])},renderInput:function(){var e=this.$createElement,t=this.instance;return e("input",{ref:"input",class:"vue-treeselect__input",attrs:{type:"text",autocomplete:"off",tabIndex:t.tabIndex,required:t.required&&!t.hasValue},domProps:{value:this.value},style:this.inputStyle,on:{focus:this.onFocus,input:this.onInput,blur:this.onBlur,keydown:this.onKeyDown,mousedown:this.onMouseDown}})},renderSizer:function(){return(0,this.$createElement)("div",{ref:"sizer",class:"vue-treeselect__sizer"},[this.value])},updateInputWidth:function(){this.inputWidth=Math.max(5,this.$refs.sizer.scrollWidth+15)},updateSearchQuery:function(){this.instance.trigger.searchQuery=this.value}},render:function(){return this.renderInputContainer()}},void 0,void 0,!1,null,null,null);ve.options.__file="src/components/Input.vue";var me=ve.exports,ye=ue({name:"vue-treeselect--placeholder",inject:["instance"],render:function(){var e=arguments[0],t=this.instance,n={"vue-treeselect__placeholder":!0,"vue-treeselect-helper-zoom-effect-off":!0,"vue-treeselect-helper-hide":t.hasValue||t.trigger.searchQuery};return e("div",{class:n},[t.placeholder])}},void 0,void 0,!1,null,null,null);ye.options.__file="src/components/Placeholder.vue";var xe=ye.exports,be=ue({name:"vue-treeselect--single-value",inject:["instance"],methods:{renderSingleValueLabel:function(){var e=this.instance,t=e.selectedNodes[0],n=e.$scopedSlots["value-label"];return n?n({node:t}):t.label}},render:function(){var e=arguments[0],t=this.instance,n=this.$parent.renderValueContainer,r=t.hasValue&&!t.trigger.searchQuery;return n([r&&e("div",{class:"vue-treeselect__single-value"},[this.renderSingleValueLabel()]),e(xe),e(me,{ref:"input"})])}},void 0,void 0,!1,null,null,null);be.options.__file="src/components/SingleValue.vue";var we=be.exports,_e=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 348.333 348.333"}},[t("path",{attrs:{d:"M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z"}})])};_e._withStripped=!0;var ke=ue({name:"vue-treeselect--x"},_e,[],!1,null,null,null);ke.options.__file="src/components/icons/Delete.vue";var Te=ke.exports,Me=ue({name:"vue-treeselect--multi-value-item",inject:["instance"],props:{node:{type:Object,required:!0}},methods:{handleMouseDown:f((function(){var e=this.instance,t=this.node;e.select(t)}))},render:function(){var e=arguments[0],t=this.instance,n=this.node,r={"vue-treeselect__multi-value-item":!0,"vue-treeselect__multi-value-item-disabled":n.isDisabled,"vue-treeselect__multi-value-item-new":n.isNew},a=t.$scopedSlots["value-label"],i=a?a({node:n}):n.label;return e("div",{class:"vue-treeselect__multi-value-item-container"},[e("div",{class:r,on:{mousedown:this.handleMouseDown}},[e("span",{class:"vue-treeselect__multi-value-label"},[i]),e("span",{class:"vue-treeselect__icon vue-treeselect__value-remove"},[e(Te)])])])}},void 0,void 0,!1,null,null,null);Me.options.__file="src/components/MultiValueItem.vue";var Ae=Me.exports,Se=ue({name:"vue-treeselect--multi-value",inject:["instance"],methods:{renderMultiValueItems:function(){var e=this.$createElement,t=this.instance;return t.internalValue.slice(0,t.limit).map(t.getNode).map((function(t){return e(Ae,{key:"multi-value-item-".concat(t.id),attrs:{node:t}})}))},renderExceedLimitTip:function(){var e=this.$createElement,t=this.instance,n=t.internalValue.length-t.limit;return n<=0?null:e("div",{class:"vue-treeselect__limit-tip vue-treeselect-helper-zoom-effect-off",key:"exceed-limit-tip"},[e("span",{class:"vue-treeselect__limit-tip-text"},[t.limitText(n)])])}},render:function(){var e=arguments[0],t=this.$parent.renderValueContainer,n={props:{tag:"div",name:"vue-treeselect__multi-value-item--transition",appear:!0}};return t(e("transition-group",pe()([{class:"vue-treeselect__multi-value"},n]),[this.renderMultiValueItems(),this.renderExceedLimitTip(),e(xe,{key:"placeholder"}),e(me,{ref:"input",key:"input"})]))}},void 0,void 0,!1,null,null,null);Se.options.__file="src/components/MultiValue.vue";var Ce=Se.exports,Le=function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 292.362 292.362"}},[t("path",{attrs:{d:"M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z"}})])};Le._withStripped=!0;var Ie=ue({name:"vue-treeselect--arrow"},Le,[],!1,null,null,null);Ie.options.__file="src/components/icons/Arrow.vue";var Ee=Ie.exports,Oe=ue({name:"vue-treeselect--control",inject:["instance"],computed:{shouldShowX:function(){var e=this.instance;return e.clearable&&!e.disabled&&e.hasValue&&(this.hasUndisabledValue||e.allowClearingDisabled)},shouldShowArrow:function(){var e=this.instance;return!e.alwaysOpen||!e.menu.isOpen},hasUndisabledValue:function(){var e=this.instance;return e.hasValue&&e.internalValue.some((function(t){return!e.getNode(t).isDisabled}))}},methods:{renderX:function(){var e=this.$createElement,t=this.instance,n=t.multiple?t.clearAllText:t.clearValueText;return this.shouldShowX?e("div",{class:"vue-treeselect__x-container",attrs:{title:n},on:{mousedown:this.handleMouseDownOnX}},[e(Te,{class:"vue-treeselect__x"})]):null},renderArrow:function(){var e=this.$createElement,t={"vue-treeselect__control-arrow":!0,"vue-treeselect__control-arrow--rotated":this.instance.menu.isOpen};return this.shouldShowArrow?e("div",{class:"vue-treeselect__control-arrow-container",on:{mousedown:this.handleMouseDownOnArrow}},[e(Ee,{class:t})]):null},handleMouseDownOnX:f((function(e){e.stopPropagation(),e.preventDefault();var t=this.instance,n=t.beforeClearAll(),r=function(e){e&&t.clear()};L()(n)?n.then(r):setTimeout((function(){return r(n)}),0)})),handleMouseDownOnArrow:f((function(e){e.preventDefault(),e.stopPropagation();var t=this.instance;t.focusInput(),t.toggleMenu()})),renderValueContainer:function(e){return(0,this.$createElement)("div",{class:"vue-treeselect__value-container"},[e])}},render:function(){var e=arguments[0],t=this.instance,n=t.single?we:Ce;return e("div",{class:"vue-treeselect__control",on:{mousedown:t.handleMouseDown}},[e(n,{ref:"value-container"}),this.renderX(),this.renderArrow()])}},void 0,void 0,!1,null,null,null);Oe.options.__file="src/components/Control.vue";var De=Oe.exports,Pe=ue({name:"vue-treeselect--tip",functional:!0,props:{type:{type:String,required:!0},icon:{type:String,required:!0}},render:function(e,t){var n=arguments[0],r=t.props,a=t.children;return n("div",{class:"vue-treeselect__tip vue-treeselect__".concat(r.type,"-tip")},[n("div",{class:"vue-treeselect__icon-container"},[n("span",{class:"vue-treeselect__icon-".concat(r.icon)})]),n("span",{class:"vue-treeselect__tip-text vue-treeselect__".concat(r.type,"-tip-text")},[a])])}},void 0,void 0,!1,null,null,null);Pe.options.__file="src/components/Tip.vue";var ze,Ne,je,Re=Pe.exports,Fe={name:"vue-treeselect--option",inject:["instance"],props:{node:{type:Object,required:!0}},computed:{shouldExpand:function(){var e=this.instance,t=this.node;return t.isBranch&&e.shouldExpand(t)},shouldShow:function(){var e=this.instance,t=this.node;return e.shouldShowOptionInMenu(t)}},methods:{renderOption:function(){var e=this.$createElement,t=this.instance,n=this.node;return e("div",{class:{"vue-treeselect__option":!0,"vue-treeselect__option--disabled":n.isDisabled,"vue-treeselect__option--selected":t.isSelected(n),"vue-treeselect__option--highlight":n.isHighlighted,"vue-treeselect__option--matched":t.localSearch.active&&n.isMatched,"vue-treeselect__option--hide":!this.shouldShow},on:{mouseenter:this.handleMouseEnterOption},attrs:{"data-id":n.id}},[this.renderArrow(),this.renderLabelContainer([this.renderCheckboxContainer([this.renderCheckbox()]),this.renderLabel()])])},renderSubOptionsList:function(){var e=this.$createElement;return this.shouldExpand?e("div",{class:"vue-treeselect__list"},[this.renderSubOptions(),this.renderNoChildrenTip(),this.renderLoadingChildrenTip(),this.renderLoadingChildrenErrorTip()]):null},renderArrow:function(){var e=this.$createElement,t=this.instance,n=this.node;if(t.shouldFlattenOptions&&this.shouldShow)return null;if(n.isBranch){var r={"vue-treeselect__option-arrow":!0,"vue-treeselect__option-arrow--rotated":this.shouldExpand};return e("div",{class:"vue-treeselect__option-arrow-container",on:{mousedown:this.handleMouseDownOnArrow}},[e("transition",{props:{name:"vue-treeselect__option-arrow--prepare",appear:!0}},[e(Ee,{class:r})])])}return t.hasBranchNodes?(ze||(ze=e("div",{class:"vue-treeselect__option-arrow-placeholder"},["ย "])),ze):null},renderLabelContainer:function(e){return(0,this.$createElement)("div",{class:"vue-treeselect__label-container",on:{mousedown:this.handleMouseDownOnLabelContainer}},[e])},renderCheckboxContainer:function(e){var t=this.$createElement,n=this.instance,r=this.node;return n.single||n.disableBranchNodes&&r.isBranch?null:t("div",{class:"vue-treeselect__checkbox-container"},[e])},renderCheckbox:function(){var e=this.$createElement,t=this.instance,n=this.node,r=t.forest.checkedStateMap[n.id],a={"vue-treeselect__checkbox":!0,"vue-treeselect__checkbox--checked":2===r,"vue-treeselect__checkbox--indeterminate":1===r,"vue-treeselect__checkbox--unchecked":0===r,"vue-treeselect__checkbox--disabled":n.isDisabled};return Ne||(Ne=e("span",{class:"vue-treeselect__check-mark"})),je||(je=e("span",{class:"vue-treeselect__minus-mark"})),e("span",{class:a},[Ne,je])},renderLabel:function(){var e=this.$createElement,t=this.instance,n=this.node,r=n.isBranch&&(t.localSearch.active?t.showCountOnSearchComputed:t.showCount),a=r?t.localSearch.active?t.localSearch.countMap[n.id][t.showCountOf]:n.count[t.showCountOf]:NaN,i=t.$scopedSlots["option-label"];return i?i({node:n,shouldShowCount:r,count:a,labelClassName:"vue-treeselect__label",countClassName:"vue-treeselect__count"}):e("label",{class:"vue-treeselect__label"},[n.label,r&&e("span",{class:"vue-treeselect__count"},["(",a,")"])])},renderSubOptions:function(){var e=this.$createElement,t=this.node;return t.childrenStates.isLoaded?t.children.map((function(t){return e(Fe,{attrs:{node:t},key:t.id})})):null},renderNoChildrenTip:function(){var e=this.$createElement,t=this.instance,n=this.node;return!n.childrenStates.isLoaded||n.children.length?null:e(Re,{attrs:{type:"no-children",icon:"warning"}},[t.noChildrenText])},renderLoadingChildrenTip:function(){var e=this.$createElement,t=this.instance;return this.node.childrenStates.isLoading?e(Re,{attrs:{type:"loading",icon:"loader"}},[t.loadingText]):null},renderLoadingChildrenErrorTip:function(){var e=this.$createElement,t=this.instance,n=this.node;return n.childrenStates.loadingError?e(Re,{attrs:{type:"error",icon:"error"}},[n.childrenStates.loadingError,e("a",{class:"vue-treeselect__retry",attrs:{title:t.retryTitle},on:{mousedown:this.handleMouseDownOnRetry}},[t.retryText])]):null},handleMouseEnterOption:function(e){var t=this.instance,n=this.node;e.target===e.currentTarget&&t.setCurrentHighlightedOption(n,!1)},handleMouseDownOnArrow:f((function(){var e=this.instance,t=this.node;e.toggleExpanded(t)})),handleMouseDownOnLabelContainer:f((function(){var e=this.instance,t=this.node;t.isBranch&&e.disableBranchNodes?e.toggleExpanded(t):e.select(t)})),handleMouseDownOnRetry:f((function(){var e=this.instance,t=this.node;e.loadChildrenOptions(t)}))},render:function(){var e=arguments[0],t=this.node,n=this.instance.shouldFlattenOptions?0:t.level,r=s()({"vue-treeselect__list-item":!0},"vue-treeselect__indent-level-".concat(n),!0),a={props:{name:"vue-treeselect__list--transition"}};return e("div",{class:r},[this.renderOption(),t.isBranch&&e("transition",a,[this.renderSubOptionsList()])])}},Be=ue(Fe,void 0,void 0,!1,null,null,null);Be.options.__file="src/components/Option.vue";var He=Be.exports,Ve={top:"top",bottom:"bottom",above:"top",below:"bottom"},Ge=ue({name:"vue-treeselect--menu",inject:["instance"],computed:{menuStyle:function(){return{maxHeight:this.instance.maxHeight+"px"}},menuContainerStyle:function(){var e=this.instance;return{zIndex:e.appendToBody?null:e.zIndex}}},watch:{"instance.menu.isOpen":function(e){e?this.$nextTick(this.onMenuOpen):this.onMenuClose()}},created:function(){this.menuSizeWatcher=null,this.menuResizeAndScrollEventListeners=null},mounted:function(){this.instance.menu.isOpen&&this.$nextTick(this.onMenuOpen)},destroyed:function(){this.onMenuClose()},methods:{renderMenu:function(){var e=this.$createElement,t=this.instance;return t.menu.isOpen?e("div",{ref:"menu",class:"vue-treeselect__menu",on:{mousedown:t.handleMouseDown},style:this.menuStyle},[this.renderBeforeList(),t.async?this.renderAsyncSearchMenuInner():t.localSearch.active?this.renderLocalSearchMenuInner():this.renderNormalMenuInner(),this.renderAfterList()]):null},renderBeforeList:function(){var e=this.instance.$scopedSlots["before-list"];return e?e():null},renderAfterList:function(){var e=this.instance.$scopedSlots["after-list"];return e?e():null},renderNormalMenuInner:function(){var e=this.instance;return e.rootOptionsStates.isLoading?this.renderLoadingOptionsTip():e.rootOptionsStates.loadingError?this.renderLoadingRootOptionsErrorTip():e.rootOptionsStates.isLoaded&&0===e.forest.normalizedOptions.length?this.renderNoAvailableOptionsTip():this.renderOptionList()},renderLocalSearchMenuInner:function(){var e=this.instance;return e.rootOptionsStates.isLoading?this.renderLoadingOptionsTip():e.rootOptionsStates.loadingError?this.renderLoadingRootOptionsErrorTip():e.rootOptionsStates.isLoaded&&0===e.forest.normalizedOptions.length?this.renderNoAvailableOptionsTip():e.localSearch.noResults?this.renderNoResultsTip():this.renderOptionList()},renderAsyncSearchMenuInner:function(){var e=this.instance,t=e.getRemoteSearchEntry(),n=""===e.trigger.searchQuery&&!e.defaultOptions,r=!n&&(t.isLoaded&&0===t.options.length);return n?this.renderSearchPromptTip():t.isLoading?this.renderLoadingOptionsTip():t.loadingError?this.renderAsyncSearchLoadingErrorTip():r?this.renderNoResultsTip():this.renderOptionList()},renderOptionList:function(){var e=this.$createElement,t=this.instance;return e("div",{class:"vue-treeselect__list"},[t.forest.normalizedOptions.map((function(t){return e(He,{attrs:{node:t},key:t.id})}))])},renderSearchPromptTip:function(){var e=this.$createElement,t=this.instance;return e(Re,{attrs:{type:"search-prompt",icon:"warning"}},[t.searchPromptText])},renderLoadingOptionsTip:function(){var e=this.$createElement,t=this.instance;return e(Re,{attrs:{type:"loading",icon:"loader"}},[t.loadingText])},renderLoadingRootOptionsErrorTip:function(){var e=this.$createElement,t=this.instance;return e(Re,{attrs:{type:"error",icon:"error"}},[t.rootOptionsStates.loadingError,e("a",{class:"vue-treeselect__retry",on:{click:t.loadRootOptions},attrs:{title:t.retryTitle}},[t.retryText])])},renderAsyncSearchLoadingErrorTip:function(){var e=this.$createElement,t=this.instance,n=t.getRemoteSearchEntry();return e(Re,{attrs:{type:"error",icon:"error"}},[n.loadingError,e("a",{class:"vue-treeselect__retry",on:{click:t.handleRemoteSearch},attrs:{title:t.retryTitle}},[t.retryText])])},renderNoAvailableOptionsTip:function(){var e=this.$createElement,t=this.instance;return e(Re,{attrs:{type:"no-options",icon:"warning"}},[t.noOptionsText])},renderNoResultsTip:function(){var e=this.$createElement,t=this.instance;return e(Re,{attrs:{type:"no-results",icon:"warning"}},[t.noResultsText])},onMenuOpen:function(){this.adjustMenuOpenDirection(),this.setupMenuSizeWatcher(),this.setupMenuResizeAndScrollEventListeners()},onMenuClose:function(){this.removeMenuSizeWatcher(),this.removeMenuResizeAndScrollEventListeners()},adjustMenuOpenDirection:function(){var e=this.instance;if(e.menu.isOpen){var t=e.getMenu(),n=e.getControl(),r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),i=r.height,o=window.innerHeight,l=a.top,s=window.innerHeight-a.bottom>i+40,c=l>i+40;a.top>=0&&a.top<=o||a.top<0&&a.bottom>0?"auto"!==e.openDirection?e.menu.placement=Ve[e.openDirection]:e.menu.placement=s||!c?"bottom":"top":e.closeMenu()}},setupMenuSizeWatcher:function(){var e=this.instance.getMenu();this.menuSizeWatcher||(this.menuSizeWatcher={remove:T(e,this.adjustMenuOpenDirection)})},setupMenuResizeAndScrollEventListeners:function(){var e=this.instance.getControl();this.menuResizeAndScrollEventListeners||(this.menuResizeAndScrollEventListeners={remove:A(e,this.adjustMenuOpenDirection)})},removeMenuSizeWatcher:function(){this.menuSizeWatcher&&(this.menuSizeWatcher.remove(),this.menuSizeWatcher=null)},removeMenuResizeAndScrollEventListeners:function(){this.menuResizeAndScrollEventListeners&&(this.menuResizeAndScrollEventListeners.remove(),this.menuResizeAndScrollEventListeners=null)}},render:function(){var e=arguments[0];return e("div",{ref:"menu-container",class:"vue-treeselect__menu-container",style:this.menuContainerStyle},[e("transition",{attrs:{name:"vue-treeselect__menu--transition"}},[this.renderMenu()])])}},void 0,void 0,!1,null,null,null);Ge.options.__file="src/components/Menu.vue";var Ue=Ge.exports,qe=n(14),Ze=n.n(qe);function We(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ye,Xe={name:"vue-treeselect--portal-target",inject:["instance"],watch:{"instance.menu.isOpen":function(e){e?this.setupHandlers():this.removeHandlers()},"instance.menu.placement":function(){this.updateMenuContainerOffset()}},created:function(){this.controlResizeAndScrollEventListeners=null,this.controlSizeWatcher=null},mounted:function(){this.instance.menu.isOpen&&this.setupHandlers()},methods:{setupHandlers:function(){this.updateWidth(),this.updateMenuContainerOffset(),this.setupControlResizeAndScrollEventListeners(),this.setupControlSizeWatcher()},removeHandlers:function(){this.removeControlResizeAndScrollEventListeners(),this.removeControlSizeWatcher()},setupControlResizeAndScrollEventListeners:function(){var e=this.instance.getControl();this.controlResizeAndScrollEventListeners||(this.controlResizeAndScrollEventListeners={remove:A(e,this.updateMenuContainerOffset)})},setupControlSizeWatcher:function(){var e=this,t=this.instance.getControl();this.controlSizeWatcher||(this.controlSizeWatcher={remove:T(t,(function(){e.updateWidth(),e.updateMenuContainerOffset()}))})},removeControlResizeAndScrollEventListeners:function(){this.controlResizeAndScrollEventListeners&&(this.controlResizeAndScrollEventListeners.remove(),this.controlResizeAndScrollEventListeners=null)},removeControlSizeWatcher:function(){this.controlSizeWatcher&&(this.controlSizeWatcher.remove(),this.controlSizeWatcher=null)},updateWidth:function(){var e=this.instance,t=this.$el,n=e.getControl().getBoundingClientRect();t.style.width=n.width+"px"},updateMenuContainerOffset:function(){var e=this.instance,t=e.getControl(),n=this.$el,r=t.getBoundingClientRect(),a=n.getBoundingClientRect(),i="bottom"===e.menu.placement?r.height:0,o=Math.round(r.left-a.left)+"px",l=Math.round(r.top-a.top+i)+"px";this.$refs.menu.$refs["menu-container"].style[U(["transform","webkitTransform","MozTransform","msTransform"],(function(e){return e in document.body.style}))]="translate(".concat(o,", ").concat(l,")")}},render:function(){var e=arguments[0],t=this.instance,n=["vue-treeselect__portal-target",t.wrapperClass],r={zIndex:t.zIndex};return e("div",{class:n,style:r,attrs:{"data-instance-id":t.getInstanceId()}},[e(Ue,{ref:"menu"})])},destroyed:function(){this.removeHandlers()}},$e=ue({name:"vue-treeselect--menu-portal",created:function(){this.portalTarget=null},mounted:function(){this.setup()},destroyed:function(){this.teardown()},methods:{setup:function(){var e=document.createElement("div");document.body.appendChild(e),this.portalTarget=new Ze.a(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?We(n,!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):We(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({el:e,parent:this},Xe))},teardown:function(){document.body.removeChild(this.portalTarget.$el),this.portalTarget.$el.innerHTML="",this.portalTarget.$destroy(),this.portalTarget=null}},render:function(){var e=arguments[0];return Ye||(Ye=e("div",{class:"vue-treeselect__menu-placeholder"})),Ye}},void 0,void 0,!1,null,null,null);$e.options.__file="src/components/MenuPortal.vue";var Je=$e.exports,Ke=ue({name:"vue-treeselect",mixins:[se],computed:{wrapperClass:function(){return{"vue-treeselect":!0,"vue-treeselect--single":this.single,"vue-treeselect--multi":this.multiple,"vue-treeselect--searchable":this.searchable,"vue-treeselect--disabled":this.disabled,"vue-treeselect--focused":this.trigger.isFocused,"vue-treeselect--has-value":this.hasValue,"vue-treeselect--open":this.menu.isOpen,"vue-treeselect--open-above":"top"===this.menu.placement,"vue-treeselect--open-below":"bottom"===this.menu.placement,"vue-treeselect--branch-nodes-disabled":this.disableBranchNodes,"vue-treeselect--append-to-body":this.appendToBody}}},render:function(){var e=arguments[0];return e("div",{ref:"wrapper",class:this.wrapperClass},[e(he),e(De,{ref:"control"}),this.appendToBody?e(Je,{ref:"portal"}):e(Ue,{ref:"menu"})])}},void 0,void 0,!1,null,null,null);Ke.options.__file="src/components/Treeselect.vue";var Qe=Ke.exports;n(15);n.d(t,"VERSION",(function(){return et})),n.d(t,"Treeselect",(function(){return Qe})),n.d(t,"treeselectMixin",(function(){return se})),n.d(t,"LOAD_ROOT_OPTIONS",(function(){return"LOAD_ROOT_OPTIONS"})),n.d(t,"LOAD_CHILDREN_OPTIONS",(function(){return"LOAD_CHILDREN_OPTIONS"})),n.d(t,"ASYNC_SEARCH",(function(){return"ASYNC_SEARCH"}));t.default=Qe;var et="0.4.0"}])},ymS1:function(e,t,n){"use strict";var r=n("Tv4R"),a=n("4htA").drawMode,i=n("Nx4I"),o=n("UtjE"),l=o.i000,s=o.i090,c=o.i180,u=o.i270,d=n("6Ue+").clearOutlineControllers,h=n("s02k"),f=h.pointsShapeRectangle,p=h.pointsShapeEllipse,g=h.writePaths,v=n("OyTQ");e.exports=function e(t,n,o,h){h||(h=0);var m=o.gd;function y(){e(t,n,o,h++),p(t[0])&&x({redrawing:!0})}function x(e){o.isActiveShape=!1;var t=v(n,o);Object.keys(t).length&&i.call((e||{}).redrawing?"relayout":"_guiRelayout",m,t)}var b,w,_,k,T,M=o.isActiveShape,A=m._fullLayout._zoomlayer,S=o.dragmode;(a(S)?m._fullLayout._drawing=!0:m._fullLayout._activeShapeIndex>=0&&d(m),n.attr("d",g(t)),M&&!h)&&(T=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];e[n]=[];for(var a=0;a<r.length;a++){e[n][a]=[];for(var i=0;i<r[a].length;i++)e[n][a][i]=r[a][i]}}return e}([],t),function(e){b=[];for(var n=0;n<t.length;n++){var a=t[n],i=!f(a)&&p(a);b[n]=[];for(var o=0;o<a.length;o++)if("Z"!==a[o][0]&&(!i||o===l||o===s||o===c||o===u)){var d=a[o][1],h=a[o][2],g=e.append("circle").classed("cursor-grab",!0).attr("data-i",n).attr("data-j",o).attr("cx",d).attr("cy",h).attr("r",4).style({"mix-blend-mode":"luminosity",fill:"black",stroke:"white","stroke-width":1});b[n][o]={element:g.node(),gd:m,prepFn:C,doneFn:I,clickFn:E},r.init(b[n][o])}}}(A.append("g").attr("class","outline-controllers")),function(){if(w=[],!t.length)return;w[0]={element:n[0][0],gd:m,prepFn:D,doneFn:P},r.init(w[0])}());function C(e){_=+e.srcElement.getAttribute("data-i"),k=+e.srcElement.getAttribute("data-j"),b[_][k].moveFn=L}function L(e,n){if(t.length){var r=T[_][k][1],a=T[_][k][2],i=t[_],o=i.length;if(f(i)){for(var l=0;l<o;l++)if(l!==k){var s=i[l];s[1]===i[k][1]&&(s[1]=r+e),s[2]===i[k][2]&&(s[2]=a+n)}if(i[k][1]=r+e,i[k][2]=a+n,!f(i))for(var c=0;c<o;c++)for(var u=0;u<i[c].length;u++)i[c][u]=T[_][c][u]}else i[k][1]=r+e,i[k][2]=a+n;y()}}function I(){x()}function E(e,n){if(2===e){_=+n.srcElement.getAttribute("data-i"),k=+n.srcElement.getAttribute("data-j");var r=t[_];f(r)||p(r)||function(){if(t.length&&t[_]&&t[_].length){for(var e=[],n=0;n<t[_].length;n++)n!==k&&e.push(t[_][n]);e.length>1&&(2!==e.length||"Z"!==e[1][0])&&(0===k&&(e[0][0]="M"),t[_]=e,y(),x())}}()}}function O(e,n){!function(e,n){if(t.length)for(var r=0;r<t.length;r++)for(var a=0;a<t[r].length;a++)for(var i=0;i+2<t[r][a].length;i+=2)t[r][a][i+1]=T[r][a][i+1]+e,t[r][a][i+2]=T[r][a][i+2]+n}(e,n),y()}function D(e){(_=+e.srcElement.getAttribute("data-i"))||(_=0),w[_].moveFn=O}function P(){x()}}},yme6:function(e,t,n){"use strict";var r=n("QkhT"),a={getDelay:r.getDelay,getRedrawFunc:r.getRedrawFunc,clone:n("0Y4q"),toSVG:n("ywRt"),svgToImg:n("Tr0U"),toImage:n("7pK6"),downloadImage:n("rZH/")};e.exports=a},yv8l:function(e,t,n){"use strict";var r=n("/CZE"),a=n("HByh").handleGroupingDefaults,i=n("HByh").handleText,o=n("B28u"),l=n("yZ/U"),s=n("0RW4");e.exports={supplyDefaults:function(e,t,n,a){function c(n,a){return r.coerce(e,t,l,n,a)}if(o(e,t,a,c)){c("orientation",t.y&&!t.x?"v":"h"),c("offset"),c("width");var u=c("text");c("hovertext"),c("hovertemplate");var d=c("textposition");i(e,t,a,c,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),"none"===t.textposition||t.texttemplate||c("textinfo",Array.isArray(u)?"text+value":"value");var h=c("marker.color",n);if(c("marker.line.color",s.defaultLine),c("marker.line.width"),c("connector.visible"))c("connector.fillcolor",function(e){var t=r.isArrayOrTypedArray(e)?"#000":e;return s.addOpacity(t,.5*s.opacity(t))}(h)),c("connector.line.width")&&(c("connector.line.color"),c("connector.line.dash"))}else t.visible=!1},crossTraceDefaults:function(e,t){var n,i;function o(e){return r.coerce(i._input,i,l,e)}if("group"===t.funnelmode)for(var s=0;s<e.length;s++)n=(i=e[s])._input,a(n,i,t,o)}}},ywRt:function(e,t,n){"use strict";var r=n("bljh"),a=n("/CZE"),i=n("g9E0"),o=n("0RW4"),l=n("c8nr"),s=/"/g,c=new RegExp('("TOBESTRIPPED)|(TOBESTRIPPED")',"g");e.exports=function(e,t,n){var u,d=e._fullLayout,h=d._paper,f=d._toppaper,p=d.width,g=d.height;h.insert("rect",":first-child").call(i.setRect,0,0,p,g).call(o.fill,d.paper_bgcolor);var v=d._basePlotModules||[];for(u=0;u<v.length;u++){var m=v[u];m.toSVG&&m.toSVG(e)}if(f){var y=f.node().childNodes,x=Array.prototype.slice.call(y);for(u=0;u<x.length;u++){var b=x[u];b.childNodes.length&&h.node().appendChild(b)}}if(d._draggers&&d._draggers.remove(),h.node().style.background="",h.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each((function(){var e=r.select(this);if("hidden"!==this.style.visibility&&"none"!==this.style.display){e.style({visibility:null,display:null});var t=this.style.fontFamily;t&&-1!==t.indexOf('"')&&e.style("font-family",t.replace(s,"TOBESTRIPPED"))}else e.remove()})),d._gradientUrlQueryParts){var w=[];for(var _ in d._gradientUrlQueryParts)w.push(_);w.length&&h.selectAll(w.join(",")).each((function(){var e=r.select(this),t=this.style.fill;t&&-1!==t.indexOf("url(")&&e.style("fill",t.replace(s,"TOBESTRIPPED"));var n=this.style.stroke;n&&-1!==n.indexOf("url(")&&e.style("stroke",n.replace(s,"TOBESTRIPPED"))}))}"pdf"!==t&&"eps"!==t||h.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),h.node().setAttributeNS(l.xmlns,"xmlns",l.svg),h.node().setAttributeNS(l.xmlns,"xmlns:xlink",l.xlink),"svg"===t&&n&&(h.attr("width",n*p),h.attr("height",n*g),h.attr("viewBox","0 0 "+p+" "+g));var k=(new window.XMLSerializer).serializeToString(h.node());return k=function(e){var t=r.select("body").append("div").style({display:"none"}).html(""),n=e.replace(/(&[^;]*;)/gi,(function(e){return"<"===e?"<":"&rt;"===e?">":-1!==e.indexOf("<")||-1!==e.indexOf(">")?"":t.html(e).text()}));return t.remove(),n}(k),k=(k=k.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(c,"'"),a.isIE()&&(k=(k=(k=k.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),k}},yzSc:function(e,t,n){"use strict";var r=n("/CZE"),a=r.extendFlat,i=r.isPlainObject,o={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"],description:["trace attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full `Plotly.plot` starting by clearing `gd.calcdata`","to force it to be regenerated","*clearAxisTypes* resets the types of the axes this trace is on, because new data could","cause the automatic axis type detection to change. Log type will not be cleared, as that","is never automatically chosen so must have been user-specified.","*plot* calls `Plotly.plot` but without first clearing `gd.calcdata`.","*style* only calls `module.style` (or module.editStyle) for all trace modules and redraws the legend.","*markerSize* is like *style*, but propagate axis-range changes due to scatter `marker.size`","*colorbars* only redraws colorbars."].join(" ")},l={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"],description:["layout attributes should include an `editType` string matching this flaglist.","*calc* is the most extensive: a full `Plotly.plot` starting by clearing `gd.calcdata`","to force it to be regenerated","*plot* calls `Plotly.plot` but without first clearing `gd.calcdata`.","*legend* only redraws the legend.","*ticks* only redraws axis ticks, labels, and gridlines.","*axrange* minimal sequence when updating axis ranges.","*layoutstyle* reapplies global and SVG cartesian axis styles.","*modebar* just updates the modebar.","*camera* just updates the camera settings for gl3d scenes.","*arraydraw* allows component arrays to invoke the redraw routines just for the","component(s) that changed.","*colorbars* only redraws colorbars."].join(" ")},s=o.flags.slice().concat(["fullReplot"]),c=l.flags.slice().concat("layoutReplot");function u(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!1;return t}function d(e,t,n){var r=a({},e);for(var o in r){var l=r[o];i(l)&&(r[o]=h(l,t,n,o))}return"from-root"===n&&(r.editType=t),r}function h(e,t,n,r){if(e.valType){var i=a({},e);if(i.editType=t,Array.isArray(e.items)){i.items=new Array(e.items.length);for(var o=0;o<e.items.length;o++)i.items[o]=h(e.items[o],t,"from-root")}return i}return d(e,t,"_"===r.charAt(0)?"nested":"from-root")}e.exports={traces:o,layout:l,traceFlags:function(){return u(s)},layoutFlags:function(){return u(c)},update:function(e,t){var n=t.editType;if(n&&"none"!==n)for(var r=n.split("+"),a=0;a<r.length;a++)e[r[a]]=!0},overrideAll:d}},zRkR:function(e,t,n){"use strict";var r=n("PS76");e.exports={moduleType:"component",name:r.name,layoutAttributes:n("QtxG"),supplyLayoutDefaults:n("3MKb"),draw:n("/YBL")}},zYTo:function(e,t,n){"use strict";var r=n("/CZE"),a=n("BkK/"),i=n("JZU4").draw;function o(e){var t=e._fullLayout;r.filterVisible(t.annotations).forEach((function(t){var n=a.getFromId(e,t.xref),r=a.getFromId(e,t.yref);t._extremes={},n&&l(t,n),r&&l(t,r)}))}function l(e,t){var n,r=t._id,i=r.charAt(0),o=e[i],l=e["a"+i],s=e[i+"ref"],c=e["a"+i+"ref"],u=e["_"+i+"padplus"],d=e["_"+i+"padminus"],h={x:1,y:-1}[i]*e[i+"shift"],f=3*e.arrowsize*e.arrowwidth||0,p=f+h,g=f-h,v=3*e.startarrowsize*e.arrowwidth||0,m=v+h,y=v-h;if(c===s){var x=a.findExtremes(t,[t.r2c(o)],{ppadplus:p,ppadminus:g}),b=a.findExtremes(t,[t.r2c(l)],{ppadplus:Math.max(u,m),ppadminus:Math.max(d,y)});n={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,n=a.findExtremes(t,[t.r2c(o)],{ppadplus:Math.max(u,p,m),ppadminus:Math.max(d,g,y)});e._extremes[r]=n}e.exports=function(e){var t=e._fullLayout;if(r.filterVisible(t.annotations).length&&e._fullData.length)return r.syncOrAsync([i,o],e)}},zZ0H:function(e,t){e.exports=function(e){return e}},zlYT:function(e,t,n){"use strict";var r=n("GbLo"),a=n("/CZE"),i=n("6AZA").FP_SAFE,o=n("Nx4I");function l(e,t){var n,r,i=[],o=s(t),l=c(e,t),u=l.min,d=l.max;if(0===u.length||0===d.length)return a.simpleMap(t.range,t.r2l);var h=u[0].val,f=d[0].val;for(n=1;n<u.length&&h===f;n++)h=Math.min(h,u[n].val);for(n=1;n<d.length&&h===f;n++)f=Math.max(f,d[n].val);var p=!1;if(t.range){var g=a.simpleMap(t.range,t.r2l);p=g[1]<g[0]}"reversed"===t.autorange&&(p=!0,t.autorange=!0);var v,m,y,x,b,w,_=t.rangemode,k="tozero"===_,T="nonnegative"===_,M=t._length,A=M/10,S=function(e,n){var r=0;if(t.rangebreaks)for(var a=t.locateBreaks(e,n),i=0;i<a.length;i++){var o=a[i];r+=o.max-o.min}return r},C=0;for(n=0;n<u.length;n++)for(v=u[n],r=0;r<d.length;r++)(w=(m=d[r]).val-v.val-S(v.val,m.val))>0&&((b=M-o(v)-o(m))>A?w/b>C&&(y=v,x=m,C=w/b):w/M>C&&(y={val:v.val,pad:0},x={val:m.val,pad:0},C=w/M));if(h===f){var L=h-1,I=h+1;if(k)if(0===h)i=[0,1];else{var E=(h>0?d:u).reduce((function(e,t){return Math.max(e,o(t))}),0),O=h/(1-Math.min(.5,E/M));i=h>0?[0,O]:[O,0]}else i=T?[Math.max(0,L),Math.max(1,I)]:[L,I]}else k?(y.val>=0&&(y={val:0,pad:0}),x.val<=0&&(x={val:0,pad:0})):T&&(y.val-C*o(y)<0&&(y={val:0,pad:0}),x.val<=0&&(x={val:1,pad:0})),C=(x.val-y.val-S(v.val,m.val))/(M-o(y)-o(x)),i=[y.val-C*o(y),x.val+C*o(x)];return p&&i.reverse(),a.simpleMap(i,t.l2r||Number)}function s(e){var t=e._length/20;return"domain"===e.constrain&&e._inputDomain&&(t*=(e._inputDomain[1]-e._inputDomain[0])/(e.domain[1]-e.domain[0])),function(e){return e.pad+(e.extrapad?t:0)}}function c(e,t){var n,r,a,i=t._id,o=e._fullData,l=e._fullLayout,s=[],c=[];function h(e,t){for(n=0;n<t.length;n++){var o=e[t[n]],l=(o._extremes||{})[i];if(!0===o.visible&&l){for(r=0;r<l.min.length;r++)a=l.min[r],u(s,a.val,a.pad,{extrapad:a.extrapad});for(r=0;r<l.max.length;r++)a=l.max[r],d(c,a.val,a.pad,{extrapad:a.extrapad})}}}return h(o,t._traceIndices),h(l.annotations||[],t._annIndices||[]),h(l.shapes||[],t._shapeIndices||[]),{min:s,max:c}}function u(e,t,n,r){h(e,t,n,r,p)}function d(e,t,n,r){h(e,t,n,r,g)}function h(e,t,n,r,a){for(var i=r.tozero,o=r.extrapad,l=!0,s=0;s<e.length&&l;s++){var c=e[s];if(a(c.val,t)&&c.pad>=n&&(c.extrapad||!o)){l=!1;break}a(t,c.val)&&c.pad<=n&&(o||!c.extrapad)&&(e.splice(s,1),s--)}if(l){var u=i&&0===t;e.push({val:t,pad:u?0:n,extrapad:!u&&o})}}function f(e){return r(e)&&Math.abs(e)<i}function p(e,t){return e<=t}function g(e,t){return e>=t}e.exports={getAutoRange:l,makePadFn:s,doAutoRange:function(e,t){if(t.setScale(),t.autorange){t.range=l(e,t),t._r=t.range.slice(),t._rl=a.simpleMap(t._r,t.r2l);var n=t._input,r={};r[t._attr+".range"]=t.range,r[t._attr+".autorange"]=t.autorange,o.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,r),n.range=t.range.slice(),n.autorange=t.autorange}var i=t._anchorAxis;if(i&&i.rangeslider){var s=i.rangeslider[t._name];s&&"auto"===s.rangemode&&(s.range=l(e,t)),i._input.rangeslider[t._name]=a.extendFlat({},s)}},findExtremes:function(e,t,n){n||(n={});e._m||e.setScale();var a,o,l,s,c,h,p,g,v,m=[],y=[],x=t.length,b=n.padded||!1,w=n.tozero&&("linear"===e.type||"-"===e.type),_="log"===e.type,k=!1,T=n.vpadLinearized||!1;function M(e){if(Array.isArray(e))return k=!0,function(t){return Math.max(Number(e[t]||0),0)};var t=Math.max(Number(e||0),0);return function(){return t}}var A=M((e._m>0?n.ppadplus:n.ppadminus)||n.ppad||0),S=M((e._m>0?n.ppadminus:n.ppadplus)||n.ppad||0),C=M(n.vpadplus||n.vpad),L=M(n.vpadminus||n.vpad);if(!k){if(g=1/0,v=-1/0,_)for(a=0;a<x;a++)(o=t[a])<g&&o>0&&(g=o),o>v&&o<i&&(v=o);else for(a=0;a<x;a++)(o=t[a])<g&&o>-i&&(g=o),o>v&&o<i&&(v=o);t=[g,v],x=2}var I={tozero:w,extrapad:b};function E(n){l=t[n],r(l)&&(h=A(n),p=S(n),T?(s=e.c2l(l)-L(n),c=e.c2l(l)+C(n)):(g=l-L(n),v=l+C(n),_&&g<v/10&&(g=v/10),s=e.c2l(g),c=e.c2l(v)),w&&(s=Math.min(0,s),c=Math.max(0,c)),f(s)&&u(m,s,p,I),f(c)&&d(y,c,h,I))}var O=Math.min(6,x);for(a=0;a<O;a++)E(a);for(a=x-1;a>=O;a--)E(a);return{min:m,max:y,opts:n}},concatExtremes:c}},zsdP:function(e,t){e.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|รง)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|รฉ)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|รฉ)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|รฃ)o.?tom(e|รฉ)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},zvAA:function(e,t,n){"use strict";var r=n("/CZE"),a=n("BkK/"),i=n("2FgJ"),o=n("/cea");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,n,a,l,s){var c=e/2,u=s;if("pixel"===t){var d=l?o.extractPathCoords(l,s?i.paramIsY:i.paramIsX):[n,a],h=r.aggNums(Math.max,null,d),f=r.aggNums(Math.min,null,d),p=f<0?Math.abs(f)+c:c,g=h>0?h+c:c;return{ppad:c,ppadplus:u?p:g,ppadminus:u?g:p}}return{ppad:c}}function u(e,t,n,r,a){var l="category"===e.type||"multicategory"===e.type?e.r2c:e.d2c;if(void 0!==t)return[l(t),l(n)];if(r){var s,c,u,d,h=1/0,f=-1/0,p=r.match(i.segmentRE);for("date"===e.type&&(l=o.decodeDate(l)),s=0;s<p.length;s++)void 0!==(c=a[p[s].charAt(0)].drawn)&&(!(u=p[s].substr(1).match(i.paramRE))||u.length<c||((d=l(u[c]))<h&&(h=d),d>f&&(f=d)));return f>=h?[h,f]:void 0}}e.exports=function(e){var t=e._fullLayout,n=r.filterVisible(t.shapes);if(n.length&&e._fullData.length)for(var o=0;o<n.length;o++){var c,d,h=n[o];if(h._extremes={},"paper"!==h.xref){var f="pixel"===h.xsizemode?h.xanchor:h.x0,p="pixel"===h.xsizemode?h.xanchor:h.x1;(d=u(c=a.getFromId(e,h.xref),f,p,h.path,i.paramIsX))&&(h._extremes[c._id]=a.findExtremes(c,d,l(h)))}if("paper"!==h.yref){var g="pixel"===h.ysizemode?h.yanchor:h.y0,v="pixel"===h.ysizemode?h.yanchor:h.y1;(d=u(c=a.getFromId(e,h.yref),g,v,h.path,i.paramIsY))&&(h._extremes[c._id]=a.findExtremes(c,d,s(h)))}}}}}]);