billboard.js 3.6.1 → 3.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +13 -77
  2. package/dist/billboard.css +1 -1
  3. package/dist/billboard.js +30 -24
  4. package/dist/billboard.min.css +1 -1
  5. package/dist/billboard.min.js +2 -2
  6. package/dist/billboard.pkgd.js +172 -102
  7. package/dist/billboard.pkgd.min.js +2 -2
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
  17. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.js +144 -80
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.js +145 -81
  20. package/dist/plugin/pkgd/billboardjs-plugin-stanford.js +146 -82
  21. package/dist/plugin/pkgd/billboardjs-plugin-tableview.js +146 -82
  22. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.js +146 -82
  23. package/dist/theme/datalab.css +1 -1
  24. package/dist/theme/datalab.min.css +1 -1
  25. package/dist/theme/graph.css +1 -1
  26. package/dist/theme/graph.min.css +1 -1
  27. package/dist/theme/insight.css +1 -1
  28. package/dist/theme/insight.min.css +1 -1
  29. package/dist-esm/billboard.js +33 -21
  30. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  31. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  32. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  33. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  34. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  35. package/package.json +1 -1
  36. package/src/ChartInternal/Axis/AxisRendererHelper.ts +4 -2
  37. package/src/ChartInternal/interactions/eventrect.ts +22 -13
  38. package/src/ChartInternal/interactions/interaction.ts +6 -7
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.6.1
8
+ * @version 3.6.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -186,7 +186,7 @@ var Plugin = /*#__PURE__*/function () {
186
186
  };
187
187
  return Plugin;
188
188
  }();
189
- Plugin.version = "3.6.1";
189
+ Plugin.version = "3.6.3";
190
190
 
191
191
  ;// CONCATENATED MODULE: ./src/Plugin/bubblecompare/index.ts
192
192
 
@@ -5,8 +5,8 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.6.1
8
+ * @version 3.6.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-selection")):"function"==typeof define&&define.amd?define("bb",["d3-selection"],e):"object"==typeof exports?exports.bb=e(require("d3-selection")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.bubblecompare=e(t.d3))}(this,(function(t){return function(){"use strict";var e=[,function(e){e.exports=t}],n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,i),o.exports}i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};return function(){function t(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t,e){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},n(t,e)}i.d(r,{default:function(){return u}});var o=i(1),s=function(){function e(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var n=e.prototype;return n.$beforeInit=function(){},n.$init=function(){},n.$afterInit=function(){},n.$redraw=function(){},n.$willDestroy=function(){var e=this;Object.keys(this).forEach(function(n){t(this,e),this[n]=null,delete this[n]}.bind(this))},e}();s.version="3.6.1";var u=function(i){var r,s;function u(t){var n=i.call(this,t)||this;return n.$$=void 0,e(n)||e(n)}s=i,(r=u).prototype=Object.create(s.prototype),r.prototype.constructor=r,n(r,s);var a=u.prototype;return a.$init=function(){var t=this.$$;t.findClosest=this.findClosest.bind(this),t.getBubbleR=this.getBubbleR.bind(this),t.pointExpandedR=this.pointExpandedR.bind(this)},a.pointExpandedR=function(t){var e=this.getBubbleR(t),n=this.options.expandScale,i=void 0===n?1:n;return u.raiseFocusedBubbleLayer(t),this.changeCursorPoint(),e*i},u.raiseFocusedBubbleLayer=function(t){t.raise&&(0,o.select)(t.node().parentNode.parentNode).raise()},a.changeCursorPoint=function(){this.$$.$el.svg.select(".bb-event-rect").style("cursor","pointer")},a.findClosest=function(e,n){var i=this,r=this.$$;return e.filter(function(e){return t(this,i),e&&!r.isBarType(e.id)}.bind(this)).reduce(function(e,o){return t(this,i),r.dist(o,n)<this.getBubbleR(o)?o:e}.bind(this),0)},a.getBubbleR=function(e){var n=this,i=this.options,r=i.minR,o=i.maxR,s=this.getZData(e);if(!s)return r;var u=this.$$.data.targets.reduce(function(e,i){var r=e[0],o=e[1];t(this,n);var s=this.getZData(i.values[0]);return[Math.min(r,s),Math.max(o,s)]}.bind(this),[1e4,0]),a=u[0],c=u[1],f=a>0&&c===a?0:s/c;return Math.abs(f)*(o-r)+r},a.getZData=function(t){return this.$$.isBubbleZType(t)?this.$$.getBubbleZData(t.value,"z"):t.value},u}(s);u.version="0.0.1"}(),r=r.default}()}));
12
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-selection")):"function"==typeof define&&define.amd?define("bb",["d3-selection"],e):"object"==typeof exports?exports.bb=e(require("d3-selection")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.bubblecompare=e(t.d3))}(this,(function(t){return function(){"use strict";var e=[,function(e){e.exports=t}],n={};function i(t){var r=n[t];if(void 0!==r)return r.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,i),o.exports}i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};return function(){function t(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t,e){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},n(t,e)}i.d(r,{default:function(){return u}});var o=i(1),s=function(){function e(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var n=e.prototype;return n.$beforeInit=function(){},n.$init=function(){},n.$afterInit=function(){},n.$redraw=function(){},n.$willDestroy=function(){var e=this;Object.keys(this).forEach(function(n){t(this,e),this[n]=null,delete this[n]}.bind(this))},e}();s.version="3.6.3";var u=function(i){var r,s;function u(t){var n=i.call(this,t)||this;return n.$$=void 0,e(n)||e(n)}s=i,(r=u).prototype=Object.create(s.prototype),r.prototype.constructor=r,n(r,s);var a=u.prototype;return a.$init=function(){var t=this.$$;t.findClosest=this.findClosest.bind(this),t.getBubbleR=this.getBubbleR.bind(this),t.pointExpandedR=this.pointExpandedR.bind(this)},a.pointExpandedR=function(t){var e=this.getBubbleR(t),n=this.options.expandScale,i=void 0===n?1:n;return u.raiseFocusedBubbleLayer(t),this.changeCursorPoint(),e*i},u.raiseFocusedBubbleLayer=function(t){t.raise&&(0,o.select)(t.node().parentNode.parentNode).raise()},a.changeCursorPoint=function(){this.$$.$el.svg.select(".bb-event-rect").style("cursor","pointer")},a.findClosest=function(e,n){var i=this,r=this.$$;return e.filter(function(e){return t(this,i),e&&!r.isBarType(e.id)}.bind(this)).reduce(function(e,o){return t(this,i),r.dist(o,n)<this.getBubbleR(o)?o:e}.bind(this),0)},a.getBubbleR=function(e){var n=this,i=this.options,r=i.minR,o=i.maxR,s=this.getZData(e);if(!s)return r;var u=this.$$.data.targets.reduce(function(e,i){var r=e[0],o=e[1];t(this,n);var s=this.getZData(i.values[0]);return[Math.min(r,s),Math.max(o,s)]}.bind(this),[1e4,0]),a=u[0],c=u[1],f=a>0&&c===a?0:s/c;return Math.abs(f)*(o-r)+r},a.getZData=function(t){return this.$$.isBubbleZType(t)?this.$$.getBubbleZData(t.value,"z"):t.value},u}(s);u.version="0.0.1"}(),r=r.default}()}));
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.6.1
8
+ * @version 3.6.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -364,7 +364,7 @@ var Plugin = /*#__PURE__*/function () {
364
364
  };
365
365
  return Plugin;
366
366
  }();
367
- Plugin.version = "3.6.1";
367
+ Plugin.version = "3.6.3";
368
368
 
369
369
  ;// CONCATENATED MODULE: ./src/Plugin/sparkline/Options.ts
370
370
  /**
@@ -5,8 +5,8 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.6.1
8
+ * @version 3.6.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("d3-selection"),require("d3-brush")):"function"==typeof define&&define.amd?define("bb",["d3-selection","d3-brush"],t):"object"==typeof exports?exports.bb=t(require("d3-selection"),require("d3-brush")):(e.bb=e.bb||{},e.bb.plugin=e.bb.plugin||{},e.bb.plugin.sparkline=t(e.d3,e.d3))}(this,(function(e,t){return function(){"use strict";var n=[,function(t){t.exports=e},,function(e){e.exports=t}],i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={exports:{}};return n[e](o,o.exports,r),o.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var o={};return function(){function e(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}function t(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t,n=1;n<arguments.length;n++)t=null!=arguments[n]?arguments[n]:{},n%2?s(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}r.d(o,{default:function(){return E}});var c={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},b=(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a({},c),{arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title"}),{area:"bb-area",areas:"bb-areas"}),{axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label"}),{bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"}),{candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"}),{chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"}),{colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"}),{dragarea:"bb-dragarea",INCLUDED:"_included_"}),{chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"}),{legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"}),{chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"}),{eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"}),{focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"}),{grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"}),{chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"}),{region:"bb-region",regions:"bb-regions"}),{selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"}),{shape:"bb-shape",shapes:"bb-shapes"}),{brush:"bb-brush",subchart:"bb-subchart"}),{chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"}),{tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"}),{buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"}),function(){function t(e){void 0===e&&(e={}),this.$$=void 0,this.options=void 0,this.options=e}var n=t.prototype;return n.$beforeInit=function(){},n.$init=function(){},n.$afterInit=function(){},n.$redraw=function(){},n.$willDestroy=function(){var t=this;Object.keys(this).forEach(function(n){e(this,t),this[n]=null,delete this[n]}.bind(this))},t}());b.version="3.6.1";var l=function(){return{selector:void 0}},d=(r(1),r(3),void 0),u=function(){return e(this,d),"object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")()}.bind(void 0)();u.requestIdleCallback=u.requestIdleCallback||function(t){return e(this,d),setTimeout(t,1)}.bind(void 0),u.requestAnimationFrame=u.requestAnimationFrame||function(t){return e(this,d),setTimeout(t,1)}.bind(void 0);var h=null==u?void 0:u.document,f=void 0;(function(t){return e(this,f),t||0===t}).bind(void 0),function(t){return e(this,f),"function"==typeof t}.bind(void 0);var v=function(t){return e(this,f),"string"==typeof t}.bind(void 0),g=function(t){return e(this,f),"number"==typeof t}.bind(void 0),p=function(t){return e(this,f),void 0===t}.bind(void 0),y=function(t){return e(this,f),void 0!==t}.bind(void 0),m=(function(t){return e(this,f),"boolean"==typeof t}.bind(void 0),function(t){return e(this,f),10*Math.ceil(t/10)}.bind(void 0),function(t){return e(this,f),Math.ceil(t)+.5}.bind(void 0),function(t){return e(this,f),t[1]-t[0]}.bind(void 0),function(t){return e(this,f),"object"==typeof t}.bind(void 0)),x=function(t){return e(this,f),p(t)||null===t||v(t)&&0===t.length||m(t)&&!(t instanceof Date)&&0===Object.keys(t).length||g(t)&&isNaN(t)}.bind(void 0),O=(function(t){return e(this,f),!x(t)}.bind(void 0),function(t){return e(this,f),Array.isArray(t)}.bind(void 0)),j=function(t){return e(this,f),t&&!(null!=t&&t.nodeType)&&m(t)&&!O(t)}.bind(void 0);(function(t){return e(this,f),t.charAt(0).toUpperCase()+t.slice(1)}).bind(void 0);(function(t){return e(this,f),[].slice.call(t)}).bind(void 0);function $(t){for(var n=this,i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];if(!r.length||1===r.length&&!r[0])return t;var s=r.shift();return j(t)&&j(s)&&Object.keys(s).forEach(function(i){e(this,n);var r=s[i];j(r)?(t[i]||(t[i]={}),t[i]=$(t[i],r)):t[i]=O(r)?r.concat():r}.bind(this)),$.apply(void 0,[t].concat(r))}(function(t,n,i){void 0===i&&(i=1),e(this,f);for(var r=[],o=0|Math.max(0,Math.ceil((n-t)/i)),s=t;s<o;s++)r.push(t+s*i);return r}).bind(void 0),function(){var t=this;e(this,f);var n=function(){return e(this,t),{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}}.bind(this);try{return new MouseEvent("t"),function(i,r,o){void 0===o&&(o=n()),e(this,t),i.dispatchEvent(new MouseEvent(r,o))}.bind(this)}catch(i){return function(i,r,o){void 0===o&&(o=n()),e(this,t);var s=h.createEvent("MouseEvent");s.initMouseEvent(r,o.bubbles,o.cancelable,u,0,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),i.dispatchEvent(s)}.bind(this)}}.bind(void 0)(),function(t,n,i){e(this,f);var r=new Touch($({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},i));t.dispatchEvent(new TouchEvent(n,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}.bind(void 0);function w(t){var n,i,r,o=this,s=this.config,a=function(){e(this,o);var t=i.shift();return t&&n&&m(n)&&t in n?(n=n[t],a()):t?void 0:n}.bind(this);Object.keys(s).forEach(function(c){e(this,o),n=t,i=c.split("_"),r=a(),y(r)&&(s[c]=r)}.bind(this)),this.api&&(this.state.orgConfig=t)}var E=function(i){var r,o;function s(e){var n=i.call(this,e)||this;return n.config=void 0,n.element=void 0,n.config=new l,t(n)||t(n)}o=i,(r=s).prototype=Object.create(o.prototype),r.prototype.constructor=r,n(r,o);var a=s.prototype;return a.$beforeInit=function(){w.call(this,this.options),this.validate(),this.element=[].slice.call(document.querySelectorAll(this.config.selector)),this.overrideInternals(),this.overrideOptions(),this.overHandler=this.overHandler.bind(this),this.moveHandler=this.moveHandler.bind(this),this.outHandler=this.outHandler.bind(this)},a.validate=function(){var e=this.$$,t=this.config,n="";if(t.selector&&document.querySelector(t.selector)||(n="No holder elements found from given selector option."),(e.hasType("bubble")||e.hasType("scatter")||e.hasArcType(e.data.targets))&&(n="Contains non supported chart types."),n)throw new Error("[Sparkline plugin] "+n)},a.overrideInternals=function(){var e=this.$$,t=e.getBarW,n=e.getIndices;e.getIndices=function(e,t,i){return"getShapeX"===i?{}:n.call(this,e,t)},e.getBarW=function(e,n){return t.call(this,e,n,1)}},a.overrideOptions=function(){var t=this,n=this.$$.config;if(n.legend_show=!1,n.resize_auto=!1,n.axis_x_show=!1,!1!==n.padding){var i=function(n){return e(this,t),Object.keys(n||{}).length>0}.bind(this);i(n.axis_x_padding)&&(n.axis_x_padding={left:15,right:15,unit:"px"}),i(n.axis_y_padding)&&(n.axis_y_padding=5)}n.axis_y_show=!1,n.tooltip_position||(n.tooltip_position=function(e,t,n){var i=this.internal.state.event,r=i.pageY-1.35*n,o=i.pageX-t/2;return r<0&&(r=0),o<0&&(o=0),{top:r,left:o}})},a.$init=function(){var e,t=this.$$.$el;t.chart.style("width","0").style("height","0").style("pointer-events","none"),(null==(e=t.tooltip)?void 0:e.node())&&document.body.appendChild(t.tooltip.node())},a.$afterInit=function(){this.$$.$el.svg.attr("style",null).style("width","0").style("height","0"),this.bindEvents(!0)},a.bindEvents=function(t){var n=this;void 0===t&&(t=!0);var i=this.$$.config;if(i.interaction_enabled&&i.tooltip_show){var r=(t?"add":"remove")+"EventListener";this.element.forEach(function(t){e(this,n);var i=t.querySelector("svg");i[r]("mouseover",this.overHandler),i[r]("mousemove",this.moveHandler),i[r]("mouseout",this.outHandler)}.bind(this))}},a.overHandler=function(e){this.$$.state.eventReceiver.rect=e.target.getBoundingClientRect()},a.moveHandler=function(e){var t,n,i=this.$$,r=i.getDataIndexFromEvent(e),o=null==(t=i.api.data(e.target.__id))?void 0:t[0],s=null==o||null==(n=o.values)?void 0:n[r];s&&!s.name&&(s.name=s.id),i.state.event=e,i.setExpand(r,o.id,!0),i.showTooltip([s],e.target)},a.outHandler=function(e){var t=this.$$;t.state.event=e,t.unexpandCircles(),t.hideTooltip()},a.$redraw=function(){var t,n=this.$$,i=n.$el,r=this.element,o=n.api.data(),s=null==(t=i.chart.html().match(/<svg[^>]*>/))?void 0:t[0],a=this;if(r.length<o.length){for(var b=i.chart.node(),l=o.length-r.length;l>0;l--)b.parentNode.insertBefore(r[0].cloneNode(),b.nextSibling);this.element=document.querySelectorAll(this.config.selector),r=this.element}o.map(function(t){return e(this,a),t.id}.bind(this)).forEach(function(t,n){e(this,a);var o="."+c.target+"-"+t,b=i.main.selectAll(o),l=r[n].querySelector("svg");l||(r[n].innerHTML=s+"</svg>",(l=r[n].querySelector("svg")).__id=t),l.querySelector(o)||b.style("opacity",null),b.style("fill","none").style("opacity",null),l.innerHTML="",l.appendChild(b.node())}.bind(this))},a.$willDestroy=function(){var t=this;this.bindEvents(!1),this.element.forEach(function(n){e(this,t),n.innerHTML=""}.bind(this))},s}(b);E.version="0.0.1"}(),o=o.default}()}));
12
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("d3-selection"),require("d3-brush")):"function"==typeof define&&define.amd?define("bb",["d3-selection","d3-brush"],t):"object"==typeof exports?exports.bb=t(require("d3-selection"),require("d3-brush")):(e.bb=e.bb||{},e.bb.plugin=e.bb.plugin||{},e.bb.plugin.sparkline=t(e.d3,e.d3))}(this,(function(e,t){return function(){"use strict";var n=[,function(t){t.exports=e},,function(e){e.exports=t}],i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={exports:{}};return n[e](o,o.exports,r),o.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var o={};return function(){function e(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")}function t(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function a(e){for(var t,n=1;n<arguments.length;n++)t=null!=arguments[n]?arguments[n]:{},n%2?s(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}r.d(o,{default:function(){return E}});var c={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},b=(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a(a({},c),{arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title"}),{area:"bb-area",areas:"bb-areas"}),{axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label"}),{bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"}),{candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"}),{chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"}),{colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"}),{dragarea:"bb-dragarea",INCLUDED:"_included_"}),{chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"}),{legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"}),{chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"}),{eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"}),{focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"}),{grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"}),{chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"}),{region:"bb-region",regions:"bb-regions"}),{selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"}),{shape:"bb-shape",shapes:"bb-shapes"}),{brush:"bb-brush",subchart:"bb-subchart"}),{chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"}),{tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"}),{buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"}),function(){function t(e){void 0===e&&(e={}),this.$$=void 0,this.options=void 0,this.options=e}var n=t.prototype;return n.$beforeInit=function(){},n.$init=function(){},n.$afterInit=function(){},n.$redraw=function(){},n.$willDestroy=function(){var t=this;Object.keys(this).forEach(function(n){e(this,t),this[n]=null,delete this[n]}.bind(this))},t}());b.version="3.6.3";var l=function(){return{selector:void 0}},d=(r(1),r(3),void 0),u=function(){return e(this,d),"object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")()}.bind(void 0)();u.requestIdleCallback=u.requestIdleCallback||function(t){return e(this,d),setTimeout(t,1)}.bind(void 0),u.requestAnimationFrame=u.requestAnimationFrame||function(t){return e(this,d),setTimeout(t,1)}.bind(void 0);var h=null==u?void 0:u.document,f=void 0;(function(t){return e(this,f),t||0===t}).bind(void 0),function(t){return e(this,f),"function"==typeof t}.bind(void 0);var v=function(t){return e(this,f),"string"==typeof t}.bind(void 0),g=function(t){return e(this,f),"number"==typeof t}.bind(void 0),p=function(t){return e(this,f),void 0===t}.bind(void 0),y=function(t){return e(this,f),void 0!==t}.bind(void 0),m=(function(t){return e(this,f),"boolean"==typeof t}.bind(void 0),function(t){return e(this,f),10*Math.ceil(t/10)}.bind(void 0),function(t){return e(this,f),Math.ceil(t)+.5}.bind(void 0),function(t){return e(this,f),t[1]-t[0]}.bind(void 0),function(t){return e(this,f),"object"==typeof t}.bind(void 0)),x=function(t){return e(this,f),p(t)||null===t||v(t)&&0===t.length||m(t)&&!(t instanceof Date)&&0===Object.keys(t).length||g(t)&&isNaN(t)}.bind(void 0),O=(function(t){return e(this,f),!x(t)}.bind(void 0),function(t){return e(this,f),Array.isArray(t)}.bind(void 0)),j=function(t){return e(this,f),t&&!(null!=t&&t.nodeType)&&m(t)&&!O(t)}.bind(void 0);(function(t){return e(this,f),t.charAt(0).toUpperCase()+t.slice(1)}).bind(void 0);(function(t){return e(this,f),[].slice.call(t)}).bind(void 0);function $(t){for(var n=this,i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];if(!r.length||1===r.length&&!r[0])return t;var s=r.shift();return j(t)&&j(s)&&Object.keys(s).forEach(function(i){e(this,n);var r=s[i];j(r)?(t[i]||(t[i]={}),t[i]=$(t[i],r)):t[i]=O(r)?r.concat():r}.bind(this)),$.apply(void 0,[t].concat(r))}(function(t,n,i){void 0===i&&(i=1),e(this,f);for(var r=[],o=0|Math.max(0,Math.ceil((n-t)/i)),s=t;s<o;s++)r.push(t+s*i);return r}).bind(void 0),function(){var t=this;e(this,f);var n=function(){return e(this,t),{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}}.bind(this);try{return new MouseEvent("t"),function(i,r,o){void 0===o&&(o=n()),e(this,t),i.dispatchEvent(new MouseEvent(r,o))}.bind(this)}catch(i){return function(i,r,o){void 0===o&&(o=n()),e(this,t);var s=h.createEvent("MouseEvent");s.initMouseEvent(r,o.bubbles,o.cancelable,u,0,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),i.dispatchEvent(s)}.bind(this)}}.bind(void 0)(),function(t,n,i){e(this,f);var r=new Touch($({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},i));t.dispatchEvent(new TouchEvent(n,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}.bind(void 0);function w(t){var n,i,r,o=this,s=this.config,a=function(){e(this,o);var t=i.shift();return t&&n&&m(n)&&t in n?(n=n[t],a()):t?void 0:n}.bind(this);Object.keys(s).forEach(function(c){e(this,o),n=t,i=c.split("_"),r=a(),y(r)&&(s[c]=r)}.bind(this)),this.api&&(this.state.orgConfig=t)}var E=function(i){var r,o;function s(e){var n=i.call(this,e)||this;return n.config=void 0,n.element=void 0,n.config=new l,t(n)||t(n)}o=i,(r=s).prototype=Object.create(o.prototype),r.prototype.constructor=r,n(r,o);var a=s.prototype;return a.$beforeInit=function(){w.call(this,this.options),this.validate(),this.element=[].slice.call(document.querySelectorAll(this.config.selector)),this.overrideInternals(),this.overrideOptions(),this.overHandler=this.overHandler.bind(this),this.moveHandler=this.moveHandler.bind(this),this.outHandler=this.outHandler.bind(this)},a.validate=function(){var e=this.$$,t=this.config,n="";if(t.selector&&document.querySelector(t.selector)||(n="No holder elements found from given selector option."),(e.hasType("bubble")||e.hasType("scatter")||e.hasArcType(e.data.targets))&&(n="Contains non supported chart types."),n)throw new Error("[Sparkline plugin] "+n)},a.overrideInternals=function(){var e=this.$$,t=e.getBarW,n=e.getIndices;e.getIndices=function(e,t,i){return"getShapeX"===i?{}:n.call(this,e,t)},e.getBarW=function(e,n){return t.call(this,e,n,1)}},a.overrideOptions=function(){var t=this,n=this.$$.config;if(n.legend_show=!1,n.resize_auto=!1,n.axis_x_show=!1,!1!==n.padding){var i=function(n){return e(this,t),Object.keys(n||{}).length>0}.bind(this);i(n.axis_x_padding)&&(n.axis_x_padding={left:15,right:15,unit:"px"}),i(n.axis_y_padding)&&(n.axis_y_padding=5)}n.axis_y_show=!1,n.tooltip_position||(n.tooltip_position=function(e,t,n){var i=this.internal.state.event,r=i.pageY-1.35*n,o=i.pageX-t/2;return r<0&&(r=0),o<0&&(o=0),{top:r,left:o}})},a.$init=function(){var e,t=this.$$.$el;t.chart.style("width","0").style("height","0").style("pointer-events","none"),(null==(e=t.tooltip)?void 0:e.node())&&document.body.appendChild(t.tooltip.node())},a.$afterInit=function(){this.$$.$el.svg.attr("style",null).style("width","0").style("height","0"),this.bindEvents(!0)},a.bindEvents=function(t){var n=this;void 0===t&&(t=!0);var i=this.$$.config;if(i.interaction_enabled&&i.tooltip_show){var r=(t?"add":"remove")+"EventListener";this.element.forEach(function(t){e(this,n);var i=t.querySelector("svg");i[r]("mouseover",this.overHandler),i[r]("mousemove",this.moveHandler),i[r]("mouseout",this.outHandler)}.bind(this))}},a.overHandler=function(e){this.$$.state.eventReceiver.rect=e.target.getBoundingClientRect()},a.moveHandler=function(e){var t,n,i=this.$$,r=i.getDataIndexFromEvent(e),o=null==(t=i.api.data(e.target.__id))?void 0:t[0],s=null==o||null==(n=o.values)?void 0:n[r];s&&!s.name&&(s.name=s.id),i.state.event=e,i.setExpand(r,o.id,!0),i.showTooltip([s],e.target)},a.outHandler=function(e){var t=this.$$;t.state.event=e,t.unexpandCircles(),t.hideTooltip()},a.$redraw=function(){var t,n=this.$$,i=n.$el,r=this.element,o=n.api.data(),s=null==(t=i.chart.html().match(/<svg[^>]*>/))?void 0:t[0],a=this;if(r.length<o.length){for(var b=i.chart.node(),l=o.length-r.length;l>0;l--)b.parentNode.insertBefore(r[0].cloneNode(),b.nextSibling);this.element=document.querySelectorAll(this.config.selector),r=this.element}o.map(function(t){return e(this,a),t.id}.bind(this)).forEach(function(t,n){e(this,a);var o="."+c.target+"-"+t,b=i.main.selectAll(o),l=r[n].querySelector("svg");l||(r[n].innerHTML=s+"</svg>",(l=r[n].querySelector("svg")).__id=t),l.querySelector(o)||b.style("opacity",null),b.style("fill","none").style("opacity",null),l.innerHTML="",l.appendChild(b.node())}.bind(this))},a.$willDestroy=function(){var t=this;this.bindEvents(!1),this.element.forEach(function(n){e(this,t),n.innerHTML=""}.bind(this))},s}(b);E.version="0.0.1"}(),o=o.default}()}));
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.6.1
8
+ * @version 3.6.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -1338,7 +1338,7 @@ var Plugin = /*#__PURE__*/function () {
1338
1338
  };
1339
1339
  return Plugin;
1340
1340
  }();
1341
- Plugin.version = "3.6.1";
1341
+ Plugin.version = "3.6.3";
1342
1342
 
1343
1343
  ;// CONCATENATED MODULE: ./src/Plugin/stanford/Options.ts
1344
1344
  /**
@@ -5,8 +5,8 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.6.1
8
+ * @version 3.6.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-interpolate"),require("d3-color"),require("d3-scale"),require("d3-selection"),require("d3-brush"),require("d3-axis"),require("d3-format")):"function"==typeof define&&define.amd?define("bb",["d3-interpolate","d3-color","d3-scale","d3-selection","d3-brush","d3-axis","d3-format"],e):"object"==typeof exports?exports.bb=e(require("d3-interpolate"),require("d3-color"),require("d3-scale"),require("d3-selection"),require("d3-brush"),require("d3-axis"),require("d3-format")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.stanford=e(t.d3,t.d3,t.d3,t.d3,t.d3,t.d3,t.d3))}(this,(function(t,e,i,n,r,o,a){return function(){"use strict";var s=[,function(t){t.exports=n},,function(t){t.exports=r},,function(e){e.exports=t},function(t){t.exports=e},function(t){t.exports=i},function(t){t.exports=o},function(t){t.exports=a}],c={};function l(t){var e=c[t];if(void 0!==e)return e.exports;var i=c[t]={exports:{}};return s[t](i,i.exports,l),i.exports}l.d=function(t,e){for(var i in e)l.o(e,i)&&!l.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var d={};return function(){function t(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}l.d(d,{default:function(){return Y}});var n=l(5),r=l(6),o=l(7);function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function c(t){for(var e,i=1;i<arguments.length;i++)e=null!=arguments[i]?arguments[i]:{},i%2?s(Object(e),!0).forEach((function(i){a(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}));return t}var b={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},u=(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c({},{button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"}),{arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title"}),{area:"bb-area",areas:"bb-areas"}),{axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label"}),{bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"}),{candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"}),{chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"}),{colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"}),{dragarea:"bb-dragarea",INCLUDED:"_included_"}),{chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"}),{legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"}),{chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"}),{eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"}),{focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"}),{grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"}),{chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"}),{region:"bb-region",regions:"bb-regions"}),{selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"}),{shape:"bb-shape",shapes:"bb-shapes"}),{brush:"bb-brush",subchart:"bb-subchart"}),{chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"}),b),{buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"}),l(1),l(3),void 0),h=function(){return t(this,u),"object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")()}.bind(void 0)();h.requestIdleCallback=h.requestIdleCallback||function(e){return t(this,u),setTimeout(e,1)}.bind(void 0),h.requestAnimationFrame=h.requestAnimationFrame||function(e){return t(this,u),setTimeout(e,1)}.bind(void 0);var f=null==h?void 0:h.document,p=void 0;(function(e){return t(this,p),e||0===e}).bind(void 0);var g=function(e){return t(this,p),"function"==typeof e}.bind(void 0),v=function(e){return t(this,p),"string"==typeof e}.bind(void 0),x=function(e){return t(this,p),"number"==typeof e}.bind(void 0),y=function(e){return t(this,p),void 0===e}.bind(void 0),m=function(e){return t(this,p),void 0!==e}.bind(void 0),w=(function(e){return t(this,p),"boolean"==typeof e}.bind(void 0),function(e){return t(this,p),10*Math.ceil(e/10)}.bind(void 0),function(e){return t(this,p),Math.ceil(e)+.5}.bind(void 0),function(e){return t(this,p),e[1]-e[0]}.bind(void 0),function(e){return t(this,p),"object"==typeof e}.bind(void 0)),S=function(e){return t(this,p),y(e)||null===e||v(e)&&0===e.length||w(e)&&!(e instanceof Date)&&0===Object.keys(e).length||x(e)&&isNaN(e)}.bind(void 0),_=(function(e){return t(this,p),!S(e)}.bind(void 0),function(e){return t(this,p),Array.isArray(e)}.bind(void 0)),O=function(e){return t(this,p),e&&!(null!=e&&e.nodeType)&&w(e)&&!_(e)}.bind(void 0);(function(e){return t(this,p),e.charAt(0).toUpperCase()+e.slice(1)}).bind(void 0);(function(e){return t(this,p),[].slice.call(e)}).bind(void 0);function E(e){for(var i=this,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(!r.length||1===r.length&&!r[0])return e;var a=r.shift();return O(e)&&O(a)&&Object.keys(a).forEach(function(n){t(this,i);var r=a[n];O(r)?(e[n]||(e[n]={}),e[n]=E(e[n],r)):e[n]=_(r)?r.concat():r}.bind(this)),E.apply(void 0,[e].concat(r))}var j=function(e,i,n){void 0===n&&(n=1),t(this,p);for(var r=[],o=0|Math.max(0,Math.ceil((i-e)/n)),a=e;a<o;a++)r.push(e+a*n);return r}.bind(void 0);(function(){var e=this;t(this,p);var i=function(){return t(this,e),{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}}.bind(this);try{return new MouseEvent("t"),function(n,r,o){void 0===o&&(o=i()),t(this,e),n.dispatchEvent(new MouseEvent(r,o))}.bind(this)}catch(n){return function(n,r,o){void 0===o&&(o=i()),t(this,e);var a=f.createEvent("MouseEvent");a.initMouseEvent(r,o.bubbles,o.cancelable,h,0,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(a)}.bind(this)}}).bind(void 0)(),function(e,i,n){t(this,p);var r=new Touch(E({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(i,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}.bind(void 0);function C(t){var e;if(t instanceof Date)e=t;else if(v(t)){var i,n=this.config;e=null!=(i=this.format.dataTime(n.data_xFormat)(t))?i:new Date(t)}else x(t)&&!isNaN(t)&&(e=new Date(+t));return e&&!isNaN(+e)||console&&console.error&&console.error("Failed to parse x '"+t+"' to Date object"),e}function $(e){var i,n,r,o=this,a=this.config,s=function(){t(this,o);var e=n.shift();return e&&i&&w(i)&&e in i?(i=i[e],s()):e?void 0:i}.bind(this);Object.keys(a).forEach(function(c){t(this,o),i=e,n=c.split("_"),r=s(),m(r)&&(a[c]=r)}.bind(this)),this.api&&(this.state.orgConfig=e)}var M=function(){function e(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var i=e.prototype;return i.$beforeInit=function(){},i.$init=function(){},i.$afterInit=function(){},i.$redraw=function(){},i.$willDestroy=function(){var e=this;Object.keys(this).forEach(function(i){t(this,e),this[i]=null,delete this[i]}.bind(this))},e}();M.version="3.6.1";var k=function(){return{colors:void 0,epochs:[],lines:[],scale_min:void 0,scale_max:void 0,scale_width:20,scale_format:void 0,padding_top:0,padding_right:0,padding_bottom:0,padding_left:0,regions:[]}},T="bb-colorscale",D="bb-stanford-elements",P="bb-stanford-line",L="bb-stanford-lines",q="bb-stanford-region",A="bb-stanford-regions";function F(t,e){return t.epochs<e.epochs?-1:t.epochs>e.epochs?1:0}function N(t){for(var e,i=function(t){for(var e,i,n=0,r=0,o=t.length,a=o-1;r<o;a=r,r++)e=t[r],i=t[a],n+=e.x*i.y,n-=e.y*i.x;return n/2}(t),n=0,r=0,o=0,a=t.length,s=a-1;o<a;s=o,o++){var c=t[o],l=t[s];e=c.x*l.y-l.x*c.y,n+=(c.x+l.x)*e,r+=(c.y+l.y)*e}return{x:n/(e=6*i),y:r/e}}var R=function(){function e(t){this.owner=void 0,this.owner=t;var e=t.$$.$el.main.select(".bb-chart").append("g").attr("class",D);e.append("g").attr("class",L),e.append("g").attr("class",A)}var i=e.prototype;return i.updateStanfordLines=function(e){var i=this,n=this.owner.$$,r=n.config,o=n.$el.main,a=r.axis_rotated,s=this.xvCustom.bind(n),c=this.yvCustom.bind(n),l=o.select("."+L).style("shape-rendering","geometricprecision").selectAll("."+P).data(this.owner.config.lines);l.exit().transition().duration(e).style("opacity","0").remove();var d=l.enter().append("g");d.append("line").style("opacity","0"),d.merge(l).attr("class",function(e){return t(this,i),P+(e.class?" "+e.class:"")}.bind(this)).select("line").transition().duration(e).attr("x1",function(e){return t(this,i),a?c(e,"y1"):s(e,"x1")}.bind(this)).attr("x2",function(e){return t(this,i),a?c(e,"y2"):s(e,"x2")}.bind(this)).attr("y1",function(e){return t(this,i),a?s(e,"x1"):c(e,"y1")}.bind(this)).attr("y2",function(e){return t(this,i),a?s(e,"x2"):c(e,"y2")}.bind(this)).transition().style("opacity",null)},i.updateStanfordRegions=function(e){var i=this,n=this.owner.$$,r=n.config,o=n.$el.main,a=r.axis_rotated,s=this.xvCustom.bind(n),c=this.yvCustom.bind(n),l=this.owner.countEpochsInRegion.bind(n),d=o.select("."+A).selectAll("."+q).data(this.owner.config.regions);d.exit().transition().duration(e).style("opacity","0").remove();var b=d.enter().append("g");b.append("polygon").style("opacity","0"),b.append("text").attr("transform",a?"rotate(-90)":"").style("opacity","0"),(d=b.merge(d)).attr("class",function(e){return t(this,i),q+(e.class?" "+e.class:"")}.bind(this)).select("polygon").transition().duration(e).attr("points",function(e){var n=this;return t(this,i),e.points.map(function(e){return t(this,n),[a?c(e,"y"):s(e,"x"),a?s(e,"x"):c(e,"y")].join(",")}.bind(this)).join(" ")}.bind(this)).transition().style("opacity",function(e){return t(this,i),(e.opacity?e.opacity:.2)+""}.bind(this)),d.select("text").transition().duration(e).attr("x",function(e){return t(this,i),a?c(N(e.points),"y"):s(N(e.points),"x")}.bind(this)).attr("y",function(e){return t(this,i),a?s(N(e.points),"x"):c(N(e.points),"y")}.bind(this)).text(function(e){if(t(this,i),e.text){var n=l(e.points),r=n.value,o=n.percentage;return e.text(r,o)}return""}.bind(this)).attr("text-anchor","middle").attr("dominant-baseline","middle").transition().style("opacity",null)},i.updateStanfordElements=function(t){void 0===t&&(t=0),this.updateStanfordLines(t),this.updateStanfordRegions(t)},i.xvCustom=function(t,e){var i=this,n=i.axis,r=i.config,o=e?t[e]:i.getBaseValue(t);return n.isTimeSeries()?o=C.call(i,o):n.isCategorized()&&v(o)&&(o=r.axis_x_categories.indexOf(t.value)),Math.ceil(i.scale.x(o))},i.yvCustom=function(t,e){var i=this,n=t.axis&&"y2"===t.axis?i.scale.y2:i.scale.y,r=e?t[e]:i.getBaseValue(t);return Math.ceil(n(r))},e}(),I=l(8),B=l(9),X=function(){function e(t){this.owner=void 0,this.colorScale=void 0,this.owner=t}var i=e.prototype;return i.drawColorScale=function(){var e=this,i=this.owner,n=i.$$,r=i.config,a=n.data.targets[0],s=n.state.height-r.padding_bottom-r.padding_top,c=r.scale_width,l=j(r.padding_bottom,s,5),d=(0,o.scaleSequential)(a.colors).domain([l[l.length-1],l[0]]);this.colorScale&&this.colorScale.remove(),this.colorScale=n.$el.svg.append("g").attr("width",50).attr("height",s).attr("class",T),this.colorScale.append("g").attr("transform","translate(0, "+r.padding_top+")").selectAll("bars").data(l).enter().append("rect").attr("y",function(i,n){return t(this,e),5*n}.bind(this)).attr("x",0).attr("width",c).attr("height",5).attr("fill",function(i){return t(this,e),d(i)}.bind(this));var b=(0,o.scaleLog)().domain([a.minEpochs,a.maxEpochs]).range([l[0]+r.padding_top+l[l.length-1]+5-1,l[0]+r.padding_top]),u=(0,I.axisRight)(b),h=r.scale_format;"pow10"===h?u.tickValues([1,10,100,1e3,1e4,1e5,1e6,1e7]):g(h)?u.tickFormat(h):u.tickFormat((0,B.format)("d"));var f=this.colorScale.append("g").attr("class","legend axis").attr("transform","translate("+c+",0)").call(u);"pow10"===h&&f.selectAll(".tick text").text(null).filter(function(i){return t(this,e),i/Math.pow(10,Math.ceil(Math.log(i)/Math.LN10-1e-12))==1}.bind(this)).text(10).append("tspan").attr("dy","-.7em").text(function(i){return t(this,e),Math.round(Math.log(i)/Math.LN10)}.bind(this)),this.colorScale.attr("transform","translate("+(n.state.current.width-this.xForColorScale())+", 0)")},i.xForColorScale=function(){return this.owner.config.padding_right+this.colorScale.node().getBBox().width},i.getColorScalePadding=function(){return this.xForColorScale()+this.owner.config.padding_left+20},e}(),Y=function(a){var s,c;function l(t){var i=a.call(this,t)||this;return i.config=void 0,i.colorScale=void 0,i.elements=void 0,i.config=new k,e(i)||e(i)}c=a,(s=l).prototype=Object.create(c.prototype),s.prototype.constructor=s,i(s,c);var d=l.prototype;return d.$beforeInit=function(){var e=this,i=this.$$;i.config.data_xSort=!1,i.isMultipleX=function(){return t(this,e),!0}.bind(this),i.showGridFocus=function(){t(this,e)}.bind(this),i.labelishData=function(i){return t(this,e),i.values}.bind(this),i.opacityForCircle=function(){return t(this,e),1}.bind(this);var n=i.getCurrentPaddingRight.bind(i);i.getCurrentPaddingRight=function(){return t(this,e),n()+(this.colorScale?this.colorScale.getColorScalePadding():0)}.bind(this)},d.$init=function(){var t=this.$$;$.call(this,this.options),t.color=this.getStanfordPointColor.bind(t),this.colorScale=new X(this),this.elements=new R(this),this.convertData(),this.initStanfordData(),this.setStanfordTooltip(),this.colorScale.drawColorScale(),this.$redraw()},d.$redraw=function(t){var e,i;null==(e=this.colorScale)||e.drawColorScale(),null==(i=this.elements)||i.updateStanfordElements(t)},d.getOptions=function(){return new k},d.convertData=function(){var e=this,i=this.$$.data.targets,n=this.options.epochs;i.forEach(function(i){var r=this;t(this,e),i.values.forEach(function(e,i){t(this,r),e.epochs=n[i]}.bind(this)),i.minEpochs=void 0,i.maxEpochs=void 0,i.colors=void 0,i.colorscale=void 0}.bind(this))},d.xvCustom=function(t,e){var i=this,n=i.axis,r=i.config,o=e?t[e]:i.getBaseValue(t);return n.isTimeSeries()?o=C.call(i,o):n.isCategorized()&&v(o)&&(o=r.axis_x_categories.indexOf(t.value)),Math.ceil(i.scale.x(o))},d.yvCustom=function(t,e){var i=this.scale,n=t.axis&&"y2"===t.axis?i.y2:i.y,r=e?t[e]:this.getBaseValue(t);return Math.ceil(n(r))},d.initStanfordData=function(){var e=this,i=this.config,a=this.$$.data.targets[0];a.values.sort(F);var s=a.values.map(function(i){return t(this,e),i.epochs}.bind(this));a.minEpochs=isNaN(i.scale_min)?Math.min.apply(Math,s):i.scale_min,a.maxEpochs=isNaN(i.scale_max)?Math.max.apply(Math,s):i.scale_max,a.colors=g(i.colors)?i.colors:(0,n.interpolateHslLong)((0,r.hsl)(250,1,.5),(0,r.hsl)(0,1,.5)),a.colorscale=(0,o.scaleSequentialLog)(a.colors).domain([a.minEpochs,a.maxEpochs])},d.getStanfordPointColor=function(t){return this.data.targets[0].colorscale(t.epochs)},d.setStanfordTooltip=function(){var e=this.$$.config;S(e.tooltip_contents)&&(e.tooltip_contents=function(i,n,r,o){var a=this,s=e.data_x,c='<table class="'+b.tooltip+'"><tbody>';return i.forEach(function(e){t(this,a);var i=e.id,l=void 0===i?"":i,d=e.value,u=void 0===d?0:d,h=e.epochs,f=void 0===h?0:h,p=e.x;c+="<tr>\n\t\t\t\t\t\t\t<th>"+(s||"")+'</th>\n\t\t\t\t\t\t\t<th class="value">'+n(void 0===p?"":p)+"</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th>"+e.id+'</th>\n\t\t\t\t\t\t\t<th class="value">'+r(u)+'</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr class="'+b.tooltipName+"-"+l+'">\n\t\t\t\t\t\t\t<td class="name"><span style="background-color:'+o(e)+'"></span>Epochs</td>\n\t\t\t\t\t\t\t<td class="value">'+r(f)+"</td>\n\t\t\t\t\t\t</tr>"}.bind(this)),c+"</tbody></table>"})},d.countEpochsInRegion=function(e){var i=this,n=this.data.targets[0],r=n.values.reduce(function(e,n){return t(this,i),e+ +n.epochs}.bind(this),0),o=n.values.reduce(function(n,r){return t(this,i),function(t,e){for(var i=t.x,n=t.value,r=!1,o=0,a=e.length-1;o<e.length;a=o++){var s=e[o].x,c=e[o].y,l=e[a].x,d=e[a].y;c>n!=d>n&&i<(l-s)*(n-c)/(d-c)+s&&(r=!r)}return r}(r,e)?n+ +r.epochs:n}.bind(this),0);return{value:o,percentage:0!==o?+(o/r*100).toFixed(1):0}},l}(M)}(),d=d.default}()}));
12
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-interpolate"),require("d3-color"),require("d3-scale"),require("d3-selection"),require("d3-brush"),require("d3-axis"),require("d3-format")):"function"==typeof define&&define.amd?define("bb",["d3-interpolate","d3-color","d3-scale","d3-selection","d3-brush","d3-axis","d3-format"],e):"object"==typeof exports?exports.bb=e(require("d3-interpolate"),require("d3-color"),require("d3-scale"),require("d3-selection"),require("d3-brush"),require("d3-axis"),require("d3-format")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.stanford=e(t.d3,t.d3,t.d3,t.d3,t.d3,t.d3,t.d3))}(this,(function(t,e,i,n,r,o,a){return function(){"use strict";var s=[,function(t){t.exports=n},,function(t){t.exports=r},,function(e){e.exports=t},function(t){t.exports=e},function(t){t.exports=i},function(t){t.exports=o},function(t){t.exports=a}],c={};function l(t){var e=c[t];if(void 0!==e)return e.exports;var i=c[t]={exports:{}};return s[t](i,i.exports,l),i.exports}l.d=function(t,e){for(var i in e)l.o(e,i)&&!l.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},l.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var d={};return function(){function t(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}l.d(d,{default:function(){return Y}});var n=l(5),r=l(6),o=l(7);function a(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function c(t){for(var e,i=1;i<arguments.length;i++)e=null!=arguments[i]?arguments[i]:{},i%2?s(Object(e),!0).forEach((function(i){a(t,i,e[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):s(Object(e)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}));return t}var b={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},u=(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c({},{button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"}),{arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title"}),{area:"bb-area",areas:"bb-areas"}),{axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label"}),{bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"}),{candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"}),{chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"}),{colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"}),{dragarea:"bb-dragarea",INCLUDED:"_included_"}),{chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"}),{legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"}),{chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"}),{eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"}),{focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"}),{grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"}),{chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"}),{region:"bb-region",regions:"bb-regions"}),{selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"}),{shape:"bb-shape",shapes:"bb-shapes"}),{brush:"bb-brush",subchart:"bb-subchart"}),{chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"}),b),{buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"}),l(1),l(3),void 0),h=function(){return t(this,u),"object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")()}.bind(void 0)();h.requestIdleCallback=h.requestIdleCallback||function(e){return t(this,u),setTimeout(e,1)}.bind(void 0),h.requestAnimationFrame=h.requestAnimationFrame||function(e){return t(this,u),setTimeout(e,1)}.bind(void 0);var f=null==h?void 0:h.document,p=void 0;(function(e){return t(this,p),e||0===e}).bind(void 0);var g=function(e){return t(this,p),"function"==typeof e}.bind(void 0),v=function(e){return t(this,p),"string"==typeof e}.bind(void 0),x=function(e){return t(this,p),"number"==typeof e}.bind(void 0),y=function(e){return t(this,p),void 0===e}.bind(void 0),m=function(e){return t(this,p),void 0!==e}.bind(void 0),w=(function(e){return t(this,p),"boolean"==typeof e}.bind(void 0),function(e){return t(this,p),10*Math.ceil(e/10)}.bind(void 0),function(e){return t(this,p),Math.ceil(e)+.5}.bind(void 0),function(e){return t(this,p),e[1]-e[0]}.bind(void 0),function(e){return t(this,p),"object"==typeof e}.bind(void 0)),S=function(e){return t(this,p),y(e)||null===e||v(e)&&0===e.length||w(e)&&!(e instanceof Date)&&0===Object.keys(e).length||x(e)&&isNaN(e)}.bind(void 0),_=(function(e){return t(this,p),!S(e)}.bind(void 0),function(e){return t(this,p),Array.isArray(e)}.bind(void 0)),O=function(e){return t(this,p),e&&!(null!=e&&e.nodeType)&&w(e)&&!_(e)}.bind(void 0);(function(e){return t(this,p),e.charAt(0).toUpperCase()+e.slice(1)}).bind(void 0);(function(e){return t(this,p),[].slice.call(e)}).bind(void 0);function E(e){for(var i=this,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(!r.length||1===r.length&&!r[0])return e;var a=r.shift();return O(e)&&O(a)&&Object.keys(a).forEach(function(n){t(this,i);var r=a[n];O(r)?(e[n]||(e[n]={}),e[n]=E(e[n],r)):e[n]=_(r)?r.concat():r}.bind(this)),E.apply(void 0,[e].concat(r))}var j=function(e,i,n){void 0===n&&(n=1),t(this,p);for(var r=[],o=0|Math.max(0,Math.ceil((i-e)/n)),a=e;a<o;a++)r.push(e+a*n);return r}.bind(void 0);(function(){var e=this;t(this,p);var i=function(){return t(this,e),{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}}.bind(this);try{return new MouseEvent("t"),function(n,r,o){void 0===o&&(o=i()),t(this,e),n.dispatchEvent(new MouseEvent(r,o))}.bind(this)}catch(n){return function(n,r,o){void 0===o&&(o=i()),t(this,e);var a=f.createEvent("MouseEvent");a.initMouseEvent(r,o.bubbles,o.cancelable,h,0,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(a)}.bind(this)}}).bind(void 0)(),function(e,i,n){t(this,p);var r=new Touch(E({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(i,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}.bind(void 0);function C(t){var e;if(t instanceof Date)e=t;else if(v(t)){var i,n=this.config;e=null!=(i=this.format.dataTime(n.data_xFormat)(t))?i:new Date(t)}else x(t)&&!isNaN(t)&&(e=new Date(+t));return e&&!isNaN(+e)||console&&console.error&&console.error("Failed to parse x '"+t+"' to Date object"),e}function $(e){var i,n,r,o=this,a=this.config,s=function(){t(this,o);var e=n.shift();return e&&i&&w(i)&&e in i?(i=i[e],s()):e?void 0:i}.bind(this);Object.keys(a).forEach(function(c){t(this,o),i=e,n=c.split("_"),r=s(),m(r)&&(a[c]=r)}.bind(this)),this.api&&(this.state.orgConfig=e)}var M=function(){function e(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var i=e.prototype;return i.$beforeInit=function(){},i.$init=function(){},i.$afterInit=function(){},i.$redraw=function(){},i.$willDestroy=function(){var e=this;Object.keys(this).forEach(function(i){t(this,e),this[i]=null,delete this[i]}.bind(this))},e}();M.version="3.6.3";var k=function(){return{colors:void 0,epochs:[],lines:[],scale_min:void 0,scale_max:void 0,scale_width:20,scale_format:void 0,padding_top:0,padding_right:0,padding_bottom:0,padding_left:0,regions:[]}},T="bb-colorscale",D="bb-stanford-elements",P="bb-stanford-line",L="bb-stanford-lines",q="bb-stanford-region",A="bb-stanford-regions";function F(t,e){return t.epochs<e.epochs?-1:t.epochs>e.epochs?1:0}function N(t){for(var e,i=function(t){for(var e,i,n=0,r=0,o=t.length,a=o-1;r<o;a=r,r++)e=t[r],i=t[a],n+=e.x*i.y,n-=e.y*i.x;return n/2}(t),n=0,r=0,o=0,a=t.length,s=a-1;o<a;s=o,o++){var c=t[o],l=t[s];e=c.x*l.y-l.x*c.y,n+=(c.x+l.x)*e,r+=(c.y+l.y)*e}return{x:n/(e=6*i),y:r/e}}var R=function(){function e(t){this.owner=void 0,this.owner=t;var e=t.$$.$el.main.select(".bb-chart").append("g").attr("class",D);e.append("g").attr("class",L),e.append("g").attr("class",A)}var i=e.prototype;return i.updateStanfordLines=function(e){var i=this,n=this.owner.$$,r=n.config,o=n.$el.main,a=r.axis_rotated,s=this.xvCustom.bind(n),c=this.yvCustom.bind(n),l=o.select("."+L).style("shape-rendering","geometricprecision").selectAll("."+P).data(this.owner.config.lines);l.exit().transition().duration(e).style("opacity","0").remove();var d=l.enter().append("g");d.append("line").style("opacity","0"),d.merge(l).attr("class",function(e){return t(this,i),P+(e.class?" "+e.class:"")}.bind(this)).select("line").transition().duration(e).attr("x1",function(e){return t(this,i),a?c(e,"y1"):s(e,"x1")}.bind(this)).attr("x2",function(e){return t(this,i),a?c(e,"y2"):s(e,"x2")}.bind(this)).attr("y1",function(e){return t(this,i),a?s(e,"x1"):c(e,"y1")}.bind(this)).attr("y2",function(e){return t(this,i),a?s(e,"x2"):c(e,"y2")}.bind(this)).transition().style("opacity",null)},i.updateStanfordRegions=function(e){var i=this,n=this.owner.$$,r=n.config,o=n.$el.main,a=r.axis_rotated,s=this.xvCustom.bind(n),c=this.yvCustom.bind(n),l=this.owner.countEpochsInRegion.bind(n),d=o.select("."+A).selectAll("."+q).data(this.owner.config.regions);d.exit().transition().duration(e).style("opacity","0").remove();var b=d.enter().append("g");b.append("polygon").style("opacity","0"),b.append("text").attr("transform",a?"rotate(-90)":"").style("opacity","0"),(d=b.merge(d)).attr("class",function(e){return t(this,i),q+(e.class?" "+e.class:"")}.bind(this)).select("polygon").transition().duration(e).attr("points",function(e){var n=this;return t(this,i),e.points.map(function(e){return t(this,n),[a?c(e,"y"):s(e,"x"),a?s(e,"x"):c(e,"y")].join(",")}.bind(this)).join(" ")}.bind(this)).transition().style("opacity",function(e){return t(this,i),(e.opacity?e.opacity:.2)+""}.bind(this)),d.select("text").transition().duration(e).attr("x",function(e){return t(this,i),a?c(N(e.points),"y"):s(N(e.points),"x")}.bind(this)).attr("y",function(e){return t(this,i),a?s(N(e.points),"x"):c(N(e.points),"y")}.bind(this)).text(function(e){if(t(this,i),e.text){var n=l(e.points),r=n.value,o=n.percentage;return e.text(r,o)}return""}.bind(this)).attr("text-anchor","middle").attr("dominant-baseline","middle").transition().style("opacity",null)},i.updateStanfordElements=function(t){void 0===t&&(t=0),this.updateStanfordLines(t),this.updateStanfordRegions(t)},i.xvCustom=function(t,e){var i=this,n=i.axis,r=i.config,o=e?t[e]:i.getBaseValue(t);return n.isTimeSeries()?o=C.call(i,o):n.isCategorized()&&v(o)&&(o=r.axis_x_categories.indexOf(t.value)),Math.ceil(i.scale.x(o))},i.yvCustom=function(t,e){var i=this,n=t.axis&&"y2"===t.axis?i.scale.y2:i.scale.y,r=e?t[e]:i.getBaseValue(t);return Math.ceil(n(r))},e}(),I=l(8),B=l(9),X=function(){function e(t){this.owner=void 0,this.colorScale=void 0,this.owner=t}var i=e.prototype;return i.drawColorScale=function(){var e=this,i=this.owner,n=i.$$,r=i.config,a=n.data.targets[0],s=n.state.height-r.padding_bottom-r.padding_top,c=r.scale_width,l=j(r.padding_bottom,s,5),d=(0,o.scaleSequential)(a.colors).domain([l[l.length-1],l[0]]);this.colorScale&&this.colorScale.remove(),this.colorScale=n.$el.svg.append("g").attr("width",50).attr("height",s).attr("class",T),this.colorScale.append("g").attr("transform","translate(0, "+r.padding_top+")").selectAll("bars").data(l).enter().append("rect").attr("y",function(i,n){return t(this,e),5*n}.bind(this)).attr("x",0).attr("width",c).attr("height",5).attr("fill",function(i){return t(this,e),d(i)}.bind(this));var b=(0,o.scaleLog)().domain([a.minEpochs,a.maxEpochs]).range([l[0]+r.padding_top+l[l.length-1]+5-1,l[0]+r.padding_top]),u=(0,I.axisRight)(b),h=r.scale_format;"pow10"===h?u.tickValues([1,10,100,1e3,1e4,1e5,1e6,1e7]):g(h)?u.tickFormat(h):u.tickFormat((0,B.format)("d"));var f=this.colorScale.append("g").attr("class","legend axis").attr("transform","translate("+c+",0)").call(u);"pow10"===h&&f.selectAll(".tick text").text(null).filter(function(i){return t(this,e),i/Math.pow(10,Math.ceil(Math.log(i)/Math.LN10-1e-12))==1}.bind(this)).text(10).append("tspan").attr("dy","-.7em").text(function(i){return t(this,e),Math.round(Math.log(i)/Math.LN10)}.bind(this)),this.colorScale.attr("transform","translate("+(n.state.current.width-this.xForColorScale())+", 0)")},i.xForColorScale=function(){return this.owner.config.padding_right+this.colorScale.node().getBBox().width},i.getColorScalePadding=function(){return this.xForColorScale()+this.owner.config.padding_left+20},e}(),Y=function(a){var s,c;function l(t){var i=a.call(this,t)||this;return i.config=void 0,i.colorScale=void 0,i.elements=void 0,i.config=new k,e(i)||e(i)}c=a,(s=l).prototype=Object.create(c.prototype),s.prototype.constructor=s,i(s,c);var d=l.prototype;return d.$beforeInit=function(){var e=this,i=this.$$;i.config.data_xSort=!1,i.isMultipleX=function(){return t(this,e),!0}.bind(this),i.showGridFocus=function(){t(this,e)}.bind(this),i.labelishData=function(i){return t(this,e),i.values}.bind(this),i.opacityForCircle=function(){return t(this,e),1}.bind(this);var n=i.getCurrentPaddingRight.bind(i);i.getCurrentPaddingRight=function(){return t(this,e),n()+(this.colorScale?this.colorScale.getColorScalePadding():0)}.bind(this)},d.$init=function(){var t=this.$$;$.call(this,this.options),t.color=this.getStanfordPointColor.bind(t),this.colorScale=new X(this),this.elements=new R(this),this.convertData(),this.initStanfordData(),this.setStanfordTooltip(),this.colorScale.drawColorScale(),this.$redraw()},d.$redraw=function(t){var e,i;null==(e=this.colorScale)||e.drawColorScale(),null==(i=this.elements)||i.updateStanfordElements(t)},d.getOptions=function(){return new k},d.convertData=function(){var e=this,i=this.$$.data.targets,n=this.options.epochs;i.forEach(function(i){var r=this;t(this,e),i.values.forEach(function(e,i){t(this,r),e.epochs=n[i]}.bind(this)),i.minEpochs=void 0,i.maxEpochs=void 0,i.colors=void 0,i.colorscale=void 0}.bind(this))},d.xvCustom=function(t,e){var i=this,n=i.axis,r=i.config,o=e?t[e]:i.getBaseValue(t);return n.isTimeSeries()?o=C.call(i,o):n.isCategorized()&&v(o)&&(o=r.axis_x_categories.indexOf(t.value)),Math.ceil(i.scale.x(o))},d.yvCustom=function(t,e){var i=this.scale,n=t.axis&&"y2"===t.axis?i.y2:i.y,r=e?t[e]:this.getBaseValue(t);return Math.ceil(n(r))},d.initStanfordData=function(){var e=this,i=this.config,a=this.$$.data.targets[0];a.values.sort(F);var s=a.values.map(function(i){return t(this,e),i.epochs}.bind(this));a.minEpochs=isNaN(i.scale_min)?Math.min.apply(Math,s):i.scale_min,a.maxEpochs=isNaN(i.scale_max)?Math.max.apply(Math,s):i.scale_max,a.colors=g(i.colors)?i.colors:(0,n.interpolateHslLong)((0,r.hsl)(250,1,.5),(0,r.hsl)(0,1,.5)),a.colorscale=(0,o.scaleSequentialLog)(a.colors).domain([a.minEpochs,a.maxEpochs])},d.getStanfordPointColor=function(t){return this.data.targets[0].colorscale(t.epochs)},d.setStanfordTooltip=function(){var e=this.$$.config;S(e.tooltip_contents)&&(e.tooltip_contents=function(i,n,r,o){var a=this,s=e.data_x,c='<table class="'+b.tooltip+'"><tbody>';return i.forEach(function(e){t(this,a);var i=e.id,l=void 0===i?"":i,d=e.value,u=void 0===d?0:d,h=e.epochs,f=void 0===h?0:h,p=e.x;c+="<tr>\n\t\t\t\t\t\t\t<th>"+(s||"")+'</th>\n\t\t\t\t\t\t\t<th class="value">'+n(void 0===p?"":p)+"</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th>"+e.id+'</th>\n\t\t\t\t\t\t\t<th class="value">'+r(u)+'</th>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr class="'+b.tooltipName+"-"+l+'">\n\t\t\t\t\t\t\t<td class="name"><span style="background-color:'+o(e)+'"></span>Epochs</td>\n\t\t\t\t\t\t\t<td class="value">'+r(f)+"</td>\n\t\t\t\t\t\t</tr>"}.bind(this)),c+"</tbody></table>"})},d.countEpochsInRegion=function(e){var i=this,n=this.data.targets[0],r=n.values.reduce(function(e,n){return t(this,i),e+ +n.epochs}.bind(this),0),o=n.values.reduce(function(n,r){return t(this,i),function(t,e){for(var i=t.x,n=t.value,r=!1,o=0,a=e.length-1;o<e.length;a=o++){var s=e[o].x,c=e[o].y,l=e[a].x,d=e[a].y;c>n!=d>n&&i<(l-s)*(n-c)/(d-c)+s&&(r=!r)}return r}(r,e)?n+ +r.epochs:n}.bind(this),0);return{value:o,percentage:0!==o?+(o/r*100).toFixed(1):0}},l}(M)}(),d=d.default}()}));
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.6.1
8
+ * @version 3.6.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -205,7 +205,7 @@ var Plugin = /*#__PURE__*/function () {
205
205
  };
206
206
  return Plugin;
207
207
  }();
208
- Plugin.version = "3.6.1";
208
+ Plugin.version = "3.6.3";
209
209
 
210
210
  ;// CONCATENATED MODULE: ./src/Plugin/tableview/Options.ts
211
211
  /**
@@ -5,8 +5,8 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.6.1
8
+ * @version 3.6.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-selection"),require("d3-brush")):"function"==typeof define&&define.amd?define("bb",["d3-selection","d3-brush"],e):"object"==typeof exports?exports.bb=e(require("d3-selection"),require("d3-brush")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.tableview=e(t.d3,t.d3))}(this,(function(t,e){return function(){"use strict";var n=[,function(e){e.exports=t},,function(t){t.exports=e}],i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};return function(){function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}o.d(r,{default:function(){return q}});var c=function(){function t(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var n=t.prototype;return n.$beforeInit=function(){},n.$init=function(){},n.$afterInit=function(){},n.$redraw=function(){},n.$willDestroy=function(){var t=this;Object.keys(this).forEach(function(n){e(this,t),this[n]=null,delete this[n]}.bind(this))},t}();c.version="3.6.1";var a=function(){return{selector:void 0,categoryTitle:"Category",categoryFormat:function(t){var e=t;return this.$$.axis.isCategorized()?e=this.$$.categoryName(t):this.$$.axis.isTimeSeries()&&(e=t.toLocaleDateString()),e},class:void 0,style:!0,title:void 0,updateOnToggle:!0}},s="__tableview-style__",u="bb-tableview",l=".bb-tableview {\n\t\tborder-collapse:collapse;\n\t\tborder-spacing:0;\n\t\tbackground:#fff;\n\t\tmin-width:100%;\n\t\tmargin-top:10px;\n\t\tfont-family:sans-serif;\n\t\tfont-size:.9em;\n\t}\n\t.bb-tableview tr:hover {\n\t\tbackground:#eef7ff;\n\t}\n\t.bb-tableview thead tr {\n\t\tbackground:#f8f8f8;\n\t}\n\t.bb-tableview caption,.bb-tableview td,.bb-tableview th {\n\t\ttext-align: center;\n\t\tborder:1px solid silver;\n\t\tpadding:.5em;\n\t}\n\t.bb-tableview caption {\n\t\tfont-size:1.1em;\n\t\tfont-weight:700;\n\t\tmargin-bottom: -1px;\n\t}",d="<caption>{=title}</caption>\n\t\t<thead><tr>{=thead}</tr></thead>\n\t\t<tbody>{=tbody}</tbody>",b='<th scope="col">{=title}</th>',f='<th scope="row">{=value}</th>',h="<td>{=value}</td>",v=(o(1),o(3),void 0),p=function(){return e(this,v),"object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")()}.bind(void 0)();p.requestIdleCallback=p.requestIdleCallback||function(t){return e(this,v),setTimeout(t,1)}.bind(void 0),p.requestAnimationFrame=p.requestAnimationFrame||function(t){return e(this,v),setTimeout(t,1)}.bind(void 0);var g=null==p?void 0:p.document,y=void 0;(function(t){return e(this,y),t||0===t}).bind(void 0),function(t){return e(this,y),"function"==typeof t}.bind(void 0);var m=function(t){return e(this,y),"string"==typeof t}.bind(void 0),w=function(t){return e(this,y),"number"==typeof t}.bind(void 0),O=function(t){return e(this,y),void 0===t}.bind(void 0),j=function(t){return e(this,y),void 0!==t}.bind(void 0),E=(function(t){return e(this,y),"boolean"==typeof t}.bind(void 0),function(t){return e(this,y),10*Math.ceil(t/10)}.bind(void 0),function(t){return e(this,y),Math.ceil(t)+.5}.bind(void 0),function(t){return e(this,y),t[1]-t[0]}.bind(void 0),function(t){return e(this,y),"object"==typeof t}.bind(void 0)),$=function(t){return e(this,y),O(t)||null===t||m(t)&&0===t.length||E(t)&&!(t instanceof Date)&&0===Object.keys(t).length||w(t)&&isNaN(t)}.bind(void 0),T=(function(t){return e(this,y),!$(t)}.bind(void 0),function(t){return e(this,y),Array.isArray(t)}.bind(void 0)),x=function(t){return e(this,y),t&&!(null!=t&&t.nodeType)&&E(t)&&!T(t)}.bind(void 0);(function(t){return e(this,y),t.charAt(0).toUpperCase()+t.slice(1)}).bind(void 0);(function(t){return e(this,y),[].slice.call(t)}).bind(void 0);function P(t){for(var n=this,i=arguments.length,o=Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];if(!o.length||1===o.length&&!o[0])return t;var c=o.shift();return x(t)&&x(c)&&Object.keys(c).forEach(function(i){e(this,n);var o=c[i];x(o)?(t[i]||(t[i]={}),t[i]=P(t[i],o)):t[i]=T(o)?o.concat():o}.bind(this)),P.apply(void 0,[t].concat(o))}(function(t,n,i){void 0===i&&(i=1),e(this,y);for(var o=[],r=0|Math.max(0,Math.ceil((n-t)/i)),c=t;c<r;c++)o.push(t+c*i);return o}).bind(void 0),function(){var t=this;e(this,y);var n=function(){return e(this,t),{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}}.bind(this);try{return new MouseEvent("t"),function(i,o,r){void 0===r&&(r=n()),e(this,t),i.dispatchEvent(new MouseEvent(o,r))}.bind(this)}catch(i){return function(i,o,r){void 0===r&&(r=n()),e(this,t);var c=g.createEvent("MouseEvent");c.initMouseEvent(o,r.bubbles,r.cancelable,p,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),i.dispatchEvent(c)}.bind(this)}}.bind(void 0)(),function(t,n,i){e(this,y);var o=new Touch(P({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},i));t.dispatchEvent(new TouchEvent(n,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}.bind(void 0);function C(t,e){var n=t;for(var i in e)n=n.replace(new RegExp("{="+i+"}","g"),e[i]);return n}function k(t){var n,i,o,r=this,c=this.config,a=function(){e(this,r);var t=i.shift();return t&&n&&E(n)&&t in n?(n=n[t],a()):t?void 0:n}.bind(this);Object.keys(c).forEach(function(s){e(this,r),n=t,i=s.split("_"),o=a(),j(o)&&(c[s]=o)}.bind(this)),this.api&&(this.state.orgConfig=t)}function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function _(e){for(var n,i=1;i<arguments.length;i++)n=null!=arguments[i]?arguments[i]:{},i%2?M(Object(n),!0).forEach((function(i){t(e,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}var q=function(t){var o,r;function c(e){var i=t.call(this,e)||this;return i.config=void 0,i.element=void 0,i.config=new a,n(i)||n(i)}r=t,(o=c).prototype=Object.create(r.prototype),o.prototype.constructor=o,i(o,r);var v=c.prototype;return v.$beforeInit=function(){k.call(this,this.options)},v.$init=function(){var t,e=this.config,n=e.class,i=e.selector,o=e.style,r=document.querySelector(i||"."+(n||u));if(!r){var c=this.$$.$el.chart.node();r=document.createElement("table"),c.parentNode.insertBefore(r,c.nextSibling)}if("TABLE"!==r.tagName){var a=document.createElement("table");r.appendChild(a),r=a}if(o&&!document.getElementById(s)){var d=document.createElement("style");d.id=s,d.innerHTML=l,(document.head||document.getElementsByTagName("head")[0]).appendChild(d)}(t=r.classList).add.apply(t,[o&&u,n].filter(Boolean)),this.element=r},v.generateTable=function(){var t=this,n=this.$$,i=this.config,o=this.element,r=n.filterTargetsToShow(n.data.targets),c=C(b,{title:r.length?this.config.categoryTitle:""}),a="",s=[];r.forEach(function(n){var i=this;e(this,t),c+=C(b,{title:n.id}),n.values.forEach(function(t,n){e(this,i),s[n]||(s[n]=[t.x]),s[n].push(t.value)}.bind(this))}.bind(this)),s.forEach(function(n){var o=this;e(this,t),a+="<tr>"+n.map(function(t,n){return e(this,o),C(n?h:f,{value:0===n?i.categoryFormat.bind(this)(t):w(t)?t.toLocaleString():""})}.bind(this)).join("")+"</tr>"}.bind(this));var u=C(d,_(_({},i),{},{title:i.title||n.config.title_text||"",thead:c,tbody:a})).replace(/<[^>]+><\/[^>]+>/g,"");o.innerHTML=u},v.$redraw=function(){var t=this.$$.state;t.resizing||!this.config.updateOnToggle&&t.toggling||this.generateTable()},v.$willDestroy=function(){if(this.element.parentNode.removeChild(this.element),1===this.$$.charts.length){var t,e=document.getElementById(s);null==e||null==(t=e.parentNode)||t.removeChild(e)}},c}(c)}(),r=r.default}()}));
12
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("d3-selection"),require("d3-brush")):"function"==typeof define&&define.amd?define("bb",["d3-selection","d3-brush"],e):"object"==typeof exports?exports.bb=e(require("d3-selection"),require("d3-brush")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.tableview=e(t.d3,t.d3))}(this,(function(t,e){return function(){"use strict";var n=[,function(e){e.exports=t},,function(t){t.exports=e}],i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};return function(){function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}o.d(r,{default:function(){return q}});var c=function(){function t(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var n=t.prototype;return n.$beforeInit=function(){},n.$init=function(){},n.$afterInit=function(){},n.$redraw=function(){},n.$willDestroy=function(){var t=this;Object.keys(this).forEach(function(n){e(this,t),this[n]=null,delete this[n]}.bind(this))},t}();c.version="3.6.3";var a=function(){return{selector:void 0,categoryTitle:"Category",categoryFormat:function(t){var e=t;return this.$$.axis.isCategorized()?e=this.$$.categoryName(t):this.$$.axis.isTimeSeries()&&(e=t.toLocaleDateString()),e},class:void 0,style:!0,title:void 0,updateOnToggle:!0}},s="__tableview-style__",u="bb-tableview",l=".bb-tableview {\n\t\tborder-collapse:collapse;\n\t\tborder-spacing:0;\n\t\tbackground:#fff;\n\t\tmin-width:100%;\n\t\tmargin-top:10px;\n\t\tfont-family:sans-serif;\n\t\tfont-size:.9em;\n\t}\n\t.bb-tableview tr:hover {\n\t\tbackground:#eef7ff;\n\t}\n\t.bb-tableview thead tr {\n\t\tbackground:#f8f8f8;\n\t}\n\t.bb-tableview caption,.bb-tableview td,.bb-tableview th {\n\t\ttext-align: center;\n\t\tborder:1px solid silver;\n\t\tpadding:.5em;\n\t}\n\t.bb-tableview caption {\n\t\tfont-size:1.1em;\n\t\tfont-weight:700;\n\t\tmargin-bottom: -1px;\n\t}",d="<caption>{=title}</caption>\n\t\t<thead><tr>{=thead}</tr></thead>\n\t\t<tbody>{=tbody}</tbody>",b='<th scope="col">{=title}</th>',f='<th scope="row">{=value}</th>',h="<td>{=value}</td>",v=(o(1),o(3),void 0),p=function(){return e(this,v),"object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")()}.bind(void 0)();p.requestIdleCallback=p.requestIdleCallback||function(t){return e(this,v),setTimeout(t,1)}.bind(void 0),p.requestAnimationFrame=p.requestAnimationFrame||function(t){return e(this,v),setTimeout(t,1)}.bind(void 0);var g=null==p?void 0:p.document,y=void 0;(function(t){return e(this,y),t||0===t}).bind(void 0),function(t){return e(this,y),"function"==typeof t}.bind(void 0);var m=function(t){return e(this,y),"string"==typeof t}.bind(void 0),w=function(t){return e(this,y),"number"==typeof t}.bind(void 0),O=function(t){return e(this,y),void 0===t}.bind(void 0),j=function(t){return e(this,y),void 0!==t}.bind(void 0),E=(function(t){return e(this,y),"boolean"==typeof t}.bind(void 0),function(t){return e(this,y),10*Math.ceil(t/10)}.bind(void 0),function(t){return e(this,y),Math.ceil(t)+.5}.bind(void 0),function(t){return e(this,y),t[1]-t[0]}.bind(void 0),function(t){return e(this,y),"object"==typeof t}.bind(void 0)),$=function(t){return e(this,y),O(t)||null===t||m(t)&&0===t.length||E(t)&&!(t instanceof Date)&&0===Object.keys(t).length||w(t)&&isNaN(t)}.bind(void 0),T=(function(t){return e(this,y),!$(t)}.bind(void 0),function(t){return e(this,y),Array.isArray(t)}.bind(void 0)),x=function(t){return e(this,y),t&&!(null!=t&&t.nodeType)&&E(t)&&!T(t)}.bind(void 0);(function(t){return e(this,y),t.charAt(0).toUpperCase()+t.slice(1)}).bind(void 0);(function(t){return e(this,y),[].slice.call(t)}).bind(void 0);function P(t){for(var n=this,i=arguments.length,o=Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];if(!o.length||1===o.length&&!o[0])return t;var c=o.shift();return x(t)&&x(c)&&Object.keys(c).forEach(function(i){e(this,n);var o=c[i];x(o)?(t[i]||(t[i]={}),t[i]=P(t[i],o)):t[i]=T(o)?o.concat():o}.bind(this)),P.apply(void 0,[t].concat(o))}(function(t,n,i){void 0===i&&(i=1),e(this,y);for(var o=[],r=0|Math.max(0,Math.ceil((n-t)/i)),c=t;c<r;c++)o.push(t+c*i);return o}).bind(void 0),function(){var t=this;e(this,y);var n=function(){return e(this,t),{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}}.bind(this);try{return new MouseEvent("t"),function(i,o,r){void 0===r&&(r=n()),e(this,t),i.dispatchEvent(new MouseEvent(o,r))}.bind(this)}catch(i){return function(i,o,r){void 0===r&&(r=n()),e(this,t);var c=g.createEvent("MouseEvent");c.initMouseEvent(o,r.bubbles,r.cancelable,p,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),i.dispatchEvent(c)}.bind(this)}}.bind(void 0)(),function(t,n,i){e(this,y);var o=new Touch(P({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},i));t.dispatchEvent(new TouchEvent(n,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}.bind(void 0);function C(t,e){var n=t;for(var i in e)n=n.replace(new RegExp("{="+i+"}","g"),e[i]);return n}function k(t){var n,i,o,r=this,c=this.config,a=function(){e(this,r);var t=i.shift();return t&&n&&E(n)&&t in n?(n=n[t],a()):t?void 0:n}.bind(this);Object.keys(c).forEach(function(s){e(this,r),n=t,i=s.split("_"),o=a(),j(o)&&(c[s]=o)}.bind(this)),this.api&&(this.state.orgConfig=t)}function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function _(e){for(var n,i=1;i<arguments.length;i++)n=null!=arguments[i]?arguments[i]:{},i%2?M(Object(n),!0).forEach((function(i){t(e,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}));return e}var q=function(t){var o,r;function c(e){var i=t.call(this,e)||this;return i.config=void 0,i.element=void 0,i.config=new a,n(i)||n(i)}r=t,(o=c).prototype=Object.create(r.prototype),o.prototype.constructor=o,i(o,r);var v=c.prototype;return v.$beforeInit=function(){k.call(this,this.options)},v.$init=function(){var t,e=this.config,n=e.class,i=e.selector,o=e.style,r=document.querySelector(i||"."+(n||u));if(!r){var c=this.$$.$el.chart.node();r=document.createElement("table"),c.parentNode.insertBefore(r,c.nextSibling)}if("TABLE"!==r.tagName){var a=document.createElement("table");r.appendChild(a),r=a}if(o&&!document.getElementById(s)){var d=document.createElement("style");d.id=s,d.innerHTML=l,(document.head||document.getElementsByTagName("head")[0]).appendChild(d)}(t=r.classList).add.apply(t,[o&&u,n].filter(Boolean)),this.element=r},v.generateTable=function(){var t=this,n=this.$$,i=this.config,o=this.element,r=n.filterTargetsToShow(n.data.targets),c=C(b,{title:r.length?this.config.categoryTitle:""}),a="",s=[];r.forEach(function(n){var i=this;e(this,t),c+=C(b,{title:n.id}),n.values.forEach(function(t,n){e(this,i),s[n]||(s[n]=[t.x]),s[n].push(t.value)}.bind(this))}.bind(this)),s.forEach(function(n){var o=this;e(this,t),a+="<tr>"+n.map(function(t,n){return e(this,o),C(n?h:f,{value:0===n?i.categoryFormat.bind(this)(t):w(t)?t.toLocaleString():""})}.bind(this)).join("")+"</tr>"}.bind(this));var u=C(d,_(_({},i),{},{title:i.title||n.config.title_text||"",thead:c,tbody:a})).replace(/<[^>]+><\/[^>]+>/g,"");o.innerHTML=u},v.$redraw=function(){var t=this.$$.state;t.resizing||!this.config.updateOnToggle&&t.toggling||this.generateTable()},v.$willDestroy=function(){if(this.element.parentNode.removeChild(this.element),1===this.$$.charts.length){var t,e=document.getElementById(s);null==e||null==(t=e.parentNode)||t.removeChild(e)}},c}(c)}(),r=r.default}()}));
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.6.1
8
+ * @version 3.6.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -1161,7 +1161,7 @@ var Plugin = /*#__PURE__*/function () {
1161
1161
  };
1162
1162
  return Plugin;
1163
1163
  }();
1164
- Plugin.version = "3.6.1";
1164
+ Plugin.version = "3.6.3";
1165
1165
 
1166
1166
  ;// CONCATENATED MODULE: ./src/Plugin/textoverlap/Options.ts
1167
1167
  /**
@@ -5,8 +5,8 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.6.1
8
+ * @version 3.6.3
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
12
- !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("d3-delaunay"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):"function"==typeof define&&define.amd?define("bb",["d3-delaunay","d3-polygon","d3-selection","d3-brush"],n):"object"==typeof exports?exports.bb=n(require("d3-delaunay"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.textoverlap=n(t.d3,t.d3,t.d3,t.d3))}(this,(function(t,n,e,i){return function(){"use strict";var o={3:function(t){t.exports=i},12:function(n){n.exports=t},13:function(t){t.exports=n},1:function(t){t.exports=e}},r={};function u(t){var n=r[t];if(void 0!==n)return n.exports;var e=r[t]={exports:{}};return o[t](e,e.exports,u),e.exports}u.d=function(t,n){for(var e in n)u.o(n,e)&&!u.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},u.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)};var s={};return function(){function t(t,n){if(t!==n)throw new TypeError("Cannot instantiate an arrow function")}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},e(t,n)}u.d(s,{default:function(){return w}});var i=u(12),o=u(13);u(1),u(3);var r=void 0,c=function(){return t(this,r),"object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")()}.bind(void 0)();c.requestIdleCallback=c.requestIdleCallback||function(n){return t(this,r),setTimeout(n,1)}.bind(void 0),c.requestAnimationFrame=c.requestAnimationFrame||function(n){return t(this,r),setTimeout(n,1)}.bind(void 0);var a=null==c?void 0:c.document,d=void 0;(function(n){return t(this,d),n||0===n}).bind(void 0),function(n){return t(this,d),"function"==typeof n}.bind(void 0);var l=function(n){return t(this,d),"string"==typeof n}.bind(void 0),f=function(n){return t(this,d),"number"==typeof n}.bind(void 0),h=function(n){return t(this,d),void 0===n}.bind(void 0),b=function(n){return t(this,d),void 0!==n}.bind(void 0),v=(function(n){return t(this,d),"boolean"==typeof n}.bind(void 0),function(n){return t(this,d),10*Math.ceil(n/10)}.bind(void 0),function(n){return t(this,d),Math.ceil(n)+.5}.bind(void 0),function(n){return t(this,d),n[1]-n[0]}.bind(void 0),function(n){return t(this,d),"object"==typeof n}.bind(void 0)),p=function(n){return t(this,d),h(n)||null===n||l(n)&&0===n.length||v(n)&&!(n instanceof Date)&&0===Object.keys(n).length||f(n)&&isNaN(n)}.bind(void 0),y=(function(n){return t(this,d),!p(n)}.bind(void 0),function(n){return t(this,d),Array.isArray(n)}.bind(void 0)),g=function(n){return t(this,d),n&&!(null!=n&&n.nodeType)&&v(n)&&!y(n)}.bind(void 0);(function(n){return t(this,d),n.charAt(0).toUpperCase()+n.slice(1)}).bind(void 0);(function(n){return t(this,d),[].slice.call(n)}).bind(void 0);function j(n){for(var e=this,i=arguments.length,o=Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];if(!o.length||1===o.length&&!o[0])return n;var u=o.shift();return g(n)&&g(u)&&Object.keys(u).forEach(function(i){t(this,e);var o=u[i];g(o)?(n[i]||(n[i]={}),n[i]=j(n[i],o)):n[i]=y(o)?o.concat():o}.bind(this)),j.apply(void 0,[n].concat(o))}(function(n,e,i){void 0===i&&(i=1),t(this,d);for(var o=[],r=0|Math.max(0,Math.ceil((e-n)/i)),u=n;u<r;u++)o.push(n+u*i);return o}).bind(void 0),function(){var n=this;t(this,d);var e=function(){return t(this,n),{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}}.bind(this);try{return new MouseEvent("t"),function(i,o,r){void 0===r&&(r=e()),t(this,n),i.dispatchEvent(new MouseEvent(o,r))}.bind(this)}catch(i){return function(i,o,r){void 0===r&&(r=e()),t(this,n);var u=a.createEvent("MouseEvent");u.initMouseEvent(o,r.bubbles,r.cancelable,c,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),i.dispatchEvent(u)}.bind(this)}}.bind(void 0)(),function(n,e,i){t(this,d);var o=new Touch(j({identifier:Date.now(),target:n,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},i));n.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}.bind(void 0);function m(n){var e,i,o,r=this,u=this.config,s=function(){t(this,r);var n=i.shift();return n&&e&&v(e)&&n in e?(e=e[n],s()):n?void 0:e}.bind(this);Object.keys(u).forEach(function(c){t(this,r),e=n,i=c.split("_"),o=s(),b(o)&&(u[c]=o)}.bind(this)),this.api&&(this.state.orgConfig=n)}var x=function(){function n(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var e=n.prototype;return e.$beforeInit=function(){},e.$init=function(){},e.$afterInit=function(){},e.$redraw=function(){},e.$willDestroy=function(){var n=this;Object.keys(this).forEach(function(e){t(this,n),this[e]=null,delete this[e]}.bind(this))},n}();x.version="3.6.1";var O=function(){return{selector:void 0,extent:1,area:0}},w=function(r){var u,s;function c(t){var e=r.call(this,t)||this;return e.config=void 0,e.config=new O,n(e)||n(e)}s=r,(u=c).prototype=Object.create(s.prototype),u.prototype.constructor=u,e(u,s);var a=c.prototype;return a.$init=function(){m.call(this,this.options)},a.$redraw=function(){var t=this.$$.$el,n=this.config.selector,e=n?t.main.selectAll(n):t.text;e.empty()||this.preventLabelOverlap(e)},a.generateVoronoi=function(n){var e=this,o=this.$$.scale,r=["x","y"].map(function(n){return t(this,e),o[n].domain()}.bind(this)),u=r[0],s=r[1],c=[s[0],u[1]];return u[1]=c[0],s[0]=c[1],i.Delaunay.from(n).voronoi([].concat(u,s))},a.preventLabelOverlap=function(n){var e=this,i=this.config,r=i.extent,u=i.area,s=n.data().map(function(n){return t(this,e),[n.index,n.value]}.bind(this)),c=this.generateVoronoi(s),a=0;n.each((function(){var t=c.cellPolygon(a);if(t&&this){var n=s[a],e=n[0],i=n[1],d=(0,o.polygonCentroid)(t),l=d[0],f=d[1],h=Math.abs((0,o.polygonArea)(t)),b=Math.round(Math.atan2(f-i,l-e)/Math.PI*2),v=r*(0===b?1:-1),p=-1===b?-r:r+5,y=1===Math.abs(b)?"middle":0===b?"start":"end";this.style.display=h<u?"none":"",this.setAttribute("text-anchor",y),this.setAttribute("dy","0."+(1===b?71:35)+"em"),this.setAttribute("transform","translate("+v+", "+p+")")}a++}))},c}(x)}(),s=s.default}()}));
12
+ !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("d3-delaunay"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):"function"==typeof define&&define.amd?define("bb",["d3-delaunay","d3-polygon","d3-selection","d3-brush"],n):"object"==typeof exports?exports.bb=n(require("d3-delaunay"),require("d3-polygon"),require("d3-selection"),require("d3-brush")):(t.bb=t.bb||{},t.bb.plugin=t.bb.plugin||{},t.bb.plugin.textoverlap=n(t.d3,t.d3,t.d3,t.d3))}(this,(function(t,n,e,i){return function(){"use strict";var o={3:function(t){t.exports=i},12:function(n){n.exports=t},13:function(t){t.exports=n},1:function(t){t.exports=e}},r={};function u(t){var n=r[t];if(void 0!==n)return n.exports;var e=r[t]={exports:{}};return o[t](e,e.exports,u),e.exports}u.d=function(t,n){for(var e in n)u.o(n,e)&&!u.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},u.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)};var s={};return function(){function t(t,n){if(t!==n)throw new TypeError("Cannot instantiate an arrow function")}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e(t,n){return e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},e(t,n)}u.d(s,{default:function(){return w}});var i=u(12),o=u(13);u(1),u(3);var r=void 0,c=function(){return t(this,r),"object"==typeof globalThis&&null!==globalThis&&globalThis.Object===Object&&globalThis||"object"==typeof global&&null!==global&&global.Object===Object&&global||"object"==typeof self&&null!==self&&self.Object===Object&&self||Function("return this")()}.bind(void 0)();c.requestIdleCallback=c.requestIdleCallback||function(n){return t(this,r),setTimeout(n,1)}.bind(void 0),c.requestAnimationFrame=c.requestAnimationFrame||function(n){return t(this,r),setTimeout(n,1)}.bind(void 0);var a=null==c?void 0:c.document,d=void 0;(function(n){return t(this,d),n||0===n}).bind(void 0),function(n){return t(this,d),"function"==typeof n}.bind(void 0);var l=function(n){return t(this,d),"string"==typeof n}.bind(void 0),f=function(n){return t(this,d),"number"==typeof n}.bind(void 0),h=function(n){return t(this,d),void 0===n}.bind(void 0),b=function(n){return t(this,d),void 0!==n}.bind(void 0),v=(function(n){return t(this,d),"boolean"==typeof n}.bind(void 0),function(n){return t(this,d),10*Math.ceil(n/10)}.bind(void 0),function(n){return t(this,d),Math.ceil(n)+.5}.bind(void 0),function(n){return t(this,d),n[1]-n[0]}.bind(void 0),function(n){return t(this,d),"object"==typeof n}.bind(void 0)),p=function(n){return t(this,d),h(n)||null===n||l(n)&&0===n.length||v(n)&&!(n instanceof Date)&&0===Object.keys(n).length||f(n)&&isNaN(n)}.bind(void 0),y=(function(n){return t(this,d),!p(n)}.bind(void 0),function(n){return t(this,d),Array.isArray(n)}.bind(void 0)),g=function(n){return t(this,d),n&&!(null!=n&&n.nodeType)&&v(n)&&!y(n)}.bind(void 0);(function(n){return t(this,d),n.charAt(0).toUpperCase()+n.slice(1)}).bind(void 0);(function(n){return t(this,d),[].slice.call(n)}).bind(void 0);function j(n){for(var e=this,i=arguments.length,o=Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];if(!o.length||1===o.length&&!o[0])return n;var u=o.shift();return g(n)&&g(u)&&Object.keys(u).forEach(function(i){t(this,e);var o=u[i];g(o)?(n[i]||(n[i]={}),n[i]=j(n[i],o)):n[i]=y(o)?o.concat():o}.bind(this)),j.apply(void 0,[n].concat(o))}(function(n,e,i){void 0===i&&(i=1),t(this,d);for(var o=[],r=0|Math.max(0,Math.ceil((e-n)/i)),u=n;u<r;u++)o.push(n+u*i);return o}).bind(void 0),function(){var n=this;t(this,d);var e=function(){return t(this,n),{bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0}}.bind(this);try{return new MouseEvent("t"),function(i,o,r){void 0===r&&(r=e()),t(this,n),i.dispatchEvent(new MouseEvent(o,r))}.bind(this)}catch(i){return function(i,o,r){void 0===r&&(r=e()),t(this,n);var u=a.createEvent("MouseEvent");u.initMouseEvent(o,r.bubbles,r.cancelable,c,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),i.dispatchEvent(u)}.bind(this)}}.bind(void 0)(),function(n,e,i){t(this,d);var o=new Touch(j({identifier:Date.now(),target:n,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},i));n.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}.bind(void 0);function m(n){var e,i,o,r=this,u=this.config,s=function(){t(this,r);var n=i.shift();return n&&e&&v(e)&&n in e?(e=e[n],s()):n?void 0:e}.bind(this);Object.keys(u).forEach(function(c){t(this,r),e=n,i=c.split("_"),o=s(),b(o)&&(u[c]=o)}.bind(this)),this.api&&(this.state.orgConfig=n)}var x=function(){function n(t){void 0===t&&(t={}),this.$$=void 0,this.options=void 0,this.options=t}var e=n.prototype;return e.$beforeInit=function(){},e.$init=function(){},e.$afterInit=function(){},e.$redraw=function(){},e.$willDestroy=function(){var n=this;Object.keys(this).forEach(function(e){t(this,n),this[e]=null,delete this[e]}.bind(this))},n}();x.version="3.6.3";var O=function(){return{selector:void 0,extent:1,area:0}},w=function(r){var u,s;function c(t){var e=r.call(this,t)||this;return e.config=void 0,e.config=new O,n(e)||n(e)}s=r,(u=c).prototype=Object.create(s.prototype),u.prototype.constructor=u,e(u,s);var a=c.prototype;return a.$init=function(){m.call(this,this.options)},a.$redraw=function(){var t=this.$$.$el,n=this.config.selector,e=n?t.main.selectAll(n):t.text;e.empty()||this.preventLabelOverlap(e)},a.generateVoronoi=function(n){var e=this,o=this.$$.scale,r=["x","y"].map(function(n){return t(this,e),o[n].domain()}.bind(this)),u=r[0],s=r[1],c=[s[0],u[1]];return u[1]=c[0],s[0]=c[1],i.Delaunay.from(n).voronoi([].concat(u,s))},a.preventLabelOverlap=function(n){var e=this,i=this.config,r=i.extent,u=i.area,s=n.data().map(function(n){return t(this,e),[n.index,n.value]}.bind(this)),c=this.generateVoronoi(s),a=0;n.each((function(){var t=c.cellPolygon(a);if(t&&this){var n=s[a],e=n[0],i=n[1],d=(0,o.polygonCentroid)(t),l=d[0],f=d[1],h=Math.abs((0,o.polygonArea)(t)),b=Math.round(Math.atan2(f-i,l-e)/Math.PI*2),v=r*(0===b?1:-1),p=-1===b?-r:r+5,y=1===Math.abs(b)?"middle":0===b?"start":"end";this.style.display=h<u?"none":"",this.setAttribute("text-anchor",y),this.setAttribute("dy","0."+(1===b?71:35)+"em"),this.setAttribute("transform","translate("+v+", "+p+")")}a++}))},c}(x)}(),s=s.default}()}));