billboard.js 3.12.1 → 3.12.2

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 (45) hide show
  1. package/dist/billboard.css +1 -1
  2. package/dist/billboard.js +45 -24
  3. package/dist/billboard.min.css +1 -1
  4. package/dist/billboard.min.js +9 -9
  5. package/dist/billboard.pkgd.js +45 -24
  6. package/dist/billboard.pkgd.min.js +16 -16
  7. package/dist/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  8. package/dist/plugin/billboardjs-plugin-bubblecompare.min.js +2 -2
  9. package/dist/plugin/billboardjs-plugin-sparkline.js +2 -2
  10. package/dist/plugin/billboardjs-plugin-sparkline.min.js +2 -2
  11. package/dist/plugin/billboardjs-plugin-stanford.js +2 -2
  12. package/dist/plugin/billboardjs-plugin-stanford.min.js +2 -2
  13. package/dist/plugin/billboardjs-plugin-tableview.js +2 -2
  14. package/dist/plugin/billboardjs-plugin-tableview.min.js +2 -2
  15. package/dist/plugin/billboardjs-plugin-textoverlap.js +2 -2
  16. package/dist/plugin/billboardjs-plugin-textoverlap.min.js +2 -2
  17. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.js +2 -2
  18. package/dist/plugin/pkgd/billboardjs-plugin-bubblecompare.pkgd.min.js +2 -2
  19. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +2 -2
  20. package/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +2 -2
  21. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +2 -2
  22. package/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +2 -2
  23. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +2 -2
  24. package/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +2 -2
  25. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +2 -2
  26. package/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +2 -2
  27. package/dist/theme/dark.css +1 -1
  28. package/dist/theme/dark.min.css +1 -1
  29. package/dist/theme/datalab.css +1 -1
  30. package/dist/theme/datalab.min.css +1 -1
  31. package/dist/theme/graph.css +1 -1
  32. package/dist/theme/graph.min.css +1 -1
  33. package/dist/theme/insight.css +1 -1
  34. package/dist/theme/insight.min.css +1 -1
  35. package/dist/theme/modern.css +1 -1
  36. package/dist/theme/modern.min.css +1 -1
  37. package/dist-esm/billboard.js +54 -27
  38. package/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +2 -2
  39. package/dist-esm/plugin/billboardjs-plugin-sparkline.js +2 -2
  40. package/dist-esm/plugin/billboardjs-plugin-stanford.js +2 -2
  41. package/dist-esm/plugin/billboardjs-plugin-tableview.js +2 -2
  42. package/dist-esm/plugin/billboardjs-plugin-textoverlap.js +2 -2
  43. package/package.json +7 -7
  44. package/src/ChartInternal/data/load.ts +3 -0
  45. package/src/ChartInternal/shape/funnel.ts +49 -25
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.12.1
8
+ * @version 3.12.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -138,7 +138,7 @@ class Plugin {
138
138
  });
139
139
  }
140
140
  }
141
- __publicField(Plugin, "version", "3.12.1");
141
+ __publicField(Plugin, "version", "3.12.2");
142
142
 
143
143
  ;// CONCATENATED MODULE: ./src/Plugin/bubblecompare/index.ts
144
144
  var bubblecompare_defProp = Object.defineProperty;
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.12.1
8
+ * @version 3.12.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
- */(function(o,a){typeof exports=="object"&&typeof module=="object"?module.exports=a(require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-selection"],a):typeof exports=="object"?exports.bb=a(require("d3-selection")):(o.bb=o.bb||{},o.bb.plugin=o.bb.plugin||{},o.bb.plugin.bubblecompare=a(o.d3))})(this,function(_){return function(){"use strict";var o={747:function(r){r.exports=_}},a={};function u(r){var i=a[r];if(i!==void 0)return i.exports;var s=a[r]={exports:{}};return o[r](s,s.exports,u),s.exports}(function(){u.d=function(r,i){for(var s in i)u.o(i,s)&&!u.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:i[s]})}})(),function(){u.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)}}();var p={};return function(){u.d(p,{default:function(){return R}});var r=u(747),i=Object.defineProperty,s=(n,e,t)=>e in n?i(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,d=(n,e,t)=>(s(n,typeof e!="symbol"?e+"":e,t),t);class h{constructor(e={}){d(this,"$$"),d(this,"options"),this.options=e}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(e=>{this[e]=null,delete this[e]})}}d(h,"version","3.12.1");var v=Object.defineProperty,B=(n,e,t)=>e in n?v(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,m=(n,e,t)=>(B(n,typeof e!="symbol"?e+"":e,t),t);const $=class x extends h{constructor(e){return super(e),m(this,"$$"),this}$init(){const{$$:e}=this;e.findClosest=this.findClosest.bind(this),e.getBubbleR=this.getBubbleR.bind(this),e.pointExpandedR=this.pointExpandedR.bind(this)}pointExpandedR(e){const t=this.getBubbleR(e),{expandScale:c=1}=this.options;return x.raiseFocusedBubbleLayer(e),this.changeCursorPoint(),t*c}static raiseFocusedBubbleLayer(e){e.raise&&(0,r.select)(e.node().parentNode.parentNode).raise()}changeCursorPoint(){this.$$.$el.eventRect.style("cursor","pointer")}findClosest(e,t){const{$$:c}=this;return e.filter(b=>b&&!c.isBarType(b.id)).reduce((b,l)=>c.dist(l,t)<this.getBubbleR(l)?l:b,0)}getBubbleR(e){const{minR:t,maxR:c}=this.options,b=this.getZData(e);if(!b)return t;const[l,f]=this.$$.data.targets.reduce(([w,C],j)=>{const g=this.getZData(j.values[0]);return[Math.min(w,g),Math.max(C,g)]},[1e4,0]),P=l>0&&f===l?0:b/f;return Math.abs(P)*(c-t)+t}getZData(e){return this.$$.isBubbleZType(e)?this.$$.getBubbleZData(e.value,"z"):e.value}};m($,"version","0.0.1");let R=$}(),p=p.default,p}()});
11
+ */(function(o,a){typeof exports=="object"&&typeof module=="object"?module.exports=a(require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-selection"],a):typeof exports=="object"?exports.bb=a(require("d3-selection")):(o.bb=o.bb||{},o.bb.plugin=o.bb.plugin||{},o.bb.plugin.bubblecompare=a(o.d3))})(this,function(_){return function(){"use strict";var o={747:function(r){r.exports=_}},a={};function u(r){var i=a[r];if(i!==void 0)return i.exports;var s=a[r]={exports:{}};return o[r](s,s.exports,u),s.exports}(function(){u.d=function(r,i){for(var s in i)u.o(i,s)&&!u.o(r,s)&&Object.defineProperty(r,s,{enumerable:!0,get:i[s]})}})(),function(){u.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)}}();var p={};return function(){u.d(p,{default:function(){return R}});var r=u(747),i=Object.defineProperty,s=(n,e,t)=>e in n?i(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,d=(n,e,t)=>(s(n,typeof e!="symbol"?e+"":e,t),t);class h{constructor(e={}){d(this,"$$"),d(this,"options"),this.options=e}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(e=>{this[e]=null,delete this[e]})}}d(h,"version","3.12.2");var v=Object.defineProperty,B=(n,e,t)=>e in n?v(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,m=(n,e,t)=>(B(n,typeof e!="symbol"?e+"":e,t),t);const $=class x extends h{constructor(e){return super(e),m(this,"$$"),this}$init(){const{$$:e}=this;e.findClosest=this.findClosest.bind(this),e.getBubbleR=this.getBubbleR.bind(this),e.pointExpandedR=this.pointExpandedR.bind(this)}pointExpandedR(e){const t=this.getBubbleR(e),{expandScale:c=1}=this.options;return x.raiseFocusedBubbleLayer(e),this.changeCursorPoint(),t*c}static raiseFocusedBubbleLayer(e){e.raise&&(0,r.select)(e.node().parentNode.parentNode).raise()}changeCursorPoint(){this.$$.$el.eventRect.style("cursor","pointer")}findClosest(e,t){const{$$:c}=this;return e.filter(b=>b&&!c.isBarType(b.id)).reduce((b,l)=>c.dist(l,t)<this.getBubbleR(l)?l:b,0)}getBubbleR(e){const{minR:t,maxR:c}=this.options,b=this.getZData(e);if(!b)return t;const[l,f]=this.$$.data.targets.reduce(([w,C],j)=>{const g=this.getZData(j.values[0]);return[Math.min(w,g),Math.max(C,g)]},[1e4,0]),P=l>0&&f===l?0:b/f;return Math.abs(P)*(c-t)+t}getZData(e){return this.$$.isBubbleZType(e)?this.$$.getBubbleZData(e.value,"z"):e.value}};m($,"version","0.0.1");let R=$}(),p=p.default,p}()});
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.12.1
8
+ * @version 3.12.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -782,7 +782,7 @@ class Plugin {
782
782
  });
783
783
  }
784
784
  }
785
- __publicField(Plugin, "version", "3.12.1");
785
+ __publicField(Plugin, "version", "3.12.2");
786
786
 
787
787
  ;// CONCATENATED MODULE: ./src/Plugin/sparkline/Options.ts
788
788
  class Options {
@@ -5,9 +5,9 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.12.1
8
+ * @version 3.12.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */(function(h,g){typeof exports=="object"&&typeof module=="object"?module.exports=g(require("d3-brush"),require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-brush","d3-selection"],g):typeof exports=="object"?exports.bb=g(require("d3-brush"),require("d3-selection")):(h.bb=h.bb||{},h.bb.plugin=h.bb.plugin||{},h.bb.plugin.sparkline=g(h.d3,h.d3))})(this,function(C,h){return function(){"use strict";var g={853:function(a){a.exports=C},747:function(a){a.exports=h}},R={};function p(a){var b=R[a];if(b!==void 0)return b.exports;var d=R[a]={exports:{}};return g[a](d,d.exports,p),d.exports}(function(){p.d=function(a,b){for(var d in b)p.o(b,d)&&!p.o(a,d)&&Object.defineProperty(a,d,{enumerable:!0,get:b[d]})}})(),function(){p.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)}}();var v={};return function(){p.d(v,{default:function(){return B}});var a=Object.defineProperty,b=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,I=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&I(e,n,t[n]);if(b)for(var n of b(t))q.call(t,n)&&I(e,n,t[n]);return e};const S={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},k={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},H={area:"bb-area",areas:"bb-areas"},U={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",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip"},X={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},Y={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},V={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},G={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},z={dragarea:"bb-dragarea",INCLUDED:"_included_"},W={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},K={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"},Z={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"},J={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},Q={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},ee={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},te={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"},Le={level:"bb-level",levels:"bb-levels"},ne={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},re={region:"bb-region",regions:"bb-regions"},ie={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},se={shape:"bb-shape",shapes:"bb-shapes"},oe={brush:"bb-brush",subchart:"bb-subchart"},ce={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},le={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},ae={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},ue={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var De=l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l(l({},S),k),H),U),X),Y),V),G),z),K),Z),J),Q),ee),W),te),ne),re),ie),se),oe),ce),le),ae),ue),Me=p(853),Fe=p(747);function be(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function de(e){const t=typeof(e==null?void 0:e.requestAnimationFrame)=="function"&&typeof(e==null?void 0:e.cancelAnimationFrame)=="function",n=typeof(e==null?void 0:e.requestIdleCallback)=="function"&&typeof(e==null?void 0:e.cancelIdleCallback)=="function",r=s=>setTimeout(s,1),i=s=>clearTimeout(s);return[t?e.requestAnimationFrame:r,t?e.cancelAnimationFrame:i,n?e.requestIdleCallback:r,n?e.cancelIdleCallback:i]}const _=be(),fe=_==null?void 0:_.document,[je,Ne,Be,qe]=de(_);var he=Object.defineProperty,L=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,D=(e,t,n)=>t in e?he(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||(t={}))pe.call(t,n)&&D(e,n,t[n]);if(L)for(var n of L(t))ge.call(t,n)&&D(e,n,t[n]);return e};const ke=e=>e||e===0,me=e=>typeof e=="function",y=e=>typeof e=="string",$=e=>typeof e=="number",ve=e=>typeof e=="undefined",F=e=>typeof e!="undefined",He=e=>typeof e=="boolean",Ue=e=>Math.ceil(e/10)*10,Xe=e=>Math.ceil(e)+.5,Ye=e=>e[1]-e[0],E=e=>typeof e=="object",_e=e=>ve(e)||e===null||y(e)&&e.length===0||E(e)&&!(e instanceof Date)&&Object.keys(e).length===0||$(e)&&isNaN(e),ye=e=>!_e(e),w=e=>Array.isArray(e),x=e=>e&&!(e!=null&&e.nodeType)&&E(e)&&!w(e);function Ve(e,t,n){return F(e[t])?e[t]:n}function Ge(e,t){let n=!1;return Object.keys(e).forEach(r=>e[r]===t&&(n=!0)),n}function ze(e,t,...n){const r=me(e);return r&&e.call(t,...n),r}function We(e,t){let n=0;const r=function(...i){!--n&&t.apply(this,...i)};"duration"in e?e.each(()=>++n).on("end",r):(++n,e.call(r))}function Ke(e){return y(e)?e.replace(/<(script|img)?/ig,"&lt;").replace(/(script)?>/ig,"&gt;"):e}function Ze(e,t,n=[-1,1],r=!1){if(!(!e||!y(t)))if(t.indexOf(`
12
12
  `)===-1)e.text(t);else{const i=[e.text(),t].map(s=>s.replace(/[\s\n]/g,""));if(i[0]!==i[1]){const s=t.split(`
13
- `),o=r?s.length-1:1;e.html(""),s.forEach((c,u)=>{e.append("tspan").attr("x",0).attr("dy",`${u===0?n[0]*o:n[1]}em`).text(c)})}}}function xe(e){const{x:t,y:n,width:r,height:i}=e.getBBox();return[{x:t,y:n+i},{x:t,y:n},{x:t+r,y:n},{x:t+r,y:n+i}]}function Je(e){const{width:t,height:n}=e.getBoundingClientRect(),r=xe(e),i=r[0].x,s=Math.min(r[0].y,r[1].y);return{x:i,y:s,width:t,height:n}}function Qe(e,t){var n;const r=e&&((n=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:n[0]);let i=[0,0];try{i=d3Pointer(r||e,t)}catch(s){}return i.map(s=>isNaN(s)?0:s)}function $e(e){const{event:t,$el:n}=e,r=n.subchart.main||n.main;let i;return t&&t.type==="brush"?i=t.selection:r&&(i=r.select(".bb-brush").node())&&(i=d3BrushSelection(i)),i}function et(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function tt(e=!0,t=0,n=1e4){const r=window.crypto||window.msCrypto,i=r?t+r.getRandomValues(new Uint32Array(1))[0]%(n-t+1):Math.floor(Math.random()*(n-t)+t);return e?String(i):i}function j(e,t,n,r,i){if(n>r)return-1;const s=Math.floor((n+r)/2);let{x:o,w:c=0}=e[s];return i&&(o=e[s].y,c=e[s].h),t>=o&&t<=o+c?s:t<o?j(e,t,n,s-1,i):j(e,t,s+1,r,i)}function nt(e){const t=$e(e);return t?t[0]===t[1]:!0}function rt(...e){const t=n=>{if(x(n)&&n.constructor){const r=new n.constructor;for(const i in n)r[i]=t(n[i]);return r}return n};return e.map(n=>t(n)).reduce((n,r)=>M(M({},n),r))}function Ee(e={},t){w(t)&&t.forEach(n=>Ee(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}const it=e=>e.charAt(0).toUpperCase()+e.slice(1);function st(e,t="-"){return e.split(t).map((n,r)=>r?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const we=e=>[].slice.call(e);function ot(e,t,n){const{rootSelector:r="",sheet:i}=e,o=`${r} ${(c=>c.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(t)} {${n.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](o,i.cssRules.length)}function ct(e){let t=[];return e.forEach(n=>{var r;try{n.cssRules&&n.cssRules.length&&(t=t.concat(we(n.cssRules)))}catch(i){(r=window.console)==null||r.warn(`Error while reading rules from ${n.href}: ${i.toString()}`)}}),t}function lt(e){var t,n,r,i;return{x:((n=(t=window.pageXOffset)!=null?t:window.scrollX)!=null?n:0)+e.scrollLeft,y:((i=(r=window.pageYOffset)!=null?r:window.scrollY)!=null?i:0)+e.scrollTop}}function at(e){const t=e?e.transform:null,n=t&&t.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function ut(e){const t=e[0]instanceof Date,n=(t?e.map(Number):e).filter((r,i,s)=>s.indexOf(r)===i);return t?n.map(r=>new Date(r)):n}function bt(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function O(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return x(e)&&x(n)&&Object.keys(n).forEach(r=>{const i=n[r];x(i)?(!e[r]&&(e[r]={}),e[r]=O(e[r],i)):e[r]=w(i)?i.concat():i}),O(e,...t)}function Oe(e,t=!0){let n;return e[0]instanceof Date?n=t?(r,i)=>r-i:(r,i)=>i-r:t&&!e.every(isNaN)?n=(r,i)=>r-i:t||(n=(r,i)=>r>i&&-1||r<i&&1||r===i&&0),e.concat().sort(n)}function dt(e,t){let n=t.filter(r=>ye(r));return n.length?$(n[0])?n=Math[e](...n):n[0]instanceof Date&&(n=Oe(n,e==="min")[0]):n=void 0,n}const ft=(e,t,n=1)=>{const r=[],i=Math.max(0,Math.ceil((t-e)/n))|0;for(let s=e;s<i;s++)r.push(e+s*n);return r},ht={mouse:(()=>{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,n,r=e())=>{t.dispatchEvent(new MouseEvent(n,r))}}catch(t){return(n,r,i=e())=>{const s=fe.createEvent("MouseEvent");s.initMouseEvent(r,i.bubbles,i.cancelable,_,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}}})(),touch:(e,t,n)=>{const r=new Touch(O({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}};function pt(e,t){let n=e;for(const r in t)n=n.replace(new RegExp(`{=${r}}`,"g"),t[r]);return n}function gt(e){var t;let n;if(e instanceof Date)n=e;else if(y(e)){const{config:r,format:i}=this;n=(t=i.dataTime(r.data_xFormat)(e))!=null?t:new Date(e)}else $(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function mt(){var e,t;return((e=document)==null?void 0:e.hidden)===!1||((t=document)==null?void 0:t.visibilityState)==="visible"}function vt(e,t){const{DocumentTouch:n,matchMedia:r,navigator:i}=window;let s=!1;if(t)if(i&&"maxTouchPoints"in i)s=i.maxTouchPoints>0;else if("ontouchmove"in window||n&&document instanceof n)s=!0;else if(r!=null&&r("(pointer:coarse)").matches)s=!0;else{const c=i.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(c)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(c)}return e&&["any-hover:hover","any-pointer:fine"].some(c=>r==null?void 0:r(`(${c})`).matches)&&"mouse"||s&&"touch"||"mouse"}function Te(e,t){t()===!1?requestAnimationFrame(()=>Te(e,t)):e()}function Ae(e){const t=this.config;let n,r,i;const s=()=>{const o=r.shift();if(o&&n&&E(n)&&o in n)return n=n[o],s();if(!o)return n};Object.keys(t).forEach(o=>{n=e,r=o.split("_"),i=s(),F(i)&&(t[o]=i)}),this.api&&(this.state.orgConfig=e)}var Pe=Object.defineProperty,Ce=(e,t,n)=>t in e?Pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t,n)=>(Ce(e,typeof t!="symbol"?t+"":t,n),n);class N{constructor(t={}){T(this,"$$"),T(this,"options"),this.options=t}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}T(N,"version","3.12.1");class Re{constructor(){return{selector:void 0}}}var Ie=Object.defineProperty,Se=(e,t,n)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t,n)=>(Se(e,typeof t!="symbol"?t+"":t,n),n);class B extends N{constructor(t){return super(t),A(this,"config"),A(this,"element"),this.config=new Re,this}$beforeInit(){Ae.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)}validate(){const{$$:t,config:n}=this;let r="";if((!n.selector||!document.querySelector(n.selector))&&(r="No holder elements found from given selector option."),(t.hasType("bubble")||t.hasType("scatter")||t.hasArcType(t.data.targets))&&(r="Contains non supported chart types."),r)throw new Error(`[Sparkline plugin] ${r}`)}overrideInternals(){const{$$:t}=this,{getBarW:n,getIndices:r}=t;t.getIndices=function(i,s,o){return o==="getShapeX"?{}:r.call(this,i,s)},t.getBarW=function(i,s){return n.call(this,i,s,1)}}overrideOptions(){const{config:t}=this.$$;if(t.legend_show=!1,t.resize_auto=!1,t.axis_x_show=!1,t.padding!==!1){const n=r=>Object.keys(r||{}).length>0;n(t.axis_x_padding)&&(t.axis_x_padding={left:15,right:15,unit:"px"}),n(t.axis_y_padding)&&(t.axis_y_padding=5)}t.axis_y_show=!1,t.tooltip_position||(t.tooltip_position=function(n,r,i){const{internal:{state:{event:s}}}=this;let o=s.pageY-i*1.35,c=s.pageX-r/2;return o<0&&(o=0),c<0&&(c=0),{top:o,left:c}})}$init(){var t;const{$$:{$el:n}}=this;n.chart.style("width","0").style("height","0").style("pointer-events","none"),(t=n.tooltip)!=null&&t.node()&&document.body.appendChild(n.tooltip.node())}$afterInit(){const{$$:t}=this;t.$el.svg.attr("style",null).style("width","0").style("height","0"),this.bindEvents(!0)}bindEvents(t=!0){const{$$:{config:n}}=this;if(n.interaction_enabled&&n.tooltip_show){const r=`${t?"add":"remove"}EventListener`;this.element.forEach(i=>{const s=i.querySelector("svg");s[r]("mouseover",this.overHandler),s[r]("mousemove",this.moveHandler),s[r]("mouseout",this.outHandler)})}}overHandler(t){const{$$:n}=this,{state:{eventReceiver:r}}=n;r.rect=t.target.getBoundingClientRect()}moveHandler(t){var n,r,i,s;const{$$:o}=this,c=o.getDataIndexFromEvent(t),u=(n=o.api.data(t.target.__id))==null?void 0:n[0],f=(r=u==null?void 0:u.values)==null?void 0:r[c];f&&!f.name&&(f.name=f.id),o.state.event=t,(i=o.isPointFocusOnly)!=null&&i.call(o)&&f&&((s=o.showCircleFocus)==null||s.call(o,[f])),o.setExpand(c,u.id,!0),o.showTooltip([f],t.target)}outHandler(t){const{$$:n}=this;n.state.event=t,n.isPointFocusOnly()?n.hideCircleFocus():n.unexpandCircles(),n.hideTooltip()}$redraw(){var t;const{$$:n}=this,{$el:r}=n;let i=this.element;const s=n.api.data(),o=(t=r.chart.html().match(/<svg[^>]*>/))==null?void 0:t[0];if(i.length<s.length){const c=r.chart.node();for(let u=s.length-i.length;u>0;u--)c.parentNode.insertBefore(i[0].cloneNode(),c.nextSibling);this.element=document.querySelectorAll(this.config.selector),i=this.element}s.map(c=>c.id).forEach((c,u)=>{const f=`.${S.target}-${c}`,P=r.main.selectAll(f);let m=i[u].querySelector("svg");m||(i[u].innerHTML=`${o}</svg>`,m=i[u].querySelector("svg"),m.__id=c),m.querySelector(f)||P.style("opacity",null),P.style("fill","none").style("opacity",null),m.innerHTML="",m.appendChild(P.node())})}$willDestroy(){this.bindEvents(!1),this.element.forEach(t=>{t.innerHTML=""})}}A(B,"version","0.0.1")}(),v=v.default,v}()});
13
+ `),o=r?s.length-1:1;e.html(""),s.forEach((c,u)=>{e.append("tspan").attr("x",0).attr("dy",`${u===0?n[0]*o:n[1]}em`).text(c)})}}}function xe(e){const{x:t,y:n,width:r,height:i}=e.getBBox();return[{x:t,y:n+i},{x:t,y:n},{x:t+r,y:n},{x:t+r,y:n+i}]}function Je(e){const{width:t,height:n}=e.getBoundingClientRect(),r=xe(e),i=r[0].x,s=Math.min(r[0].y,r[1].y);return{x:i,y:s,width:t,height:n}}function Qe(e,t){var n;const r=e&&((n=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:n[0]);let i=[0,0];try{i=d3Pointer(r||e,t)}catch(s){}return i.map(s=>isNaN(s)?0:s)}function $e(e){const{event:t,$el:n}=e,r=n.subchart.main||n.main;let i;return t&&t.type==="brush"?i=t.selection:r&&(i=r.select(".bb-brush").node())&&(i=d3BrushSelection(i)),i}function et(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function tt(e=!0,t=0,n=1e4){const r=window.crypto||window.msCrypto,i=r?t+r.getRandomValues(new Uint32Array(1))[0]%(n-t+1):Math.floor(Math.random()*(n-t)+t);return e?String(i):i}function j(e,t,n,r,i){if(n>r)return-1;const s=Math.floor((n+r)/2);let{x:o,w:c=0}=e[s];return i&&(o=e[s].y,c=e[s].h),t>=o&&t<=o+c?s:t<o?j(e,t,n,s-1,i):j(e,t,s+1,r,i)}function nt(e){const t=$e(e);return t?t[0]===t[1]:!0}function rt(...e){const t=n=>{if(x(n)&&n.constructor){const r=new n.constructor;for(const i in n)r[i]=t(n[i]);return r}return n};return e.map(n=>t(n)).reduce((n,r)=>M(M({},n),r))}function Ee(e={},t){w(t)&&t.forEach(n=>Ee(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}const it=e=>e.charAt(0).toUpperCase()+e.slice(1);function st(e,t="-"){return e.split(t).map((n,r)=>r?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const we=e=>[].slice.call(e);function ot(e,t,n){const{rootSelector:r="",sheet:i}=e,o=`${r} ${(c=>c.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(t)} {${n.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](o,i.cssRules.length)}function ct(e){let t=[];return e.forEach(n=>{var r;try{n.cssRules&&n.cssRules.length&&(t=t.concat(we(n.cssRules)))}catch(i){(r=window.console)==null||r.warn(`Error while reading rules from ${n.href}: ${i.toString()}`)}}),t}function lt(e){var t,n,r,i;return{x:((n=(t=window.pageXOffset)!=null?t:window.scrollX)!=null?n:0)+e.scrollLeft,y:((i=(r=window.pageYOffset)!=null?r:window.scrollY)!=null?i:0)+e.scrollTop}}function at(e){const t=e?e.transform:null,n=t&&t.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function ut(e){const t=e[0]instanceof Date,n=(t?e.map(Number):e).filter((r,i,s)=>s.indexOf(r)===i);return t?n.map(r=>new Date(r)):n}function bt(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function O(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return x(e)&&x(n)&&Object.keys(n).forEach(r=>{const i=n[r];x(i)?(!e[r]&&(e[r]={}),e[r]=O(e[r],i)):e[r]=w(i)?i.concat():i}),O(e,...t)}function Oe(e,t=!0){let n;return e[0]instanceof Date?n=t?(r,i)=>r-i:(r,i)=>i-r:t&&!e.every(isNaN)?n=(r,i)=>r-i:t||(n=(r,i)=>r>i&&-1||r<i&&1||r===i&&0),e.concat().sort(n)}function dt(e,t){let n=t.filter(r=>ye(r));return n.length?$(n[0])?n=Math[e](...n):n[0]instanceof Date&&(n=Oe(n,e==="min")[0]):n=void 0,n}const ft=(e,t,n=1)=>{const r=[],i=Math.max(0,Math.ceil((t-e)/n))|0;for(let s=e;s<i;s++)r.push(e+s*n);return r},ht={mouse:(()=>{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,n,r=e())=>{t.dispatchEvent(new MouseEvent(n,r))}}catch(t){return(n,r,i=e())=>{const s=fe.createEvent("MouseEvent");s.initMouseEvent(r,i.bubbles,i.cancelable,_,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}}})(),touch:(e,t,n)=>{const r=new Touch(O({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}};function pt(e,t){let n=e;for(const r in t)n=n.replace(new RegExp(`{=${r}}`,"g"),t[r]);return n}function gt(e){var t;let n;if(e instanceof Date)n=e;else if(y(e)){const{config:r,format:i}=this;n=(t=i.dataTime(r.data_xFormat)(e))!=null?t:new Date(e)}else $(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function mt(){var e,t;return((e=document)==null?void 0:e.hidden)===!1||((t=document)==null?void 0:t.visibilityState)==="visible"}function vt(e,t){const{DocumentTouch:n,matchMedia:r,navigator:i}=window;let s=!1;if(t)if(i&&"maxTouchPoints"in i)s=i.maxTouchPoints>0;else if("ontouchmove"in window||n&&document instanceof n)s=!0;else if(r!=null&&r("(pointer:coarse)").matches)s=!0;else{const c=i.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(c)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(c)}return e&&["any-hover:hover","any-pointer:fine"].some(c=>r==null?void 0:r(`(${c})`).matches)&&"mouse"||s&&"touch"||"mouse"}function Te(e,t){t()===!1?requestAnimationFrame(()=>Te(e,t)):e()}function Ae(e){const t=this.config;let n,r,i;const s=()=>{const o=r.shift();if(o&&n&&E(n)&&o in n)return n=n[o],s();if(!o)return n};Object.keys(t).forEach(o=>{n=e,r=o.split("_"),i=s(),F(i)&&(t[o]=i)}),this.api&&(this.state.orgConfig=e)}var Pe=Object.defineProperty,Ce=(e,t,n)=>t in e?Pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t,n)=>(Ce(e,typeof t!="symbol"?t+"":t,n),n);class N{constructor(t={}){T(this,"$$"),T(this,"options"),this.options=t}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}T(N,"version","3.12.2");class Re{constructor(){return{selector:void 0}}}var Ie=Object.defineProperty,Se=(e,t,n)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t,n)=>(Se(e,typeof t!="symbol"?t+"":t,n),n);class B extends N{constructor(t){return super(t),A(this,"config"),A(this,"element"),this.config=new Re,this}$beforeInit(){Ae.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)}validate(){const{$$:t,config:n}=this;let r="";if((!n.selector||!document.querySelector(n.selector))&&(r="No holder elements found from given selector option."),(t.hasType("bubble")||t.hasType("scatter")||t.hasArcType(t.data.targets))&&(r="Contains non supported chart types."),r)throw new Error(`[Sparkline plugin] ${r}`)}overrideInternals(){const{$$:t}=this,{getBarW:n,getIndices:r}=t;t.getIndices=function(i,s,o){return o==="getShapeX"?{}:r.call(this,i,s)},t.getBarW=function(i,s){return n.call(this,i,s,1)}}overrideOptions(){const{config:t}=this.$$;if(t.legend_show=!1,t.resize_auto=!1,t.axis_x_show=!1,t.padding!==!1){const n=r=>Object.keys(r||{}).length>0;n(t.axis_x_padding)&&(t.axis_x_padding={left:15,right:15,unit:"px"}),n(t.axis_y_padding)&&(t.axis_y_padding=5)}t.axis_y_show=!1,t.tooltip_position||(t.tooltip_position=function(n,r,i){const{internal:{state:{event:s}}}=this;let o=s.pageY-i*1.35,c=s.pageX-r/2;return o<0&&(o=0),c<0&&(c=0),{top:o,left:c}})}$init(){var t;const{$$:{$el:n}}=this;n.chart.style("width","0").style("height","0").style("pointer-events","none"),(t=n.tooltip)!=null&&t.node()&&document.body.appendChild(n.tooltip.node())}$afterInit(){const{$$:t}=this;t.$el.svg.attr("style",null).style("width","0").style("height","0"),this.bindEvents(!0)}bindEvents(t=!0){const{$$:{config:n}}=this;if(n.interaction_enabled&&n.tooltip_show){const r=`${t?"add":"remove"}EventListener`;this.element.forEach(i=>{const s=i.querySelector("svg");s[r]("mouseover",this.overHandler),s[r]("mousemove",this.moveHandler),s[r]("mouseout",this.outHandler)})}}overHandler(t){const{$$:n}=this,{state:{eventReceiver:r}}=n;r.rect=t.target.getBoundingClientRect()}moveHandler(t){var n,r,i,s;const{$$:o}=this,c=o.getDataIndexFromEvent(t),u=(n=o.api.data(t.target.__id))==null?void 0:n[0],f=(r=u==null?void 0:u.values)==null?void 0:r[c];f&&!f.name&&(f.name=f.id),o.state.event=t,(i=o.isPointFocusOnly)!=null&&i.call(o)&&f&&((s=o.showCircleFocus)==null||s.call(o,[f])),o.setExpand(c,u.id,!0),o.showTooltip([f],t.target)}outHandler(t){const{$$:n}=this;n.state.event=t,n.isPointFocusOnly()?n.hideCircleFocus():n.unexpandCircles(),n.hideTooltip()}$redraw(){var t;const{$$:n}=this,{$el:r}=n;let i=this.element;const s=n.api.data(),o=(t=r.chart.html().match(/<svg[^>]*>/))==null?void 0:t[0];if(i.length<s.length){const c=r.chart.node();for(let u=s.length-i.length;u>0;u--)c.parentNode.insertBefore(i[0].cloneNode(),c.nextSibling);this.element=document.querySelectorAll(this.config.selector),i=this.element}s.map(c=>c.id).forEach((c,u)=>{const f=`.${S.target}-${c}`,P=r.main.selectAll(f);let m=i[u].querySelector("svg");m||(i[u].innerHTML=`${o}</svg>`,m=i[u].querySelector("svg"),m.__id=c),m.querySelector(f)||P.style("opacity",null),P.style("fill","none").style("opacity",null),m.innerHTML="",m.appendChild(P.node())})}$willDestroy(){this.bindEvents(!1),this.element.forEach(t=>{t.innerHTML=""})}}A(B,"version","0.0.1")}(),v=v.default,v}()});
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.12.1
8
+ * @version 3.12.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -819,7 +819,7 @@ class Plugin {
819
819
  });
820
820
  }
821
821
  }
822
- __publicField(Plugin, "version", "3.12.1");
822
+ __publicField(Plugin, "version", "3.12.2");
823
823
 
824
824
  // EXTERNAL MODULE: external {"commonjs":"d3-axis","commonjs2":"d3-axis","amd":"d3-axis","root":"d3"}
825
825
  var external_commonjs_d3_axis_commonjs2_d3_axis_amd_d3_axis_root_d3_ = __webpack_require__(8);
@@ -5,12 +5,12 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.12.1
8
+ * @version 3.12.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */(function(h,v){typeof exports=="object"&&typeof module=="object"?module.exports=v(require("d3-color"),require("d3-interpolate"),require("d3-scale"),require("d3-brush"),require("d3-selection"),require("d3-axis"),require("d3-format")):typeof define=="function"&&define.amd?define("bb",["d3-color","d3-interpolate","d3-scale","d3-brush","d3-selection","d3-axis","d3-format"],v):typeof exports=="object"?exports.bb=v(require("d3-color"),require("d3-interpolate"),require("d3-scale"),require("d3-brush"),require("d3-selection"),require("d3-axis"),require("d3-format")):(h.bb=h.bb||{},h.bb.plugin=h.bb.plugin||{},h.bb.plugin.stanford=v(h.d3,h.d3,h.d3,h.d3,h.d3,h.d3,h.d3))})(this,function(I,h,v,H,K,W,Z){return function(){"use strict";var J={996:function(u){u.exports=W},853:function(u){u.exports=H},218:function(u){u.exports=I},390:function(u){u.exports=Z},798:function(u){u.exports=h},455:function(u){u.exports=v},747:function(u){u.exports=K}},D={};function p(u){var m=D[u];if(m!==void 0)return m.exports;var g=D[u]={exports:{}};return J[u](g,g.exports,p),g.exports}(function(){p.d=function(u,m){for(var g in m)p.o(m,g)&&!p.o(u,g)&&Object.defineProperty(u,g,{enumerable:!0,get:m[g]})}})(),function(){p.o=function(u,m){return Object.prototype.hasOwnProperty.call(u,m)}}();var w={};return function(){p.d(w,{default:function(){return st}});var u=p(218),m=p(798),g=p(455),Q=Object.defineProperty,N=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,F=(e,t,n)=>t in e?Q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))ee.call(t,n)&&F(e,n,t[n]);if(N)for(var n of N(t))te.call(t,n)&&F(e,n,t[n]);return e};const ne={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},oe={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},re={area:"bb-area",areas:"bb-areas"},se={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",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip"},ae={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},ie={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},ce={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},le={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},ue={dragarea:"bb-dragarea",INCLUDED:"_included_"},de={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},be={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"},fe={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"},he={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},pe={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},ge={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},me={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"},it={level:"bb-level",levels:"bb-levels"},_e={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},xe={region:"bb-region",regions:"bb-regions"},ye={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},ve={shape:"bb-shape",shapes:"bb-shapes"},$e={brush:"bb-brush",subchart:"bb-subchart"},we={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},O={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},Ee={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},Se={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var ct=d(d(d(d(d(d(d(d(d(d(d(d(d(d(d(d(d(d(d(d(d(d(d(d(d({},ne),oe),re),se),ae),ie),ce),le),ue),be),fe),he),pe),ge),de),me),_e),xe),ye),ve),$e),we),O),Ee),Se),lt=p(853),ut=p(747);function Ce(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function Oe(e){const t=typeof(e==null?void 0:e.requestAnimationFrame)=="function"&&typeof(e==null?void 0:e.cancelAnimationFrame)=="function",n=typeof(e==null?void 0:e.requestIdleCallback)=="function"&&typeof(e==null?void 0:e.cancelIdleCallback)=="function",o=s=>setTimeout(s,1),r=s=>clearTimeout(s);return[t?e.requestAnimationFrame:o,t?e.cancelAnimationFrame:r,n?e.requestIdleCallback:o,n?e.cancelIdleCallback:r]}const E=Ce(),Pe=E==null?void 0:E.document,[dt,bt,ft,ht]=Oe(E);var Re=Object.defineProperty,q=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,B=(e,t,n)=>t in e?Re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,U=(e,t)=>{for(var n in t||(t={}))Ae.call(t,n)&&B(e,n,t[n]);if(q)for(var n of q(t))Te.call(t,n)&&B(e,n,t[n]);return e};const pt=e=>e||e===0,P=e=>typeof e=="function",$=e=>typeof e=="string",R=e=>typeof e=="number",Le=e=>typeof e=="undefined",X=e=>typeof e!="undefined",gt=e=>typeof e=="boolean",mt=e=>Math.ceil(e/10)*10,_t=e=>Math.ceil(e)+.5,xt=e=>e[1]-e[0],A=e=>typeof e=="object",Y=e=>Le(e)||e===null||$(e)&&e.length===0||A(e)&&!(e instanceof Date)&&Object.keys(e).length===0||R(e)&&isNaN(e),je=e=>!Y(e),T=e=>Array.isArray(e),S=e=>e&&!(e!=null&&e.nodeType)&&A(e)&&!T(e);function yt(e,t,n){return X(e[t])?e[t]:n}function vt(e,t){let n=!1;return Object.keys(e).forEach(o=>e[o]===t&&(n=!0)),n}function $t(e,t,...n){const o=P(e);return o&&e.call(t,...n),o}function wt(e,t){let n=0;const o=function(...r){!--n&&t.apply(this,...r)};"duration"in e?e.each(()=>++n).on("end",o):(++n,e.call(o))}function Et(e){return $(e)?e.replace(/<(script|img)?/ig,"&lt;").replace(/(script)?>/ig,"&gt;"):e}function St(e,t,n=[-1,1],o=!1){if(!(!e||!$(t)))if(t.indexOf(`
12
12
  `)===-1)e.text(t);else{const r=[e.text(),t].map(s=>s.replace(/[\s\n]/g,""));if(r[0]!==r[1]){const s=t.split(`
13
- `),a=o?s.length-1:1;e.html(""),s.forEach((i,b)=>{e.append("tspan").attr("x",0).attr("dy",`${b===0?n[0]*a:n[1]}em`).text(i)})}}}function Me(e){const{x:t,y:n,width:o,height:r}=e.getBBox();return[{x:t,y:n+r},{x:t,y:n},{x:t+o,y:n},{x:t+o,y:n+r}]}function Ct(e){const{width:t,height:n}=e.getBoundingClientRect(),o=Me(e),r=o[0].x,s=Math.min(o[0].y,o[1].y);return{x:r,y:s,width:t,height:n}}function Ot(e,t){var n;const o=e&&((n=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:n[0]);let r=[0,0];try{r=d3Pointer(o||e,t)}catch(s){}return r.map(s=>isNaN(s)?0:s)}function Ie(e){const{event:t,$el:n}=e,o=n.subchart.main||n.main;let r;return t&&t.type==="brush"?r=t.selection:o&&(r=o.select(".bb-brush").node())&&(r=d3BrushSelection(r)),r}function Pt(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Rt(e=!0,t=0,n=1e4){const o=window.crypto||window.msCrypto,r=o?t+o.getRandomValues(new Uint32Array(1))[0]%(n-t+1):Math.floor(Math.random()*(n-t)+t);return e?String(r):r}function G(e,t,n,o,r){if(n>o)return-1;const s=Math.floor((n+o)/2);let{x:a,w:i=0}=e[s];return r&&(a=e[s].y,i=e[s].h),t>=a&&t<=a+i?s:t<a?G(e,t,n,s-1,r):G(e,t,s+1,o,r)}function At(e){const t=Ie(e);return t?t[0]===t[1]:!0}function Tt(...e){const t=n=>{if(S(n)&&n.constructor){const o=new n.constructor;for(const r in n)o[r]=t(n[r]);return o}return n};return e.map(n=>t(n)).reduce((n,o)=>U(U({},n),o))}function De(e={},t){T(t)&&t.forEach(n=>De(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}const Lt=e=>e.charAt(0).toUpperCase()+e.slice(1);function jt(e,t="-"){return e.split(t).map((n,o)=>o?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const Ne=e=>[].slice.call(e);function Mt(e,t,n){const{rootSelector:o="",sheet:r}=e,a=`${o} ${(i=>i.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(t)} {${n.join(";")}}`;return r[r.insertRule?"insertRule":"addRule"](a,r.cssRules.length)}function It(e){let t=[];return e.forEach(n=>{var o;try{n.cssRules&&n.cssRules.length&&(t=t.concat(Ne(n.cssRules)))}catch(r){(o=window.console)==null||o.warn(`Error while reading rules from ${n.href}: ${r.toString()}`)}}),t}function Dt(e){var t,n,o,r;return{x:((n=(t=window.pageXOffset)!=null?t:window.scrollX)!=null?n:0)+e.scrollLeft,y:((r=(o=window.pageYOffset)!=null?o:window.scrollY)!=null?r:0)+e.scrollTop}}function Nt(e){const t=e?e.transform:null,n=t&&t.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ft(e){const t=e[0]instanceof Date,n=(t?e.map(Number):e).filter((o,r,s)=>s.indexOf(o)===r);return t?n.map(o=>new Date(o)):n}function qt(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function L(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return S(e)&&S(n)&&Object.keys(n).forEach(o=>{const r=n[o];S(r)?(!e[o]&&(e[o]={}),e[o]=L(e[o],r)):e[o]=T(r)?r.concat():r}),L(e,...t)}function Fe(e,t=!0){let n;return e[0]instanceof Date?n=t?(o,r)=>o-r:(o,r)=>r-o:t&&!e.every(isNaN)?n=(o,r)=>o-r:t||(n=(o,r)=>o>r&&-1||o<r&&1||o===r&&0),e.concat().sort(n)}function Bt(e,t){let n=t.filter(o=>je(o));return n.length?R(n[0])?n=Math[e](...n):n[0]instanceof Date&&(n=Fe(n,e==="min")[0]):n=void 0,n}const qe=(e,t,n=1)=>{const o=[],r=Math.max(0,Math.ceil((t-e)/n))|0;for(let s=e;s<r;s++)o.push(e+s*n);return o},Ut={mouse:(()=>{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,n,o=e())=>{t.dispatchEvent(new MouseEvent(n,o))}}catch(t){return(n,o,r=e())=>{const s=Pe.createEvent("MouseEvent");s.initMouseEvent(o,r.bubbles,r.cancelable,E,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}}})(),touch:(e,t,n)=>{const o=new Touch(L({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}};function Xt(e,t){let n=e;for(const o in t)n=n.replace(new RegExp(`{=${o}}`,"g"),t[o]);return n}function Be(e){var t;let n;if(e instanceof Date)n=e;else if($(e)){const{config:o,format:r}=this;n=(t=r.dataTime(o.data_xFormat)(e))!=null?t:new Date(e)}else R(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function Yt(){var e,t;return((e=document)==null?void 0:e.hidden)===!1||((t=document)==null?void 0:t.visibilityState)==="visible"}function Gt(e,t){const{DocumentTouch:n,matchMedia:o,navigator:r}=window;let s=!1;if(t)if(r&&"maxTouchPoints"in r)s=r.maxTouchPoints>0;else if("ontouchmove"in window||n&&document instanceof n)s=!0;else if(o!=null&&o("(pointer:coarse)").matches)s=!0;else{const i=r.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(i)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(i)}return e&&["any-hover:hover","any-pointer:fine"].some(i=>o==null?void 0:o(`(${i})`).matches)&&"mouse"||s&&"touch"||"mouse"}function Ue(e,t){t()===!1?requestAnimationFrame(()=>Ue(e,t)):e()}function Xe(e){const t=this.config;let n,o,r;const s=()=>{const a=o.shift();if(a&&n&&A(n)&&a in n)return n=n[a],s();if(!a)return n};Object.keys(t).forEach(a=>{n=e,o=a.split("_"),r=s(),X(r)&&(t[a]=r)}),this.api&&(this.state.orgConfig=e)}var Ye=Object.defineProperty,Ge=(e,t,n)=>t in e?Ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t,n)=>(Ge(e,typeof t!="symbol"?t+"":t,n),n);class V{constructor(t={}){j(this,"$$"),j(this,"options"),this.options=t}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}j(V,"version","3.12.1");var Ve=p(996),ke=p(390),_={colorScale:"bb-colorscale",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions"},ze=Object.defineProperty,He=(e,t,n)=>t in e?ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t,n)=>(He(e,typeof t!="symbol"?t+"":t,n),n);class Ke{constructor(t){k(this,"owner"),k(this,"colorScale"),this.owner=t}drawColorScale(){const{$$:t,config:n}=this.owner,o=t.data.targets[0],r=t.state.height-n.padding_bottom-n.padding_top,s=n.scale_width,a=5,i=qe(n.padding_bottom,r,a),b=(0,g.scaleSequential)(o.colors).domain([i[i.length-1],i[0]]);this.colorScale&&this.colorScale.remove(),this.colorScale=t.$el.svg.append("g").attr("width",50).attr("height",r).attr("class",_.colorScale),this.colorScale.append("g").attr("transform",`translate(0, ${n.padding_top})`).selectAll("bars").data(i).enter().append("rect").attr("y",(y,at)=>at*a).attr("x",0).attr("width",s).attr("height",a).attr("fill",y=>b(y));const f=(0,g.scaleSymlog)().domain([o.minEpochs,o.maxEpochs]).range([i[0]+n.padding_top+i[i.length-1]+a-1,i[0]+n.padding_top]),c=(0,Ve.axisRight)(f),l=n.scale_format;l==="pow10"?c.tickValues([1,10,100,1e3,1e4,1e5,1e6,1e7]):P(l)?c.tickFormat(l):c.tickFormat((0,ke.format)("d"));const x=this.colorScale.append("g").attr("class","legend axis").attr("transform",`translate(${s},0)`).call(c);l==="pow10"&&x.selectAll(".tick text").text(null).filter(y=>y/Math.pow(10,Math.ceil(Math.log(y)/Math.LN10-1e-12))===1).text(10).append("tspan").attr("dy","-.7em").text(y=>Math.round(Math.log(y)/Math.LN10)),this.colorScale.attr("transform",`translate(${t.state.current.width-this.xForColorScale()}, 0)`)}xForColorScale(){return this.owner.config.padding_right+this.colorScale.node().getBBox().width}getColorScalePadding(){return this.xForColorScale()+this.owner.config.padding_left+20}}function We(e,t){const n=e.x,o=e.value;let r=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s].x,b=t[s].y,f=t[a].x,c=t[a].y;b>o!=c>o&&n<(f-i)*(o-b)/(c-b)+i&&(r=!r)}return r}function Ze(e,t){return e.epochs<t.epochs?-1:e.epochs>t.epochs?1:0}function Je(e){let t=0,n,o;for(let r=0,s=e.length,a=s-1;r<s;a=r,r++)n=e[r],o=e[a],t+=n.x*o.y,t-=n.y*o.x;return t/=2,t}function C(e){const t=Je(e);let n=0,o=0,r;for(let s=0,a=e.length,i=a-1;s<a;i=s,s++){const b=e[s],f=e[i];r=b.x*f.y-f.x*b.y,n+=(b.x+f.x)*r,o+=(b.y+f.y)*r}return r=t*6,{x:n/r,y:o/r}}var Qe=Object.defineProperty,et=(e,t,n)=>t in e?Qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tt=(e,t,n)=>(et(e,typeof t!="symbol"?t+"":t,n),n);class nt{constructor(t){tt(this,"owner"),this.owner=t;const n=t.$$.$el.main.select(".bb-chart").append("g").attr("class",_.stanfordElements);n.append("g").attr("class",_.stanfordLines),n.append("g").attr("class",_.stanfordRegions)}updateStanfordLines(t){const{$$:n}=this.owner,{config:o,$el:{main:r}}=n,s=o.axis_rotated,a=this.xvCustom.bind(n),i=this.yvCustom.bind(n),b=r.select(`.${_.stanfordLines}`).style("shape-rendering","geometricprecision").selectAll(`.${_.stanfordLine}`).data(this.owner.config.lines);b.exit().transition().duration(t).style("opacity","0").remove();const f=b.enter().append("g");f.append("line").style("opacity","0"),f.merge(b).attr("class",c=>_.stanfordLine+(c.class?` ${c.class}`:"")).select("line").transition().duration(t).attr("x1",c=>s?i(c,"y1"):a(c,"x1")).attr("x2",c=>s?i(c,"y2"):a(c,"x2")).attr("y1",c=>s?a(c,"x1"):i(c,"y1")).attr("y2",c=>s?a(c,"x2"):i(c,"y2")).transition().style("opacity",null)}updateStanfordRegions(t){const{$$:n}=this.owner,{config:o,$el:{main:r}}=n,s=o.axis_rotated,a=this.xvCustom.bind(n),i=this.yvCustom.bind(n),b=this.owner.countEpochsInRegion.bind(n);let f=r.select(`.${_.stanfordRegions}`).selectAll(`.${_.stanfordRegion}`).data(this.owner.config.regions);f.exit().transition().duration(t).style("opacity","0").remove();const c=f.enter().append("g");c.append("polygon").style("opacity","0"),c.append("text").attr("transform",s?"rotate(-90)":"").style("opacity","0"),f=c.merge(f),f.attr("class",l=>_.stanfordRegion+(l.class?` ${l.class}`:"")).select("polygon").transition().duration(t).attr("points",l=>l.points.map(x=>[s?i(x,"y"):a(x,"x"),s?a(x,"x"):i(x,"y")].join(",")).join(" ")).transition().style("opacity",l=>String(l.opacity?l.opacity:.2)),f.select("text").transition().duration(t).attr("x",l=>s?i(C(l.points),"y"):a(C(l.points),"x")).attr("y",l=>s?a(C(l.points),"x"):i(C(l.points),"y")).text(l=>{if(l.text){const{value:x,percentage:y}=b(l.points);return l.text(x,y)}return""}).attr("text-anchor","middle").attr("dominant-baseline","middle").transition().style("opacity",null)}updateStanfordElements(t=0){this.updateStanfordLines(t),this.updateStanfordRegions(t)}xvCustom(t,n){const o=this,{axis:r,config:s}=o;let a=n?t[n]:o.getBaseValue(t);return r.isTimeSeries()?a=Be.call(o,a):r.isCategorized()&&$(a)&&(a=s.axis_x_categories.indexOf(t.value)),Math.ceil(o.scale.x(a))}yvCustom(t,n){const o=this,r=t.axis&&t.axis==="y2"?o.scale.y2:o.scale.y,s=n?t[n]:o.getBaseValue(t);return Math.ceil(r(s))}}class z{constructor(){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:[]}}}var ot=Object.defineProperty,rt=(e,t,n)=>t in e?ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t,n)=>(rt(e,typeof t!="symbol"?t+"":t,n),n);class st extends V{constructor(t){return super(t),M(this,"config"),M(this,"colorScale"),M(this,"elements"),this.config=new z,this}$beforeInit(){const{$$:t}=this;t.config.data_xSort=!1,t.isMultipleX=()=>!0,t.showGridFocus=()=>{},t.labelishData=o=>o.values,t.opacityForCircle=()=>1;const n=t.getCurrentPadding.bind(t);t.getCurrentPadding=()=>{const o=n();return o.right+=this.colorScale?this.colorScale.getColorScalePadding():0,o}}$init(){const{$$:t}=this;Xe.call(this,this.options),t.color=this.getStanfordPointColor.bind(t),this.colorScale=new Ke(this),this.elements=new nt(this),this.convertData(),this.initStanfordData(),this.setStanfordTooltip(),this.colorScale.drawColorScale(),t.right+=this.colorScale?this.colorScale.getColorScalePadding():0,this.$redraw()}$redraw(t){var n,o;(n=this.colorScale)==null||n.drawColorScale(),(o=this.elements)==null||o.updateStanfordElements(t)}getOptions(){return new z}convertData(){const t=this.$$.data.targets,n=this.options.epochs;t.forEach(o=>{o.values.forEach((r,s)=>{r.epochs=n[s]}),o.minEpochs=void 0,o.maxEpochs=void 0,o.colors=void 0,o.colorscale=void 0})}initStanfordData(){const{config:t}=this,n=this.$$.data.targets[0];n.values.sort(Ze);const o=n.values.map(r=>r.epochs);n.minEpochs=isNaN(t.scale_min)?Math.min(...o):t.scale_min,n.maxEpochs=isNaN(t.scale_max)?Math.max(...o):t.scale_max,n.colors=P(t.colors)?t.colors:(0,m.interpolateHslLong)((0,u.hsl)(250,1,.5),(0,u.hsl)(0,1,.5)),n.colorscale=(0,g.scaleSequentialLog)(n.colors).domain([n.minEpochs,n.maxEpochs])}getStanfordPointColor(t){return this.data.targets[0].colorscale(t.epochs)}setStanfordTooltip(){const{config:t}=this.$$;Y(t.tooltip_contents)&&(t.tooltip_contents=function(n,o,r,s){const{data_x:a}=t;let i=`<table class="${O.tooltip}"><tbody>`;return n.forEach(b=>{const{id:f="",value:c=0,epochs:l=0,x=""}=b;i+=`<tr>
13
+ `),a=o?s.length-1:1;e.html(""),s.forEach((i,b)=>{e.append("tspan").attr("x",0).attr("dy",`${b===0?n[0]*a:n[1]}em`).text(i)})}}}function Me(e){const{x:t,y:n,width:o,height:r}=e.getBBox();return[{x:t,y:n+r},{x:t,y:n},{x:t+o,y:n},{x:t+o,y:n+r}]}function Ct(e){const{width:t,height:n}=e.getBoundingClientRect(),o=Me(e),r=o[0].x,s=Math.min(o[0].y,o[1].y);return{x:r,y:s,width:t,height:n}}function Ot(e,t){var n;const o=e&&((n=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:n[0]);let r=[0,0];try{r=d3Pointer(o||e,t)}catch(s){}return r.map(s=>isNaN(s)?0:s)}function Ie(e){const{event:t,$el:n}=e,o=n.subchart.main||n.main;let r;return t&&t.type==="brush"?r=t.selection:o&&(r=o.select(".bb-brush").node())&&(r=d3BrushSelection(r)),r}function Pt(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Rt(e=!0,t=0,n=1e4){const o=window.crypto||window.msCrypto,r=o?t+o.getRandomValues(new Uint32Array(1))[0]%(n-t+1):Math.floor(Math.random()*(n-t)+t);return e?String(r):r}function G(e,t,n,o,r){if(n>o)return-1;const s=Math.floor((n+o)/2);let{x:a,w:i=0}=e[s];return r&&(a=e[s].y,i=e[s].h),t>=a&&t<=a+i?s:t<a?G(e,t,n,s-1,r):G(e,t,s+1,o,r)}function At(e){const t=Ie(e);return t?t[0]===t[1]:!0}function Tt(...e){const t=n=>{if(S(n)&&n.constructor){const o=new n.constructor;for(const r in n)o[r]=t(n[r]);return o}return n};return e.map(n=>t(n)).reduce((n,o)=>U(U({},n),o))}function De(e={},t){T(t)&&t.forEach(n=>De(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}const Lt=e=>e.charAt(0).toUpperCase()+e.slice(1);function jt(e,t="-"){return e.split(t).map((n,o)=>o?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const Ne=e=>[].slice.call(e);function Mt(e,t,n){const{rootSelector:o="",sheet:r}=e,a=`${o} ${(i=>i.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(t)} {${n.join(";")}}`;return r[r.insertRule?"insertRule":"addRule"](a,r.cssRules.length)}function It(e){let t=[];return e.forEach(n=>{var o;try{n.cssRules&&n.cssRules.length&&(t=t.concat(Ne(n.cssRules)))}catch(r){(o=window.console)==null||o.warn(`Error while reading rules from ${n.href}: ${r.toString()}`)}}),t}function Dt(e){var t,n,o,r;return{x:((n=(t=window.pageXOffset)!=null?t:window.scrollX)!=null?n:0)+e.scrollLeft,y:((r=(o=window.pageYOffset)!=null?o:window.scrollY)!=null?r:0)+e.scrollTop}}function Nt(e){const t=e?e.transform:null,n=t&&t.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ft(e){const t=e[0]instanceof Date,n=(t?e.map(Number):e).filter((o,r,s)=>s.indexOf(o)===r);return t?n.map(o=>new Date(o)):n}function qt(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function L(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return S(e)&&S(n)&&Object.keys(n).forEach(o=>{const r=n[o];S(r)?(!e[o]&&(e[o]={}),e[o]=L(e[o],r)):e[o]=T(r)?r.concat():r}),L(e,...t)}function Fe(e,t=!0){let n;return e[0]instanceof Date?n=t?(o,r)=>o-r:(o,r)=>r-o:t&&!e.every(isNaN)?n=(o,r)=>o-r:t||(n=(o,r)=>o>r&&-1||o<r&&1||o===r&&0),e.concat().sort(n)}function Bt(e,t){let n=t.filter(o=>je(o));return n.length?R(n[0])?n=Math[e](...n):n[0]instanceof Date&&(n=Fe(n,e==="min")[0]):n=void 0,n}const qe=(e,t,n=1)=>{const o=[],r=Math.max(0,Math.ceil((t-e)/n))|0;for(let s=e;s<r;s++)o.push(e+s*n);return o},Ut={mouse:(()=>{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,n,o=e())=>{t.dispatchEvent(new MouseEvent(n,o))}}catch(t){return(n,o,r=e())=>{const s=Pe.createEvent("MouseEvent");s.initMouseEvent(o,r.bubbles,r.cancelable,E,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}}})(),touch:(e,t,n)=>{const o=new Touch(L({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}};function Xt(e,t){let n=e;for(const o in t)n=n.replace(new RegExp(`{=${o}}`,"g"),t[o]);return n}function Be(e){var t;let n;if(e instanceof Date)n=e;else if($(e)){const{config:o,format:r}=this;n=(t=r.dataTime(o.data_xFormat)(e))!=null?t:new Date(e)}else R(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function Yt(){var e,t;return((e=document)==null?void 0:e.hidden)===!1||((t=document)==null?void 0:t.visibilityState)==="visible"}function Gt(e,t){const{DocumentTouch:n,matchMedia:o,navigator:r}=window;let s=!1;if(t)if(r&&"maxTouchPoints"in r)s=r.maxTouchPoints>0;else if("ontouchmove"in window||n&&document instanceof n)s=!0;else if(o!=null&&o("(pointer:coarse)").matches)s=!0;else{const i=r.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(i)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(i)}return e&&["any-hover:hover","any-pointer:fine"].some(i=>o==null?void 0:o(`(${i})`).matches)&&"mouse"||s&&"touch"||"mouse"}function Ue(e,t){t()===!1?requestAnimationFrame(()=>Ue(e,t)):e()}function Xe(e){const t=this.config;let n,o,r;const s=()=>{const a=o.shift();if(a&&n&&A(n)&&a in n)return n=n[a],s();if(!a)return n};Object.keys(t).forEach(a=>{n=e,o=a.split("_"),r=s(),X(r)&&(t[a]=r)}),this.api&&(this.state.orgConfig=e)}var Ye=Object.defineProperty,Ge=(e,t,n)=>t in e?Ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j=(e,t,n)=>(Ge(e,typeof t!="symbol"?t+"":t,n),n);class V{constructor(t={}){j(this,"$$"),j(this,"options"),this.options=t}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}j(V,"version","3.12.2");var Ve=p(996),ke=p(390),_={colorScale:"bb-colorscale",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions"},ze=Object.defineProperty,He=(e,t,n)=>t in e?ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,k=(e,t,n)=>(He(e,typeof t!="symbol"?t+"":t,n),n);class Ke{constructor(t){k(this,"owner"),k(this,"colorScale"),this.owner=t}drawColorScale(){const{$$:t,config:n}=this.owner,o=t.data.targets[0],r=t.state.height-n.padding_bottom-n.padding_top,s=n.scale_width,a=5,i=qe(n.padding_bottom,r,a),b=(0,g.scaleSequential)(o.colors).domain([i[i.length-1],i[0]]);this.colorScale&&this.colorScale.remove(),this.colorScale=t.$el.svg.append("g").attr("width",50).attr("height",r).attr("class",_.colorScale),this.colorScale.append("g").attr("transform",`translate(0, ${n.padding_top})`).selectAll("bars").data(i).enter().append("rect").attr("y",(y,at)=>at*a).attr("x",0).attr("width",s).attr("height",a).attr("fill",y=>b(y));const f=(0,g.scaleSymlog)().domain([o.minEpochs,o.maxEpochs]).range([i[0]+n.padding_top+i[i.length-1]+a-1,i[0]+n.padding_top]),c=(0,Ve.axisRight)(f),l=n.scale_format;l==="pow10"?c.tickValues([1,10,100,1e3,1e4,1e5,1e6,1e7]):P(l)?c.tickFormat(l):c.tickFormat((0,ke.format)("d"));const x=this.colorScale.append("g").attr("class","legend axis").attr("transform",`translate(${s},0)`).call(c);l==="pow10"&&x.selectAll(".tick text").text(null).filter(y=>y/Math.pow(10,Math.ceil(Math.log(y)/Math.LN10-1e-12))===1).text(10).append("tspan").attr("dy","-.7em").text(y=>Math.round(Math.log(y)/Math.LN10)),this.colorScale.attr("transform",`translate(${t.state.current.width-this.xForColorScale()}, 0)`)}xForColorScale(){return this.owner.config.padding_right+this.colorScale.node().getBBox().width}getColorScalePadding(){return this.xForColorScale()+this.owner.config.padding_left+20}}function We(e,t){const n=e.x,o=e.value;let r=!1;for(let s=0,a=t.length-1;s<t.length;a=s++){const i=t[s].x,b=t[s].y,f=t[a].x,c=t[a].y;b>o!=c>o&&n<(f-i)*(o-b)/(c-b)+i&&(r=!r)}return r}function Ze(e,t){return e.epochs<t.epochs?-1:e.epochs>t.epochs?1:0}function Je(e){let t=0,n,o;for(let r=0,s=e.length,a=s-1;r<s;a=r,r++)n=e[r],o=e[a],t+=n.x*o.y,t-=n.y*o.x;return t/=2,t}function C(e){const t=Je(e);let n=0,o=0,r;for(let s=0,a=e.length,i=a-1;s<a;i=s,s++){const b=e[s],f=e[i];r=b.x*f.y-f.x*b.y,n+=(b.x+f.x)*r,o+=(b.y+f.y)*r}return r=t*6,{x:n/r,y:o/r}}var Qe=Object.defineProperty,et=(e,t,n)=>t in e?Qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tt=(e,t,n)=>(et(e,typeof t!="symbol"?t+"":t,n),n);class nt{constructor(t){tt(this,"owner"),this.owner=t;const n=t.$$.$el.main.select(".bb-chart").append("g").attr("class",_.stanfordElements);n.append("g").attr("class",_.stanfordLines),n.append("g").attr("class",_.stanfordRegions)}updateStanfordLines(t){const{$$:n}=this.owner,{config:o,$el:{main:r}}=n,s=o.axis_rotated,a=this.xvCustom.bind(n),i=this.yvCustom.bind(n),b=r.select(`.${_.stanfordLines}`).style("shape-rendering","geometricprecision").selectAll(`.${_.stanfordLine}`).data(this.owner.config.lines);b.exit().transition().duration(t).style("opacity","0").remove();const f=b.enter().append("g");f.append("line").style("opacity","0"),f.merge(b).attr("class",c=>_.stanfordLine+(c.class?` ${c.class}`:"")).select("line").transition().duration(t).attr("x1",c=>s?i(c,"y1"):a(c,"x1")).attr("x2",c=>s?i(c,"y2"):a(c,"x2")).attr("y1",c=>s?a(c,"x1"):i(c,"y1")).attr("y2",c=>s?a(c,"x2"):i(c,"y2")).transition().style("opacity",null)}updateStanfordRegions(t){const{$$:n}=this.owner,{config:o,$el:{main:r}}=n,s=o.axis_rotated,a=this.xvCustom.bind(n),i=this.yvCustom.bind(n),b=this.owner.countEpochsInRegion.bind(n);let f=r.select(`.${_.stanfordRegions}`).selectAll(`.${_.stanfordRegion}`).data(this.owner.config.regions);f.exit().transition().duration(t).style("opacity","0").remove();const c=f.enter().append("g");c.append("polygon").style("opacity","0"),c.append("text").attr("transform",s?"rotate(-90)":"").style("opacity","0"),f=c.merge(f),f.attr("class",l=>_.stanfordRegion+(l.class?` ${l.class}`:"")).select("polygon").transition().duration(t).attr("points",l=>l.points.map(x=>[s?i(x,"y"):a(x,"x"),s?a(x,"x"):i(x,"y")].join(",")).join(" ")).transition().style("opacity",l=>String(l.opacity?l.opacity:.2)),f.select("text").transition().duration(t).attr("x",l=>s?i(C(l.points),"y"):a(C(l.points),"x")).attr("y",l=>s?a(C(l.points),"x"):i(C(l.points),"y")).text(l=>{if(l.text){const{value:x,percentage:y}=b(l.points);return l.text(x,y)}return""}).attr("text-anchor","middle").attr("dominant-baseline","middle").transition().style("opacity",null)}updateStanfordElements(t=0){this.updateStanfordLines(t),this.updateStanfordRegions(t)}xvCustom(t,n){const o=this,{axis:r,config:s}=o;let a=n?t[n]:o.getBaseValue(t);return r.isTimeSeries()?a=Be.call(o,a):r.isCategorized()&&$(a)&&(a=s.axis_x_categories.indexOf(t.value)),Math.ceil(o.scale.x(a))}yvCustom(t,n){const o=this,r=t.axis&&t.axis==="y2"?o.scale.y2:o.scale.y,s=n?t[n]:o.getBaseValue(t);return Math.ceil(r(s))}}class z{constructor(){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:[]}}}var ot=Object.defineProperty,rt=(e,t,n)=>t in e?ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t,n)=>(rt(e,typeof t!="symbol"?t+"":t,n),n);class st extends V{constructor(t){return super(t),M(this,"config"),M(this,"colorScale"),M(this,"elements"),this.config=new z,this}$beforeInit(){const{$$:t}=this;t.config.data_xSort=!1,t.isMultipleX=()=>!0,t.showGridFocus=()=>{},t.labelishData=o=>o.values,t.opacityForCircle=()=>1;const n=t.getCurrentPadding.bind(t);t.getCurrentPadding=()=>{const o=n();return o.right+=this.colorScale?this.colorScale.getColorScalePadding():0,o}}$init(){const{$$:t}=this;Xe.call(this,this.options),t.color=this.getStanfordPointColor.bind(t),this.colorScale=new Ke(this),this.elements=new nt(this),this.convertData(),this.initStanfordData(),this.setStanfordTooltip(),this.colorScale.drawColorScale(),t.right+=this.colorScale?this.colorScale.getColorScalePadding():0,this.$redraw()}$redraw(t){var n,o;(n=this.colorScale)==null||n.drawColorScale(),(o=this.elements)==null||o.updateStanfordElements(t)}getOptions(){return new z}convertData(){const t=this.$$.data.targets,n=this.options.epochs;t.forEach(o=>{o.values.forEach((r,s)=>{r.epochs=n[s]}),o.minEpochs=void 0,o.maxEpochs=void 0,o.colors=void 0,o.colorscale=void 0})}initStanfordData(){const{config:t}=this,n=this.$$.data.targets[0];n.values.sort(Ze);const o=n.values.map(r=>r.epochs);n.minEpochs=isNaN(t.scale_min)?Math.min(...o):t.scale_min,n.maxEpochs=isNaN(t.scale_max)?Math.max(...o):t.scale_max,n.colors=P(t.colors)?t.colors:(0,m.interpolateHslLong)((0,u.hsl)(250,1,.5),(0,u.hsl)(0,1,.5)),n.colorscale=(0,g.scaleSequentialLog)(n.colors).domain([n.minEpochs,n.maxEpochs])}getStanfordPointColor(t){return this.data.targets[0].colorscale(t.epochs)}setStanfordTooltip(){const{config:t}=this.$$;Y(t.tooltip_contents)&&(t.tooltip_contents=function(n,o,r,s){const{data_x:a}=t;let i=`<table class="${O.tooltip}"><tbody>`;return n.forEach(b=>{const{id:f="",value:c=0,epochs:l=0,x=""}=b;i+=`<tr>
14
14
  <th>${a||""}</th>
15
15
  <th class="value">${o(x)}</th>
16
16
  </tr>
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.12.1
8
+ * @version 3.12.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -601,7 +601,7 @@ class Plugin {
601
601
  });
602
602
  }
603
603
  }
604
- __publicField(Plugin, "version", "3.12.1");
604
+ __publicField(Plugin, "version", "3.12.2");
605
605
 
606
606
  ;// CONCATENATED MODULE: ./src/Plugin/tableview/const.ts
607
607
 
@@ -5,12 +5,12 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.12.1
8
+ * @version 3.12.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */(function(u,b){typeof exports=="object"&&typeof module=="object"?module.exports=b(require("d3-brush"),require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-brush","d3-selection"],b):typeof exports=="object"?exports.bb=b(require("d3-brush"),require("d3-selection")):(u.bb=u.bb||{},u.bb.plugin=u.bb.plugin||{},u.bb.plugin.tableview=b(u.d3,u.d3))})(this,function(M,u){return function(){"use strict";var b={853:function(c){c.exports=M},747:function(c){c.exports=u}},D={};function d(c){var f=D[c];if(f!==void 0)return f.exports;var a=D[c]={exports:{}};return b[c](a,a.exports,d),a.exports}(function(){d.d=function(c,f){for(var a in f)d.o(f,a)&&!d.o(c,a)&&Object.defineProperty(c,a,{enumerable:!0,get:f[a]})}})(),function(){d.o=function(c,f){return Object.prototype.hasOwnProperty.call(c,f)}}();var _={};return function(){d.d(_,{default:function(){return be}});var c=d(853),f=d(747);function a(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function L(e){const n=typeof(e==null?void 0:e.requestAnimationFrame)=="function"&&typeof(e==null?void 0:e.cancelAnimationFrame)=="function",t=typeof(e==null?void 0:e.requestIdleCallback)=="function"&&typeof(e==null?void 0:e.cancelIdleCallback)=="function",o=r=>setTimeout(r,1),i=r=>clearTimeout(r);return[n?e.requestAnimationFrame:o,n?e.cancelAnimationFrame:i,t?e.requestIdleCallback:o,t?e.cancelIdleCallback:i]}const y=a(),U=y==null?void 0:y.document,[pe,me,ge,_e]=L(y);var z=Object.defineProperty,A=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,N=(e,n,t)=>n in e?z(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,I=(e,n)=>{for(var t in n||(n={}))X.call(n,t)&&N(e,t,n[t]);if(A)for(var t of A(n))Y.call(n,t)&&N(e,t,n[t]);return e};const ye=e=>e||e===0,H=e=>typeof e=="function",v=e=>typeof e=="string",w=e=>typeof e=="number",k=e=>typeof e=="undefined",F=e=>typeof e!="undefined",ve=e=>typeof e=="boolean",we=e=>Math.ceil(e/10)*10,Oe=e=>Math.ceil(e)+.5,xe=e=>e[1]-e[0],P=e=>typeof e=="object",G=e=>k(e)||e===null||v(e)&&e.length===0||P(e)&&!(e instanceof Date)&&Object.keys(e).length===0||w(e)&&isNaN(e),K=e=>!G(e),$=e=>Array.isArray(e),O=e=>e&&!(e!=null&&e.nodeType)&&P(e)&&!$(e);function Ee(e,n,t){return F(e[n])?e[n]:t}function Pe(e,n){let t=!1;return Object.keys(e).forEach(o=>e[o]===n&&(t=!0)),t}function $e(e,n,...t){const o=H(e);return o&&e.call(n,...t),o}function Te(e,n){let t=0;const o=function(...i){!--t&&n.apply(this,...i)};"duration"in e?e.each(()=>++t).on("end",o):(++t,e.call(o))}function je(e){return v(e)?e.replace(/<(script|img)?/ig,"&lt;").replace(/(script)?>/ig,"&gt;"):e}function Ce(e,n,t=[-1,1],o=!1){if(!(!e||!v(n)))if(n.indexOf(`
12
12
  `)===-1)e.text(n);else{const i=[e.text(),n].map(r=>r.replace(/[\s\n]/g,""));if(i[0]!==i[1]){const r=n.split(`
13
- `),l=o?r.length-1:1;e.html(""),r.forEach((s,S)=>{e.append("tspan").attr("x",0).attr("dy",`${S===0?t[0]*l:t[1]}em`).text(s)})}}}function W(e){const{x:n,y:t,width:o,height:i}=e.getBBox();return[{x:n,y:t+i},{x:n,y:t},{x:n+o,y:t},{x:n+o,y:t+i}]}function Se(e){const{width:n,height:t}=e.getBoundingClientRect(),o=W(e),i=o[0].x,r=Math.min(o[0].y,o[1].y);return{x:i,y:r,width:n,height:t}}function Me(e,n){var t;const o=e&&((t=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:t[0]);let i=[0,0];try{i=d3Pointer(o||e,n)}catch(r){}return i.map(r=>isNaN(r)?0:r)}function J(e){const{event:n,$el:t}=e,o=t.subchart.main||t.main;let i;return n&&n.type==="brush"?i=n.selection:o&&(i=o.select(".bb-brush").node())&&(i=d3BrushSelection(i)),i}function De(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Ae(e=!0,n=0,t=1e4){const o=window.crypto||window.msCrypto,i=o?n+o.getRandomValues(new Uint32Array(1))[0]%(t-n+1):Math.floor(Math.random()*(t-n)+n);return e?String(i):i}function B(e,n,t,o,i){if(t>o)return-1;const r=Math.floor((t+o)/2);let{x:l,w:s=0}=e[r];return i&&(l=e[r].y,s=e[r].h),n>=l&&n<=l+s?r:n<l?B(e,n,t,r-1,i):B(e,n,r+1,o,i)}function Ne(e){const n=J(e);return n?n[0]===n[1]:!0}function Ie(...e){const n=t=>{if(O(t)&&t.constructor){const o=new t.constructor;for(const i in t)o[i]=n(t[i]);return o}return t};return e.map(t=>n(t)).reduce((t,o)=>I(I({},t),o))}function Q(e={},n){$(n)&&n.forEach(t=>Q(e,t));for(const t in n)/^\d+$/.test(t)||t in e||(e[t]=n[t]);return e}const Fe=e=>e.charAt(0).toUpperCase()+e.slice(1);function Be(e,n="-"){return e.split(n).map((t,o)=>o?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()).join("")}const Z=e=>[].slice.call(e);function Re(e,n,t){const{rootSelector:o="",sheet:i}=e,l=`${o} ${(s=>s.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(n)} {${t.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](l,i.cssRules.length)}function qe(e){let n=[];return e.forEach(t=>{var o;try{t.cssRules&&t.cssRules.length&&(n=n.concat(Z(t.cssRules)))}catch(i){(o=window.console)==null||o.warn(`Error while reading rules from ${t.href}: ${i.toString()}`)}}),n}function Ve(e){var n,t,o,i;return{x:((t=(n=window.pageXOffset)!=null?n:window.scrollX)!=null?t:0)+e.scrollLeft,y:((i=(o=window.pageYOffset)!=null?o:window.scrollY)!=null?i:0)+e.scrollTop}}function Le(e){const n=e?e.transform:null,t=n&&n.baseVal;return t&&t.numberOfItems?t.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ue(e){const n=e[0]instanceof Date,t=(n?e.map(Number):e).filter((o,i,r)=>r.indexOf(o)===i);return n?t.map(o=>new Date(o)):t}function ze(e){return e&&e.length?e.reduce((n,t)=>n.concat(t)):[]}function T(e,...n){if(!n.length||n.length===1&&!n[0])return e;const t=n.shift();return O(e)&&O(t)&&Object.keys(t).forEach(o=>{const i=t[o];O(i)?(!e[o]&&(e[o]={}),e[o]=T(e[o],i)):e[o]=$(i)?i.concat():i}),T(e,...n)}function ee(e,n=!0){let t;return e[0]instanceof Date?t=n?(o,i)=>o-i:(o,i)=>i-o:n&&!e.every(isNaN)?t=(o,i)=>o-i:n||(t=(o,i)=>o>i&&-1||o<i&&1||o===i&&0),e.concat().sort(t)}function Xe(e,n){let t=n.filter(o=>K(o));return t.length?w(t[0])?t=Math[e](...t):t[0]instanceof Date&&(t=ee(t,e==="min")[0]):t=void 0,t}const Ye=(e,n,t=1)=>{const o=[],i=Math.max(0,Math.ceil((n-e)/t))|0;for(let r=e;r<i;r++)o.push(e+r*t);return o},He={mouse:(()=>{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(n,t,o=e())=>{n.dispatchEvent(new MouseEvent(t,o))}}catch(n){return(t,o,i=e())=>{const r=U.createEvent("MouseEvent");r.initMouseEvent(o,i.bubbles,i.cancelable,y,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(r)}}})(),touch:(e,n,t)=>{const o=new Touch(T({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},t));e.dispatchEvent(new TouchEvent(n,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}};function x(e,n){let t=e;for(const o in n)t=t.replace(new RegExp(`{=${o}}`,"g"),n[o]);return t}function ke(e){var n;let t;if(e instanceof Date)t=e;else if(v(e)){const{config:o,format:i}=this;t=(n=i.dataTime(o.data_xFormat)(e))!=null?n:new Date(e)}else w(e)&&!isNaN(e)&&(t=new Date(+e));return(!t||isNaN(+t))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),t}function Ge(){var e,n;return((e=document)==null?void 0:e.hidden)===!1||((n=document)==null?void 0:n.visibilityState)==="visible"}function Ke(e,n){const{DocumentTouch:t,matchMedia:o,navigator:i}=window;let r=!1;if(n)if(i&&"maxTouchPoints"in i)r=i.maxTouchPoints>0;else if("ontouchmove"in window||t&&document instanceof t)r=!0;else if(o!=null&&o("(pointer:coarse)").matches)r=!0;else{const s=i.userAgent;r=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(s)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(s)}return e&&["any-hover:hover","any-pointer:fine"].some(s=>o==null?void 0:o(`(${s})`).matches)&&"mouse"||r&&"touch"||"mouse"}function te(e,n){n()===!1?requestAnimationFrame(()=>te(e,n)):e()}function ne(e){const n=this.config;let t,o,i;const r=()=>{const l=o.shift();if(l&&t&&P(t)&&l in t)return t=t[l],r();if(!l)return t};Object.keys(n).forEach(l=>{t=e,o=l.split("_"),i=r(),F(i)&&(n[l]=i)}),this.api&&(this.state.orgConfig=e)}var oe=Object.defineProperty,ie=(e,n,t)=>n in e?oe(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,j=(e,n,t)=>(ie(e,typeof n!="symbol"?n+"":n,t),t);class R{constructor(n={}){j(this,"$$"),j(this,"options"),this.options=n}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(n=>{this[n]=null,delete this[n]})}}j(R,"version","3.12.1");const h={id:"__tableview-style__",class:"bb-tableview",rule:`.bb-tableview {
13
+ `),l=o?r.length-1:1;e.html(""),r.forEach((s,S)=>{e.append("tspan").attr("x",0).attr("dy",`${S===0?t[0]*l:t[1]}em`).text(s)})}}}function W(e){const{x:n,y:t,width:o,height:i}=e.getBBox();return[{x:n,y:t+i},{x:n,y:t},{x:n+o,y:t},{x:n+o,y:t+i}]}function Se(e){const{width:n,height:t}=e.getBoundingClientRect(),o=W(e),i=o[0].x,r=Math.min(o[0].y,o[1].y);return{x:i,y:r,width:n,height:t}}function Me(e,n){var t;const o=e&&((t=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:t[0]);let i=[0,0];try{i=d3Pointer(o||e,n)}catch(r){}return i.map(r=>isNaN(r)?0:r)}function J(e){const{event:n,$el:t}=e,o=t.subchart.main||t.main;let i;return n&&n.type==="brush"?i=n.selection:o&&(i=o.select(".bb-brush").node())&&(i=d3BrushSelection(i)),i}function De(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Ae(e=!0,n=0,t=1e4){const o=window.crypto||window.msCrypto,i=o?n+o.getRandomValues(new Uint32Array(1))[0]%(t-n+1):Math.floor(Math.random()*(t-n)+n);return e?String(i):i}function B(e,n,t,o,i){if(t>o)return-1;const r=Math.floor((t+o)/2);let{x:l,w:s=0}=e[r];return i&&(l=e[r].y,s=e[r].h),n>=l&&n<=l+s?r:n<l?B(e,n,t,r-1,i):B(e,n,r+1,o,i)}function Ne(e){const n=J(e);return n?n[0]===n[1]:!0}function Ie(...e){const n=t=>{if(O(t)&&t.constructor){const o=new t.constructor;for(const i in t)o[i]=n(t[i]);return o}return t};return e.map(t=>n(t)).reduce((t,o)=>I(I({},t),o))}function Q(e={},n){$(n)&&n.forEach(t=>Q(e,t));for(const t in n)/^\d+$/.test(t)||t in e||(e[t]=n[t]);return e}const Fe=e=>e.charAt(0).toUpperCase()+e.slice(1);function Be(e,n="-"){return e.split(n).map((t,o)=>o?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()).join("")}const Z=e=>[].slice.call(e);function Re(e,n,t){const{rootSelector:o="",sheet:i}=e,l=`${o} ${(s=>s.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(n)} {${t.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](l,i.cssRules.length)}function qe(e){let n=[];return e.forEach(t=>{var o;try{t.cssRules&&t.cssRules.length&&(n=n.concat(Z(t.cssRules)))}catch(i){(o=window.console)==null||o.warn(`Error while reading rules from ${t.href}: ${i.toString()}`)}}),n}function Ve(e){var n,t,o,i;return{x:((t=(n=window.pageXOffset)!=null?n:window.scrollX)!=null?t:0)+e.scrollLeft,y:((i=(o=window.pageYOffset)!=null?o:window.scrollY)!=null?i:0)+e.scrollTop}}function Le(e){const n=e?e.transform:null,t=n&&n.baseVal;return t&&t.numberOfItems?t.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ue(e){const n=e[0]instanceof Date,t=(n?e.map(Number):e).filter((o,i,r)=>r.indexOf(o)===i);return n?t.map(o=>new Date(o)):t}function ze(e){return e&&e.length?e.reduce((n,t)=>n.concat(t)):[]}function T(e,...n){if(!n.length||n.length===1&&!n[0])return e;const t=n.shift();return O(e)&&O(t)&&Object.keys(t).forEach(o=>{const i=t[o];O(i)?(!e[o]&&(e[o]={}),e[o]=T(e[o],i)):e[o]=$(i)?i.concat():i}),T(e,...n)}function ee(e,n=!0){let t;return e[0]instanceof Date?t=n?(o,i)=>o-i:(o,i)=>i-o:n&&!e.every(isNaN)?t=(o,i)=>o-i:n||(t=(o,i)=>o>i&&-1||o<i&&1||o===i&&0),e.concat().sort(t)}function Xe(e,n){let t=n.filter(o=>K(o));return t.length?w(t[0])?t=Math[e](...t):t[0]instanceof Date&&(t=ee(t,e==="min")[0]):t=void 0,t}const Ye=(e,n,t=1)=>{const o=[],i=Math.max(0,Math.ceil((n-e)/t))|0;for(let r=e;r<i;r++)o.push(e+r*t);return o},He={mouse:(()=>{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(n,t,o=e())=>{n.dispatchEvent(new MouseEvent(t,o))}}catch(n){return(t,o,i=e())=>{const r=U.createEvent("MouseEvent");r.initMouseEvent(o,i.bubbles,i.cancelable,y,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(r)}}})(),touch:(e,n,t)=>{const o=new Touch(T({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},t));e.dispatchEvent(new TouchEvent(n,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}};function x(e,n){let t=e;for(const o in n)t=t.replace(new RegExp(`{=${o}}`,"g"),n[o]);return t}function ke(e){var n;let t;if(e instanceof Date)t=e;else if(v(e)){const{config:o,format:i}=this;t=(n=i.dataTime(o.data_xFormat)(e))!=null?n:new Date(e)}else w(e)&&!isNaN(e)&&(t=new Date(+e));return(!t||isNaN(+t))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),t}function Ge(){var e,n;return((e=document)==null?void 0:e.hidden)===!1||((n=document)==null?void 0:n.visibilityState)==="visible"}function Ke(e,n){const{DocumentTouch:t,matchMedia:o,navigator:i}=window;let r=!1;if(n)if(i&&"maxTouchPoints"in i)r=i.maxTouchPoints>0;else if("ontouchmove"in window||t&&document instanceof t)r=!0;else if(o!=null&&o("(pointer:coarse)").matches)r=!0;else{const s=i.userAgent;r=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(s)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(s)}return e&&["any-hover:hover","any-pointer:fine"].some(s=>o==null?void 0:o(`(${s})`).matches)&&"mouse"||r&&"touch"||"mouse"}function te(e,n){n()===!1?requestAnimationFrame(()=>te(e,n)):e()}function ne(e){const n=this.config;let t,o,i;const r=()=>{const l=o.shift();if(l&&t&&P(t)&&l in t)return t=t[l],r();if(!l)return t};Object.keys(n).forEach(l=>{t=e,o=l.split("_"),i=r(),F(i)&&(n[l]=i)}),this.api&&(this.state.orgConfig=e)}var oe=Object.defineProperty,ie=(e,n,t)=>n in e?oe(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,j=(e,n,t)=>(ie(e,typeof n!="symbol"?n+"":n,t),t);class R{constructor(n={}){j(this,"$$"),j(this,"options"),this.options=n}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(n=>{this[n]=null,delete this[n]})}}j(R,"version","3.12.2");const h={id:"__tableview-style__",class:"bb-tableview",rule:`.bb-tableview {
14
14
  border-collapse:collapse;
15
15
  border-spacing:0;
16
16
  background:#fff;
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.12.1
8
+ * @version 3.12.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -620,7 +620,7 @@ class Plugin {
620
620
  });
621
621
  }
622
622
  }
623
- __publicField(Plugin, "version", "3.12.1");
623
+ __publicField(Plugin, "version", "3.12.2");
624
624
 
625
625
  ;// CONCATENATED MODULE: ./src/Plugin/textoverlap/Options.ts
626
626
  class Options {
@@ -5,9 +5,9 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.12.1
8
+ * @version 3.12.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */(function(a,p){typeof exports=="object"&&typeof module=="object"?module.exports=p(require("d3-delaunay"),require("d3-polygon"),require("d3-brush"),require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-delaunay","d3-polygon","d3-brush","d3-selection"],p):typeof exports=="object"?exports.bb=p(require("d3-delaunay"),require("d3-polygon"),require("d3-brush"),require("d3-selection")):(a.bb=a.bb||{},a.bb.plugin=a.bb.plugin||{},a.bb.plugin.textoverlap=p(a.d3,a.d3,a.d3,a.d3))})(this,function(E,a,p,q){return function(){"use strict";var R={853:function(c){c.exports=p},348:function(c){c.exports=E},263:function(c){c.exports=a},747:function(c){c.exports=q}},$={};function f(c){var u=$[c];if(u!==void 0)return u.exports;var d=$[c]={exports:{}};return R[c](d,d.exports,f),d.exports}(function(){f.d=function(c,u){for(var d in u)f.o(u,d)&&!f.o(c,d)&&Object.defineProperty(c,d,{enumerable:!0,get:u[d]})}})(),function(){f.o=function(c,u){return Object.prototype.hasOwnProperty.call(c,u)}}();var b={};return function(){f.d(b,{default:function(){return re}});var c=f(348),u=f(263),d=f(853),de=f(747);function F(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function I(e){const n=typeof(e==null?void 0:e.requestAnimationFrame)=="function"&&typeof(e==null?void 0:e.cancelAnimationFrame)=="function",t=typeof(e==null?void 0:e.requestIdleCallback)=="function"&&typeof(e==null?void 0:e.cancelIdleCallback)=="function",o=i=>setTimeout(i,1),r=i=>clearTimeout(i);return[n?e.requestAnimationFrame:o,n?e.cancelAnimationFrame:r,t?e.requestIdleCallback:o,t?e.cancelIdleCallback:r]}const m=F(),S=m==null?void 0:m.document,[pe,he,be,me]=I(m);var B=Object.defineProperty,j=Object.getOwnPropertySymbols,N=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,A=(e,n,t)=>n in e?B(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,M=(e,n)=>{for(var t in n||(n={}))N.call(n,t)&&A(e,t,n[t]);if(j)for(var t of j(n))V.call(n,t)&&A(e,t,n[t]);return e};const _e=e=>e||e===0,U=e=>typeof e=="function",_=e=>typeof e=="string",y=e=>typeof e=="number",X=e=>typeof e=="undefined",T=e=>typeof e!="undefined",ge=e=>typeof e=="boolean",ye=e=>Math.ceil(e/10)*10,ve=e=>Math.ceil(e)+.5,xe=e=>e[1]-e[0],v=e=>typeof e=="object",Y=e=>X(e)||e===null||_(e)&&e.length===0||v(e)&&!(e instanceof Date)&&Object.keys(e).length===0||y(e)&&isNaN(e),L=e=>!Y(e),x=e=>Array.isArray(e),g=e=>e&&!(e!=null&&e.nodeType)&&v(e)&&!x(e);function we(e,n,t){return T(e[n])?e[n]:t}function Oe(e,n){let t=!1;return Object.keys(e).forEach(o=>e[o]===n&&(t=!0)),t}function Pe(e,n,...t){const o=U(e);return o&&e.call(n,...t),o}function Ee(e,n){let t=0;const o=function(...r){!--t&&n.apply(this,...r)};"duration"in e?e.each(()=>++t).on("end",o):(++t,e.call(o))}function $e(e){return _(e)?e.replace(/<(script|img)?/ig,"&lt;").replace(/(script)?>/ig,"&gt;"):e}function je(e,n,t=[-1,1],o=!1){if(!(!e||!_(n)))if(n.indexOf(`
12
12
  `)===-1)e.text(n);else{const r=[e.text(),n].map(i=>i.replace(/[\s\n]/g,""));if(r[0]!==r[1]){const i=n.split(`
13
- `),s=o?i.length-1:1;e.html(""),i.forEach((l,P)=>{e.append("tspan").attr("x",0).attr("dy",`${P===0?t[0]*s:t[1]}em`).text(l)})}}}function z(e){const{x:n,y:t,width:o,height:r}=e.getBBox();return[{x:n,y:t+r},{x:n,y:t},{x:n+o,y:t},{x:n+o,y:t+r}]}function Ae(e){const{width:n,height:t}=e.getBoundingClientRect(),o=z(e),r=o[0].x,i=Math.min(o[0].y,o[1].y);return{x:r,y:i,width:n,height:t}}function Me(e,n){var t;const o=e&&((t=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:t[0]);let r=[0,0];try{r=d3Pointer(o||e,n)}catch(i){}return r.map(i=>isNaN(i)?0:i)}function G(e){const{event:n,$el:t}=e,o=t.subchart.main||t.main;let r;return n&&n.type==="brush"?r=n.selection:o&&(r=o.select(".bb-brush").node())&&(r=d3BrushSelection(r)),r}function Te(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Ce(e=!0,n=0,t=1e4){const o=window.crypto||window.msCrypto,r=o?n+o.getRandomValues(new Uint32Array(1))[0]%(t-n+1):Math.floor(Math.random()*(t-n)+n);return e?String(r):r}function C(e,n,t,o,r){if(t>o)return-1;const i=Math.floor((t+o)/2);let{x:s,w:l=0}=e[i];return r&&(s=e[i].y,l=e[i].h),n>=s&&n<=s+l?i:n<s?C(e,n,t,i-1,r):C(e,n,i+1,o,r)}function De(e){const n=G(e);return n?n[0]===n[1]:!0}function qe(...e){const n=t=>{if(g(t)&&t.constructor){const o=new t.constructor;for(const r in t)o[r]=n(t[r]);return o}return t};return e.map(t=>n(t)).reduce((t,o)=>M(M({},t),o))}function H(e={},n){x(n)&&n.forEach(t=>H(e,t));for(const t in n)/^\d+$/.test(t)||t in e||(e[t]=n[t]);return e}const Re=e=>e.charAt(0).toUpperCase()+e.slice(1);function Fe(e,n="-"){return e.split(n).map((t,o)=>o?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()).join("")}const K=e=>[].slice.call(e);function Ie(e,n,t){const{rootSelector:o="",sheet:r}=e,s=`${o} ${(l=>l.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(n)} {${t.join(";")}}`;return r[r.insertRule?"insertRule":"addRule"](s,r.cssRules.length)}function Se(e){let n=[];return e.forEach(t=>{var o;try{t.cssRules&&t.cssRules.length&&(n=n.concat(K(t.cssRules)))}catch(r){(o=window.console)==null||o.warn(`Error while reading rules from ${t.href}: ${r.toString()}`)}}),n}function Be(e){var n,t,o,r;return{x:((t=(n=window.pageXOffset)!=null?n:window.scrollX)!=null?t:0)+e.scrollLeft,y:((r=(o=window.pageYOffset)!=null?o:window.scrollY)!=null?r:0)+e.scrollTop}}function Ne(e){const n=e?e.transform:null,t=n&&n.baseVal;return t&&t.numberOfItems?t.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ve(e){const n=e[0]instanceof Date,t=(n?e.map(Number):e).filter((o,r,i)=>i.indexOf(o)===r);return n?t.map(o=>new Date(o)):t}function Ue(e){return e&&e.length?e.reduce((n,t)=>n.concat(t)):[]}function w(e,...n){if(!n.length||n.length===1&&!n[0])return e;const t=n.shift();return g(e)&&g(t)&&Object.keys(t).forEach(o=>{const r=t[o];g(r)?(!e[o]&&(e[o]={}),e[o]=w(e[o],r)):e[o]=x(r)?r.concat():r}),w(e,...n)}function W(e,n=!0){let t;return e[0]instanceof Date?t=n?(o,r)=>o-r:(o,r)=>r-o:n&&!e.every(isNaN)?t=(o,r)=>o-r:n||(t=(o,r)=>o>r&&-1||o<r&&1||o===r&&0),e.concat().sort(t)}function Xe(e,n){let t=n.filter(o=>L(o));return t.length?y(t[0])?t=Math[e](...t):t[0]instanceof Date&&(t=W(t,e==="min")[0]):t=void 0,t}const Ye=(e,n,t=1)=>{const o=[],r=Math.max(0,Math.ceil((n-e)/t))|0;for(let i=e;i<r;i++)o.push(e+i*t);return o},Le={mouse:(()=>{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(n,t,o=e())=>{n.dispatchEvent(new MouseEvent(t,o))}}catch(n){return(t,o,r=e())=>{const i=S.createEvent("MouseEvent");i.initMouseEvent(o,r.bubbles,r.cancelable,m,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}})(),touch:(e,n,t)=>{const o=new Touch(w({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},t));e.dispatchEvent(new TouchEvent(n,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}};function ze(e,n){let t=e;for(const o in n)t=t.replace(new RegExp(`{=${o}}`,"g"),n[o]);return t}function Ge(e){var n;let t;if(e instanceof Date)t=e;else if(_(e)){const{config:o,format:r}=this;t=(n=r.dataTime(o.data_xFormat)(e))!=null?n:new Date(e)}else y(e)&&!isNaN(e)&&(t=new Date(+e));return(!t||isNaN(+t))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),t}function He(){var e,n;return((e=document)==null?void 0:e.hidden)===!1||((n=document)==null?void 0:n.visibilityState)==="visible"}function Ke(e,n){const{DocumentTouch:t,matchMedia:o,navigator:r}=window;let i=!1;if(n)if(r&&"maxTouchPoints"in r)i=r.maxTouchPoints>0;else if("ontouchmove"in window||t&&document instanceof t)i=!0;else if(o!=null&&o("(pointer:coarse)").matches)i=!0;else{const l=r.userAgent;i=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(l)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(l)}return e&&["any-hover:hover","any-pointer:fine"].some(l=>o==null?void 0:o(`(${l})`).matches)&&"mouse"||i&&"touch"||"mouse"}function k(e,n){n()===!1?requestAnimationFrame(()=>k(e,n)):e()}function J(e){const n=this.config;let t,o,r;const i=()=>{const s=o.shift();if(s&&t&&v(t)&&s in t)return t=t[s],i();if(!s)return t};Object.keys(n).forEach(s=>{t=e,o=s.split("_"),r=i(),T(r)&&(n[s]=r)}),this.api&&(this.state.orgConfig=e)}var Q=Object.defineProperty,Z=(e,n,t)=>n in e?Q(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,O=(e,n,t)=>(Z(e,typeof n!="symbol"?n+"":n,t),t);class D{constructor(n={}){O(this,"$$"),O(this,"options"),this.options=n}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(n=>{this[n]=null,delete this[n]})}}O(D,"version","3.12.1");class ee{constructor(){return{selector:void 0,extent:1,area:0}}}var te=Object.defineProperty,ne=(e,n,t)=>n in e?te(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,oe=(e,n,t)=>(ne(e,typeof n!="symbol"?n+"":n,t),t);class re extends D{constructor(n){return super(n),oe(this,"config"),this.config=new ee,this}$init(){J.call(this,this.options)}$redraw(){const{$$:{$el:n},config:{selector:t}}=this,o=t?n.main.selectAll(t):n.text;!o.empty()&&this.preventLabelOverlap(o)}generateVoronoi(n){const{$$:t}=this,{scale:o}=t,[r,i]=["x","y"].map(s=>o[s].domain());return[r[1],i[0]]=[i[0],r[1]],c.Delaunay.from(n).voronoi([...r,...i])}preventLabelOverlap(n){const{extent:t,area:o}=this.config,r=n.data().map(l=>[l.index,l.value]),i=this.generateVoronoi(r);let s=0;n.each(function(){const l=i.cellPolygon(s);if(l&&this){const[P,ie]=r[s],[se,ce]=(0,u.polygonCentroid)(l),le=Math.abs((0,u.polygonArea)(l)),h=Math.round(Math.atan2(ce-ie,se-P)/Math.PI*2),ae=t*(h===0?1:-1),ue=h===-1?-t:t+5,fe=Math.abs(h)===1?"middle":h===0?"start":"end";this.style.display=le<o?"none":"",this.setAttribute("text-anchor",fe),this.setAttribute("dy",`0.${h===1?71:35}em`),this.setAttribute("transform",`translate(${ae}, ${ue})`)}s++})}}}(),b=b.default,b}()});
13
+ `),s=o?i.length-1:1;e.html(""),i.forEach((l,P)=>{e.append("tspan").attr("x",0).attr("dy",`${P===0?t[0]*s:t[1]}em`).text(l)})}}}function z(e){const{x:n,y:t,width:o,height:r}=e.getBBox();return[{x:n,y:t+r},{x:n,y:t},{x:n+o,y:t},{x:n+o,y:t+r}]}function Ae(e){const{width:n,height:t}=e.getBoundingClientRect(),o=z(e),r=o[0].x,i=Math.min(o[0].y,o[1].y);return{x:r,y:i,width:n,height:t}}function Me(e,n){var t;const o=e&&((t=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:t[0]);let r=[0,0];try{r=d3Pointer(o||e,n)}catch(i){}return r.map(i=>isNaN(i)?0:i)}function G(e){const{event:n,$el:t}=e,o=t.subchart.main||t.main;let r;return n&&n.type==="brush"?r=n.selection:o&&(r=o.select(".bb-brush").node())&&(r=d3BrushSelection(r)),r}function Te(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Ce(e=!0,n=0,t=1e4){const o=window.crypto||window.msCrypto,r=o?n+o.getRandomValues(new Uint32Array(1))[0]%(t-n+1):Math.floor(Math.random()*(t-n)+n);return e?String(r):r}function C(e,n,t,o,r){if(t>o)return-1;const i=Math.floor((t+o)/2);let{x:s,w:l=0}=e[i];return r&&(s=e[i].y,l=e[i].h),n>=s&&n<=s+l?i:n<s?C(e,n,t,i-1,r):C(e,n,i+1,o,r)}function De(e){const n=G(e);return n?n[0]===n[1]:!0}function qe(...e){const n=t=>{if(g(t)&&t.constructor){const o=new t.constructor;for(const r in t)o[r]=n(t[r]);return o}return t};return e.map(t=>n(t)).reduce((t,o)=>M(M({},t),o))}function H(e={},n){x(n)&&n.forEach(t=>H(e,t));for(const t in n)/^\d+$/.test(t)||t in e||(e[t]=n[t]);return e}const Re=e=>e.charAt(0).toUpperCase()+e.slice(1);function Fe(e,n="-"){return e.split(n).map((t,o)=>o?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()).join("")}const K=e=>[].slice.call(e);function Ie(e,n,t){const{rootSelector:o="",sheet:r}=e,s=`${o} ${(l=>l.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(n)} {${t.join(";")}}`;return r[r.insertRule?"insertRule":"addRule"](s,r.cssRules.length)}function Se(e){let n=[];return e.forEach(t=>{var o;try{t.cssRules&&t.cssRules.length&&(n=n.concat(K(t.cssRules)))}catch(r){(o=window.console)==null||o.warn(`Error while reading rules from ${t.href}: ${r.toString()}`)}}),n}function Be(e){var n,t,o,r;return{x:((t=(n=window.pageXOffset)!=null?n:window.scrollX)!=null?t:0)+e.scrollLeft,y:((r=(o=window.pageYOffset)!=null?o:window.scrollY)!=null?r:0)+e.scrollTop}}function Ne(e){const n=e?e.transform:null,t=n&&n.baseVal;return t&&t.numberOfItems?t.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ve(e){const n=e[0]instanceof Date,t=(n?e.map(Number):e).filter((o,r,i)=>i.indexOf(o)===r);return n?t.map(o=>new Date(o)):t}function Ue(e){return e&&e.length?e.reduce((n,t)=>n.concat(t)):[]}function w(e,...n){if(!n.length||n.length===1&&!n[0])return e;const t=n.shift();return g(e)&&g(t)&&Object.keys(t).forEach(o=>{const r=t[o];g(r)?(!e[o]&&(e[o]={}),e[o]=w(e[o],r)):e[o]=x(r)?r.concat():r}),w(e,...n)}function W(e,n=!0){let t;return e[0]instanceof Date?t=n?(o,r)=>o-r:(o,r)=>r-o:n&&!e.every(isNaN)?t=(o,r)=>o-r:n||(t=(o,r)=>o>r&&-1||o<r&&1||o===r&&0),e.concat().sort(t)}function Xe(e,n){let t=n.filter(o=>L(o));return t.length?y(t[0])?t=Math[e](...t):t[0]instanceof Date&&(t=W(t,e==="min")[0]):t=void 0,t}const Ye=(e,n,t=1)=>{const o=[],r=Math.max(0,Math.ceil((n-e)/t))|0;for(let i=e;i<r;i++)o.push(e+i*t);return o},Le={mouse:(()=>{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(n,t,o=e())=>{n.dispatchEvent(new MouseEvent(t,o))}}catch(n){return(t,o,r=e())=>{const i=S.createEvent("MouseEvent");i.initMouseEvent(o,r.bubbles,r.cancelable,m,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}})(),touch:(e,n,t)=>{const o=new Touch(w({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},t));e.dispatchEvent(new TouchEvent(n,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}};function ze(e,n){let t=e;for(const o in n)t=t.replace(new RegExp(`{=${o}}`,"g"),n[o]);return t}function Ge(e){var n;let t;if(e instanceof Date)t=e;else if(_(e)){const{config:o,format:r}=this;t=(n=r.dataTime(o.data_xFormat)(e))!=null?n:new Date(e)}else y(e)&&!isNaN(e)&&(t=new Date(+e));return(!t||isNaN(+t))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),t}function He(){var e,n;return((e=document)==null?void 0:e.hidden)===!1||((n=document)==null?void 0:n.visibilityState)==="visible"}function Ke(e,n){const{DocumentTouch:t,matchMedia:o,navigator:r}=window;let i=!1;if(n)if(r&&"maxTouchPoints"in r)i=r.maxTouchPoints>0;else if("ontouchmove"in window||t&&document instanceof t)i=!0;else if(o!=null&&o("(pointer:coarse)").matches)i=!0;else{const l=r.userAgent;i=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(l)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(l)}return e&&["any-hover:hover","any-pointer:fine"].some(l=>o==null?void 0:o(`(${l})`).matches)&&"mouse"||i&&"touch"||"mouse"}function k(e,n){n()===!1?requestAnimationFrame(()=>k(e,n)):e()}function J(e){const n=this.config;let t,o,r;const i=()=>{const s=o.shift();if(s&&t&&v(t)&&s in t)return t=t[s],i();if(!s)return t};Object.keys(n).forEach(s=>{t=e,o=s.split("_"),r=i(),T(r)&&(n[s]=r)}),this.api&&(this.state.orgConfig=e)}var Q=Object.defineProperty,Z=(e,n,t)=>n in e?Q(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,O=(e,n,t)=>(Z(e,typeof n!="symbol"?n+"":n,t),t);class D{constructor(n={}){O(this,"$$"),O(this,"options"),this.options=n}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(n=>{this[n]=null,delete this[n]})}}O(D,"version","3.12.2");class ee{constructor(){return{selector:void 0,extent:1,area:0}}}var te=Object.defineProperty,ne=(e,n,t)=>n in e?te(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,oe=(e,n,t)=>(ne(e,typeof n!="symbol"?n+"":n,t),t);class re extends D{constructor(n){return super(n),oe(this,"config"),this.config=new ee,this}$init(){J.call(this,this.options)}$redraw(){const{$$:{$el:n},config:{selector:t}}=this,o=t?n.main.selectAll(t):n.text;!o.empty()&&this.preventLabelOverlap(o)}generateVoronoi(n){const{$$:t}=this,{scale:o}=t,[r,i]=["x","y"].map(s=>o[s].domain());return[r[1],i[0]]=[i[0],r[1]],c.Delaunay.from(n).voronoi([...r,...i])}preventLabelOverlap(n){const{extent:t,area:o}=this.config,r=n.data().map(l=>[l.index,l.value]),i=this.generateVoronoi(r);let s=0;n.each(function(){const l=i.cellPolygon(s);if(l&&this){const[P,ie]=r[s],[se,ce]=(0,u.polygonCentroid)(l),le=Math.abs((0,u.polygonArea)(l)),h=Math.round(Math.atan2(ce-ie,se-P)/Math.PI*2),ae=t*(h===0?1:-1),ue=h===-1?-t:t+5,fe=Math.abs(h)===1?"middle":h===0?"start":"end";this.style.display=le<o?"none":"",this.setAttribute("text-anchor",fe),this.setAttribute("dy",`0.${h===1?71:35}em`),this.setAttribute("transform",`translate(${ae}, ${ue})`)}s++})}}}(),b=b.default,b}()});
@@ -5,7 +5,7 @@
5
5
  * billboard.js, JavaScript chart library
6
6
  * https://naver.github.io/billboard.js/
7
7
  *
8
- * @version 3.12.1
8
+ * @version 3.12.2
9
9
  * @requires billboard.js
10
10
  * @summary billboard.js plugin
11
11
  */
@@ -20153,7 +20153,7 @@ class Plugin {
20153
20153
  });
20154
20154
  }
20155
20155
  }
20156
- __publicField(Plugin, "version", "3.12.1");
20156
+ __publicField(Plugin, "version", "3.12.2");
20157
20157
 
20158
20158
  ;// CONCATENATED MODULE: ./src/Plugin/bubblecompare/index.ts
20159
20159
  var bubblecompare_defProp = Object.defineProperty;