@bino-bi/bn-template-engine 1.0.0-next.23 → 1.0.0-next.25

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 (184) hide show
  1. package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
  2. package/dist/bn-template-engine/index.esm.js +1 -0
  3. package/dist/bn-template-engine/{p-68aa61cc.entry.js → p-03304284.entry.js} +1 -1
  4. package/dist/bn-template-engine/p-0b2e1661.entry.js +1 -0
  5. package/dist/bn-template-engine/{p-d7c670ec.entry.js → p-0fb02c57.entry.js} +1 -1
  6. package/dist/bn-template-engine/p-2fbc2d50.entry.js +1 -0
  7. package/dist/bn-template-engine/p-36f1c5f9.entry.js +1 -0
  8. package/dist/bn-template-engine/p-4419db8f.entry.js +1 -0
  9. package/dist/bn-template-engine/p-45508f1b.entry.js +1 -0
  10. package/dist/bn-template-engine/p-5d7a3a77.entry.js +1 -0
  11. package/dist/bn-template-engine/p-62cc95b7.entry.js +1 -0
  12. package/dist/bn-template-engine/{p-CbciPY-M.js → p-B5Jd_eCX.js} +1 -1
  13. package/dist/bn-template-engine/{p-DdqXNsKP.js → p-BbmobTg0.js} +1 -1
  14. package/dist/bn-template-engine/p-BcLsoDrW.js +1 -0
  15. package/dist/bn-template-engine/{p-CDo04UEU.js → p-BcaI745G.js} +1 -1
  16. package/dist/bn-template-engine/{p-BVfLus3u.js → p-CG_Bcm6V.js} +1 -1
  17. package/dist/bn-template-engine/{p-BGrnfif3.js → p-CWWWM-XC.js} +1 -1
  18. package/dist/bn-template-engine/{p-CuR4S456.js → p-CsJ84YRk.js} +1 -1
  19. package/dist/bn-template-engine/{p-C7T4DAAW.js → p-D5e8I9Qe.js} +1 -1
  20. package/dist/bn-template-engine/p-DVrDYxlh.js +1 -0
  21. package/dist/bn-template-engine/p-DjPXefnq.js +1 -0
  22. package/dist/bn-template-engine/{p-UtNHLX1j.js → p-EtT29btN.js} +1 -1
  23. package/dist/bn-template-engine/{p-B5x8M8OC.js → p-TuLpbB5O.js} +1 -1
  24. package/dist/bn-template-engine/{p-e4a584a8.entry.js → p-a5867a4c.entry.js} +1 -1
  25. package/dist/bn-template-engine/{p-f12fb09b.entry.js → p-b27009eb.entry.js} +1 -1
  26. package/dist/bn-template-engine/p-e30c7251.entry.js +1 -0
  27. package/dist/bn-template-engine/{p-0a49cf00.entry.js → p-f06c3703.entry.js} +1 -1
  28. package/dist/bn-template-engine/{p-22b8d044.entry.js → p-fcfbb329.entry.js} +1 -1
  29. package/dist/bn-template-engine/{p-Bca5V28_.js → p-qRZrT-U3.js} +1 -1
  30. package/dist/cjs/{AxisConfig-DmP4U3JM.js → AxisConfig-DwiNUyYG.js} +1 -1
  31. package/dist/cjs/{LabelCollisionManager-Cet3WPm0.js → LabelCollisionManager-Bv-xkeXw.js} +7 -4
  32. package/dist/cjs/{Order-DlKLywO_.js → Order-2wRydarc.js} +1 -1
  33. package/dist/cjs/{SVGStyle-D78RaNnj.js → SVGStyle-DoxylrEQ.js} +12 -2
  34. package/dist/cjs/{SVGVariancesStyleGroup-XvNAnYYA.js → SVGVariancesStyleGroup-CiI4GeWe.js} +1 -1
  35. package/dist/cjs/{VarianceMeasure-BfZLlICl.js → VarianceMeasure-CQlSRzlp.js} +1 -1
  36. package/dist/cjs/{XYChartDataRow-B0NNOqxB.js → XYChartDataRow-C2FdL58s.js} +4 -4
  37. package/dist/cjs/bn-asset_21.cjs.entry.js +682 -56
  38. package/dist/cjs/bn-chart-bubble.cjs.entry.js +31 -11
  39. package/dist/cjs/bn-chart-bullet.cjs.entry.js +30 -10
  40. package/dist/cjs/bn-chart-scatter.cjs.entry.js +30 -10
  41. package/dist/cjs/bn-grid.cjs.entry.js +82 -5
  42. package/dist/cjs/bn-image.cjs.entry.js +4 -4
  43. package/dist/cjs/bn-internationalization.cjs.entry.js +1 -1
  44. package/dist/cjs/bn-ruleset.cjs.entry.js +1 -1
  45. package/dist/cjs/bn-template-engine.cjs.js +1 -1
  46. package/dist/cjs/bn-text.cjs.entry.js +5 -5
  47. package/dist/cjs/bn-tree.cjs.entry.js +78 -4
  48. package/dist/cjs/{context-protocol-DeLmu5s2.js → context-protocol-DcTEh1rq.js} +2 -0
  49. package/dist/cjs/diagnostics-CTgbq_Gc.js +107 -0
  50. package/dist/cjs/editor-companion.cjs.entry.js +1 -1
  51. package/dist/cjs/ibcs-chart-bubble.cjs.entry.js +5 -5
  52. package/dist/cjs/ibcs-chart-bullet.cjs.entry.js +5 -5
  53. package/dist/cjs/ibcs-chart-scatter.cjs.entry.js +5 -5
  54. package/dist/cjs/index.cjs.js +15 -0
  55. package/dist/cjs/loader.cjs.js +1 -1
  56. package/dist/cjs/{scaling-JAU6IJnR.js → scaling-Dsb5_NXy.js} +1 -1
  57. package/dist/cjs/svgChartElements-tDA43aYj.js +400 -0
  58. package/dist/cjs/{withScalingGroup-Bu5gatHT.js → withScalingGroup-CFIc5-6s.js} +1 -1
  59. package/dist/cjs/{withStyled-50UepUwV.js → withStyled-D0jLwCib.js} +3 -3
  60. package/dist/collection/collection-manifest.json +1 -1
  61. package/dist/collection/components/bn-chart-bubble/bn-chart-bubble.js +60 -1
  62. package/dist/collection/components/bn-chart-bullet/bn-chart-bullet.js +60 -1
  63. package/dist/collection/components/bn-chart-scatter/bn-chart-scatter.js +60 -1
  64. package/dist/collection/components/bn-chart-structure/bn-chart-structure.js +132 -4
  65. package/dist/collection/components/bn-chart-structure/ibcs-chart-structure.js +2 -2
  66. package/dist/collection/components/bn-chart-structure/utils/StructureChart.js +35 -0
  67. package/dist/collection/components/bn-chart-structure/utils/elements/Label.js +5 -2
  68. package/dist/collection/components/bn-chart-time/bn-chart-time.js +133 -4
  69. package/dist/collection/components/bn-chart-time/ibcs-chart-time.css +0 -4
  70. package/dist/collection/components/bn-chart-time/ibcs-chart-time.js +2 -2
  71. package/dist/collection/components/bn-chart-time/utils/TimeChart.js +62 -15
  72. package/dist/collection/components/bn-chart-time/utils/elements/Label.js +5 -2
  73. package/dist/collection/components/bn-context/bn-context.js +133 -1
  74. package/dist/collection/components/bn-grid/bn-grid.js +129 -1
  75. package/dist/collection/components/bn-table/bn-table.js +139 -1
  76. package/dist/collection/components/bn-table/ibcs-table.js +164 -0
  77. package/dist/collection/components/bn-table/utils/Table.js +21 -7
  78. package/dist/collection/components/bn-table/utils/factories/tableDataSetFactory.js +4 -0
  79. package/dist/collection/components/bn-tree/bn-tree.js +137 -0
  80. package/dist/collection/context/context-protocol.js +1 -1
  81. package/dist/collection/index.js +1 -0
  82. package/dist/collection/utils/layoutState/diagnostics.js +17 -0
  83. package/dist/collection/utils/layoutState/generic.js +37 -0
  84. package/dist/collection/utils/layoutState/geometry.js +44 -0
  85. package/dist/collection/utils/layoutState/identity.js +33 -0
  86. package/dist/collection/utils/layoutState/index.js +6 -0
  87. package/dist/collection/utils/layoutState/svgChartElements.js +200 -0
  88. package/dist/collection/utils/layoutState/types.js +13 -0
  89. package/dist/collection/utils/measurementHost.js +58 -0
  90. package/dist/collection/utils/model/styles/FontStyle.js +10 -0
  91. package/dist/components/LabelCollisionManager.js +1 -1
  92. package/dist/components/bn-chart-bubble.js +1 -1
  93. package/dist/components/bn-chart-bullet.js +1 -1
  94. package/dist/components/bn-chart-scatter.js +1 -1
  95. package/dist/components/bn-chart-structure.js +1 -1
  96. package/dist/components/bn-chart-time.js +1 -1
  97. package/dist/components/bn-context.js +1 -1
  98. package/dist/components/bn-grid.js +1 -1
  99. package/dist/components/bn-internationalization.js +1 -1
  100. package/dist/components/bn-table.js +1 -1
  101. package/dist/components/bn-tree.js +1 -1
  102. package/dist/components/context-protocol.js +1 -1
  103. package/dist/components/diagnostics.js +1 -0
  104. package/dist/components/geometry.js +1 -0
  105. package/dist/components/ibcs-chart-bubble2.js +1 -1
  106. package/dist/components/ibcs-chart-bullet2.js +1 -1
  107. package/dist/components/ibcs-chart-scatter2.js +1 -1
  108. package/dist/components/ibcs-chart-structure2.js +1 -1
  109. package/dist/components/ibcs-chart-time2.js +1 -1
  110. package/dist/components/ibcs-table2.js +1 -1
  111. package/dist/components/index.js +1 -1
  112. package/dist/components/main.js +1 -1
  113. package/dist/components/svgChartElements.js +1 -0
  114. package/dist/components/types.js +1 -0
  115. package/dist/esm/{AxisConfig-Cjy_RANi.js → AxisConfig-KqzWQbML.js} +1 -1
  116. package/dist/esm/{LabelCollisionManager-B_NUM9yq.js → LabelCollisionManager-585bQMtP.js} +7 -4
  117. package/dist/esm/{Order-B-aF6Rwn.js → Order-DZVWjEL_.js} +1 -1
  118. package/dist/esm/{SVGStyle-8FfAtUF-.js → SVGStyle-OrPkzjcb.js} +12 -2
  119. package/dist/esm/{SVGVariancesStyleGroup-DD4mIOjT.js → SVGVariancesStyleGroup-DO5QJfRQ.js} +1 -1
  120. package/dist/esm/{VarianceMeasure-DLOuIIJ7.js → VarianceMeasure-DDjChp8C.js} +1 -1
  121. package/dist/esm/{XYChartDataRow-CKfILBFG.js → XYChartDataRow-Dn83Tqh9.js} +4 -4
  122. package/dist/esm/bn-asset_21.entry.js +675 -49
  123. package/dist/esm/bn-chart-bubble.entry.js +29 -9
  124. package/dist/esm/bn-chart-bullet.entry.js +28 -8
  125. package/dist/esm/bn-chart-scatter.entry.js +28 -8
  126. package/dist/esm/bn-grid.entry.js +82 -5
  127. package/dist/esm/bn-image.entry.js +4 -4
  128. package/dist/esm/bn-internationalization.entry.js +1 -1
  129. package/dist/esm/bn-ruleset.entry.js +1 -1
  130. package/dist/esm/bn-template-engine.js +1 -1
  131. package/dist/esm/bn-text.entry.js +5 -5
  132. package/dist/esm/bn-tree.entry.js +78 -4
  133. package/dist/esm/{context-protocol-BoEL0caI.js → context-protocol-B-vdGKeG.js} +1 -1
  134. package/dist/esm/diagnostics-CiquIw8B.js +99 -0
  135. package/dist/esm/editor-companion.entry.js +1 -1
  136. package/dist/esm/ibcs-chart-bubble.entry.js +5 -5
  137. package/dist/esm/ibcs-chart-bullet.entry.js +5 -5
  138. package/dist/esm/ibcs-chart-scatter.entry.js +5 -5
  139. package/dist/esm/index.js +14 -0
  140. package/dist/esm/loader.js +1 -1
  141. package/dist/esm/{scaling-CxyNpMQM.js → scaling-Dggyeqts.js} +1 -1
  142. package/dist/esm/svgChartElements-B3YClivG.js +395 -0
  143. package/dist/esm/{withScalingGroup-Yv9nGGe1.js → withScalingGroup-DNBSqRC0.js} +1 -1
  144. package/dist/esm/{withStyled-By9Jd-Oy.js → withStyled-DoNsbwS3.js} +3 -3
  145. package/dist/types/components/bn-chart-bubble/bn-chart-bubble.d.ts +10 -0
  146. package/dist/types/components/bn-chart-bullet/bn-chart-bullet.d.ts +10 -0
  147. package/dist/types/components/bn-chart-scatter/bn-chart-scatter.d.ts +10 -0
  148. package/dist/types/components/bn-chart-structure/bn-chart-structure.d.ts +19 -0
  149. package/dist/types/components/bn-chart-structure/utils/StructureChart.d.ts +27 -0
  150. package/dist/types/components/bn-chart-time/bn-chart-time.d.ts +19 -0
  151. package/dist/types/components/bn-chart-time/utils/TimeChart.d.ts +26 -0
  152. package/dist/types/components/bn-context/bn-context.d.ts +14 -0
  153. package/dist/types/components/bn-grid/bn-grid.d.ts +10 -0
  154. package/dist/types/components/bn-table/bn-table.d.ts +18 -0
  155. package/dist/types/components/bn-table/ibcs-table.d.ts +16 -0
  156. package/dist/types/components/bn-table/utils/Table.d.ts +16 -1
  157. package/dist/types/components/bn-table/utils/factories/tableDataSetFactory.d.ts +2 -0
  158. package/dist/types/components/bn-tree/bn-tree.d.ts +10 -0
  159. package/dist/types/components.d.ts +59 -0
  160. package/dist/types/context/context-protocol.d.ts +5 -0
  161. package/dist/types/index.d.ts +1 -0
  162. package/dist/types/utils/layoutState/diagnostics.d.ts +7 -0
  163. package/dist/types/utils/layoutState/generic.d.ts +14 -0
  164. package/dist/types/utils/layoutState/geometry.d.ts +35 -0
  165. package/dist/types/utils/layoutState/identity.d.ts +22 -0
  166. package/dist/types/utils/layoutState/index.d.ts +6 -0
  167. package/dist/types/utils/layoutState/svgChartElements.d.ts +37 -0
  168. package/dist/types/utils/layoutState/types.d.ts +219 -0
  169. package/dist/types/utils/measurementHost.d.ts +9 -0
  170. package/dist/types/utils/model/styles/FontStyle.d.ts +7 -0
  171. package/package.json +1 -1
  172. package/readme.md +1 -0
  173. package/dist/bn-template-engine/p-251bb53d.entry.js +0 -1
  174. package/dist/bn-template-engine/p-2aed639e.entry.js +0 -1
  175. package/dist/bn-template-engine/p-4616b879.entry.js +0 -1
  176. package/dist/bn-template-engine/p-629edcca.entry.js +0 -1
  177. package/dist/bn-template-engine/p-BcZ5GQZ8.js +0 -1
  178. package/dist/bn-template-engine/p-DWtTjg0f.js +0 -1
  179. package/dist/bn-template-engine/p-aecb5de3.entry.js +0 -1
  180. package/dist/bn-template-engine/p-ba43d46e.entry.js +0 -1
  181. package/dist/bn-template-engine/p-c476e7bb.entry.js +0 -1
  182. package/dist/bn-template-engine/p-f9a721bb.entry.js +0 -1
  183. package/dist/cjs/layoutObserver-CrzQQGpv.js +0 -199
  184. package/dist/esm/layoutObserver-cgIXg2sg.js +0 -196
@@ -1 +1 @@
1
- import{C as t}from"./p-DdqXNsKP.js";class s{constructor(t,s,i){this.pos=t,this.neg=s,this.neu=i,this.needleHeadColour="#000000"}getSVGStyle(t){return"pos"===t?this.pos:"neg"===t?this.neg:this.neu}}class i{constructor(t){this.svgStyleAdapter=t}adapt(i){const h=new s(this.svgStyleAdapter.defaultPos(),this.svgStyleAdapter.defaultNeg(),this.svgStyleAdapter.defaultNeu());return t.isExisting(i.pos)&&(h.pos=this.svgStyleAdapter.adapt(i.pos)),t.isExisting(i.neg)&&(h.neg=this.svgStyleAdapter.adapt(i.neg)),t.isExisting(i.pp)&&(h.neu=this.svgStyleAdapter.adapt(i.neu)),t.isString(i.needleHeadColour)&&(h.needleHeadColour=i.needleHeadColour),h}default(){return new s(this.svgStyleAdapter.defaultPos(),this.svgStyleAdapter.defaultNeg(),this.svgStyleAdapter.defaultNeu())}}export{i as S}
1
+ import{C as t}from"./p-BbmobTg0.js";class s{constructor(t,s,i){this.pos=t,this.neg=s,this.neu=i,this.needleHeadColour="#000000"}getSVGStyle(t){return"pos"===t?this.pos:"neg"===t?this.neg:this.neu}}class i{constructor(t){this.svgStyleAdapter=t}adapt(i){const h=new s(this.svgStyleAdapter.defaultPos(),this.svgStyleAdapter.defaultNeg(),this.svgStyleAdapter.defaultNeu());return t.isExisting(i.pos)&&(h.pos=this.svgStyleAdapter.adapt(i.pos)),t.isExisting(i.neg)&&(h.neg=this.svgStyleAdapter.adapt(i.neg)),t.isExisting(i.pp)&&(h.neu=this.svgStyleAdapter.adapt(i.neu)),t.isString(i.needleHeadColour)&&(h.needleHeadColour=i.needleHeadColour),h}default(){return new s(this.svgStyleAdapter.defaultPos(),this.svgStyleAdapter.defaultNeg(),this.svgStyleAdapter.defaultNeu())}}export{i as S}
@@ -1 +1 @@
1
- import{g as t,f as e}from"./p-C5UYpZUU.js";import{g as s,c as r,D as n}from"./p-C7T4DAAW.js";import{r as a}from"./p-DtLI_CzV.js";import{m as i,S as o,b as u,A as c,c as l,T as h,D as d,d as m,M as f,e as y,r as b}from"./p-DdqXNsKP.js";import{b as N,O as g}from"./p-CbciPY-M.js";const p=n=>{let o,u,c,l;const h=()=>{const t=u.componentStyles.state;l=i([t._system||{},t._default||{},t[c]||{}],{arrayMergeType:"overwrite"})},d=new MutationObserver((s=>{s.forEach((s=>{"selected-style"===s.attributeName&&(c=t(n).getAttribute("selected-style"),h(),e(n))}))})),m=n.connectedCallback;n.connectedCallback=()=>{const r=t(n);u=s(r),l=u.componentStyles.state._system,d.observe(r,{attributes:!0,attributeFilter:["selected-style"]}),c=t(n).getAttribute("selected-style"),h(),o=u.componentStyles.on("set",(s=>{s===c&&(c=t(n).getAttribute("selected-style"),h(),e(t(n)))})),a(m,n)};const f=n.disconnectedCallback;return n.disconnectedCallback=()=>{d.disconnect(),a(o),r(t(n)),a(f,n)},t=>t(l)},v=/^\s*(set|first|last|min|max|avg|sum|lit)\(\s*(.*?)\s*\)\s*$/,S=/^[A-Za-z_][A-Za-z0-9_]*$/,D=["min","max","avg","sum"];class k{constructor(t,e,s,r){this.label=t,this.alias=e,this.fn=s,this.arg=r}get isNumeric(){return D.includes(this.fn)}}function w(t){if("string"!=typeof t)return!1;const e=v.exec(t);if(!e)return!1;const[,s,r]=e;return"lit"===s?r.length>0:S.test(r)}function T(t,e,s){if(!w(s))return null;const[,r,n]=v.exec(s);return new k(t,e,r,n)}var O,A;!function(t){t.YEAR="year",t.QUARTER="quarter",t.MONTH="month",t.WEEK="week",t.DAY="day",t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.MILLISECOND="millisecond",t.NONE="fallback",t.AUTO="auto"}(O||(O={})),function(t){t.AVG="avg",t.INTERVAL="interval",t.START="start",t.END="end",t.YTD="ytd",t.YTG="ytg",t.CUM="cum",t.MAT="mat",t.NONE="none",t.AUTO="auto"}(A||(A={}));class M{constructor(){this._dateFormat={year:"yyyy",quarter:"q'Q' yyyy",month:"LLL yyyy",week:"'KW'WW yyyy",day:"dd.MM.yyyy",hour:"TT",minute:"TT",second:"TT",millisecond:"TT:SSS",fallback:"dd.MM.yyyy"},this._dateFormatShort={year:"yy",quarter:"q'Q'",month:"LLL",week:"'KW'WW",day:"dd",hour:"hh'h'",minute:"mm'm'",second:"ss's'",millisecond:"SSS'ms'",fallback:"dd.MM.yyyy"},this._dateLinkFormat={avg:"Ø[LINK]",interval:"[DATE]..[DATE2]",start:".[DATE]",end:"[DATE].",ytd:"_[DATE]",ytg:"[DATE]_",cum:"[DATE]_[DATE2]",mat:"~[DATE]",none:"[DATE]"},this.locale="de",this.dateFormatPinned=!1,this.dateFormatShortPinned=!1,this.dateFormat=this._dateFormat,this.dateLinkFormat=this._dateLinkFormat,this.dateFormatShort=this._dateFormatShort}setDateLinkFormat(t){this.dateLinkFormat=t}setDateFormat(t){this.dateFormat=t,this.dateFormatPinned=!0}setDateFormatShort(t){this.dateFormatShort=t,this.dateFormatShortPinned=!0}setLocale(t){this.locale=t,this.dateFormatPinned||(this.dateFormat=Object.assign(Object.assign({},this._dateFormat),M.LOCALE_DATE_FORMAT[t]||{})),this.dateFormatShortPinned||(this.dateFormatShort=Object.assign(Object.assign({},this._dateFormatShort),M.LOCALE_DATE_FORMAT_SHORT[t]||{}))}getDateString(t,e){return t.setLocale(this.locale).toFormat(this.dateFormat[e]||this.dateFormat.fallback)}getSmartDateString(t,e){switch(e){case O.DAY:return this.getFormatedDayDate(t);case O.MONTH:return this.getFormatedMonthDate(t);case O.QUARTER:return this.getFormatedQuarterDate(t);case O.WEEK:return this.getFormatedWeekDate(t);case O.HOUR:return this.getFormatedHourDate(t);case O.MINUTE:return this.getFormatedMinuteDate(t);case O.SECOND:return this.getFormatedSecondDate(t);case O.MILLISECOND:return this.getFormatedMilliSecondDate(t);default:return this.getDateString(t,e)}}calculateDistanceType(t,e,s=32){if(null==e)return O.DAY;const r="number"==typeof t?n.fromMillis(t):t,a="number"==typeof e?n.fromMillis(e):e;return 0===a.diff(r).as("milliseconds")?O.DAY:a.diff(r).as("milliseconds")<s?O.MILLISECOND:a.diff(r).as("seconds")<s?O.SECOND:a.diff(r).as("minutes")<s?O.MINUTE:a.diff(r).as("hours")<s?O.HOUR:a.diff(r).as("days")<s?O.DAY:a.diff(r).as("weeks")<s?O.WEEK:a.diff(r).as("months")<s?O.MONTH:a.diff(r).as("quarters")<s?O.QUARTER:O.YEAR}datesBetween(t,e,s,r){const n=this.convertDateDistanceToMomentunitOfTime(s),a=t.startOf(n),i=e.endOf(n);let o=i.diff(a).as(n);const u=[];o>=r&&(o=r);let c=a;do{u.push(c),c=c.plus(this.createDiratonLike(n,1))}while(c<=i&&u.length<o);return u}getDateLinkString(t,e,s,r,a){if(null==t&&null==e)return"";if(null==t&&s!==A.END&&s!==A.YTD)return"";if(null==e&&(A.INTERVAL===s||A.CUM===s||A.END===s||A.YTD===s))return"";const i=t||n.now(),o=e;r===O.AUTO&&(r=this.calculateDistanceType(i,o,a));let u=this.getDateString(i,r),c="",l=A.NONE;return null!=o&&(c=this.getDateString(o,r),l=A.INTERVAL,u===c&&s===A.INTERVAL&&(s=A.NONE),u===c&&s===A.AVG&&(l=A.NONE),A.END!==s&&A.YTD!==s||(u=c),(s===A.INTERVAL||s===A.CUM||A.AVG)&&(r===O.QUARTER?i.quarter===o.quarter&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):r===O.MONTH?i.month===o.month&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):r===O.WEEK&&(i.weekNumber===o.weekNumber&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,""))))),this.dateLinkFormat[s].replace("[LINK]",this.dateLinkFormat[l]).replace("[DATE]",u).replace("[DATE2]",c)}getShortDateString(t,e){return t.setLocale(this.locale).toFormat(this.dateFormatShort[e]||this.dateFormatShort.fallback)}getFormatedDayDate(t){let e=this.dateFormatShort.day;return this.isFirstInMonth(t)&&(e+=" "+this.dateFormatShort.month),this.isJanuary(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedMonthDate(t){let e=this.dateFormatShort.month;return this.isJanuary(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedQuarterDate(t){let e=this.dateFormatShort.quarter;return this.isFirstQuarter(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedWeekDate(t){let e=this.dateFormatShort.week;return this.isFirstWeek(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedHourDate(t){let e=this.dateFormatShort.hour;return this.isFirstHour(t)&&(e+=" "+this.dateFormatShort.day),t.setLocale(this.locale).toFormat(e)}getFormatedMinuteDate(t){let e=this.dateFormatShort.minute;return this.isFirstMinute(t)&&(e=this.dateFormatShort.hour+":"+e),t.setLocale(this.locale).toFormat(e)}getFormatedSecondDate(t){let e=this.dateFormatShort.second;return this.isFirstSecond(t)&&(e=this.dateFormatShort.minute+":"+e),t.setLocale(this.locale).toFormat(e)}getFormatedMilliSecondDate(t){let e=this.dateFormatShort.millisecond;return this.isFirstMilliSecond(t)&&(e=this.dateFormatShort.second+":"+e),t.setLocale(this.locale).toFormat(e)}isFirstInMonth(t){return 1===t.day}isJanuary(t){return 1===t.month}isFirstQuarter(t){return 1===t.quarter}isFirstWeek(t){return 1===t.weekNumber}isFirstHour(t){return 0===t.hour}isFirstMinute(t){return 0===t.minute}isFirstSecond(t){return 0===t.second}isFirstMilliSecond(t){return 0===t.millisecond}convertDateDistanceToMomentunitOfTime(t){let e;switch(t){case O.YEAR:e="year";break;case O.MONTH:e="month";break;case O.QUARTER:e="quarter";break;case O.WEEK:e="week";break;case O.DAY:e="day";break;case O.HOUR:e="hour";break;case O.MINUTE:e="minute";break;case O.SECOND:e="second";break;case O.MILLISECOND:e="millisecond";break;default:e="day"}return e}createDiratonLike(t,e){switch(t){case"year":return{years:e};case"month":return{months:e};case"quarter":return{quarters:e};case"week":return{weeks:e};case"day":default:return{days:e};case"hour":return{hours:e};case"minute":return{minutes:e};case"second":return{seconds:e};case"millisecond":return{milliseconds:e}}}}function J(t){return null==t||""===t||"null"===t}function F(t){return J(t)||"auto"===t.trim().toLowerCase()?[]:E((null==t?void 0:t.split(",").filter((t=>!(t.toUpperCase().trim()in o)))).toString())}function E(t){return J(t)?[]:t.replace(";",",").split(",").filter((t=>{var e,s,r;const n=t.split("_"),a=null===(e=n[0])||void 0===e?void 0:e.replace(/^dr|^d/,"").toUpperCase().trim(),i=null===(s=n[1])||void 0===s?void 0:s.toUpperCase().trim(),c=null===(r=n[2])||void 0===r?void 0:r.toUpperCase().trim();return 3!==n.length||!(a in o)||!(i in o)||!(c in u)}))}function L(t){return J(t)?[]:E(t.split(",").filter((t=>!(t.toUpperCase().trim()in o))).toString())}function j(t){return J(t)||"auto"===t.trim().toLowerCase()?[]:E(t.split(",").filter((t=>!(t.toUpperCase()in N))).toString())}function W(t){return!J(t)&&Number.isInteger(Number(t))}function $(t){return!J(t)&&!Number.isNaN(Number(t))}function q(t){return!J(t)&&(null==t?void 0:t.toUpperCase())in g}function I(t){return"auto"===(null==t?void 0:t.toLowerCase())||(null==t?void 0:t.toUpperCase())in c}function _(t){if(J(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("name")&&t.hasOwnProperty("unit"))))}catch(t){console.error("validateMeasureList: failed to parse JSON",t)}return["Invalid JSON structure"]}function z(t){const e=Date.parse(t);return Number.isInteger(e)}function C(t){return(null==t?void 0:t.toUpperCase())in A}function x(t){return(null==t?void 0:t.toUpperCase())in O}function G(t){return(null==t?void 0:t.toUpperCase())in l}function K(t){return!J(t)&&(null==t?void 0:t.toUpperCase())in d}function P(t){return!J(t)&&["true","false",!0,!1].some((e=>e===t))}function Q(t){return!J(t)&&(null==t?void 0:t.toUpperCase())in m}function Z(t){if(J(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category")&&t.hasOwnProperty("subCategory"))))}catch(t){console.error("validateThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function H(t){if(J(t))return[];try{const e=JSON.parse(t);if(null!==e&&"object"==typeof e&&!(e instanceof Array))return Object.entries(e).filter((([,t])=>"string"!=typeof t||!w(t))).map((([t,e])=>`${t}: ${e}`))}catch(t){console.error("validateAttributesJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function U(t){if(J(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category"))))}catch(t){console.error("validatePartOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function Y(t){return(null==t?void 0:t.trim().toUpperCase())in f}function B(t){return["_","k","M","G","T","P","E","Z","Y","m","my","μ","n","p","f","a","z","y"].includes(null==t?void 0:t.trim())||["GREATEST","LEAST"].includes(null==t?void 0:t.trim().toUpperCase())}function R(t){return(null==t?void 0:t.toUpperCase().trim())in y}function V(t){return(null==t?void 0:t.toUpperCase().trim())in h}function X(t){if(J(t))return[];try{return JSON.parse(t).filter((t=>!(t.hasOwnProperty("scenario")&&t.hasOwnProperty("name")&&t.hasOwnProperty("subGroups"))))}catch(t){console.error("validateColumnThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function tt(t){if(J(t))return[];try{const e=JSON.parse(t);if("object"!=typeof e||null===e||Array.isArray(e))return["stack: must be a JSON object"];const s=[];if(e.hasOwnProperty("by")){const t=["scenarios","dimensions"];t.includes(e.by)||s.push(`stack: 'by' must be one of: ${t.join(", ")}`)}else s.push("stack: 'by' is required");if(e.hasOwnProperty("mode")){const t=["absolute","relative","absolute-relative"];t.includes(e.mode)||s.push(`stack: 'mode' must be one of: ${t.join(", ")}`)}if(e.hasOwnProperty("order")){const t=["asc","desc","dataset"];t.includes(e.order)||s.push(`stack: 'order' must be one of: ${t.join(", ")}`)}return s}catch(t){return["stack: invalid JSON"]}}function et(t){return!J(t)&&null!==b(t)}M.LOCALE_DATE_FORMAT={en:{week:"'W'WW yyyy",day:"MM/dd/yyyy",fallback:"MM/dd/yyyy"}},M.LOCALE_DATE_FORMAT_SHORT={en:{week:"'W'WW",fallback:"MM/dd/yyyy"}};class st{constructor(){this.cache=new Map,this.tag=st.makeStyleTag()}static makeStyleTag(){const t=document.createElement("style");return t.type="text/css",t.setAttribute("data-bn-computed-style",""),t.append(document.createTextNode("")),(document.head||document.querySelector("head")).append(t),t}apply(t){t.forEach((t=>this.cache.set(t.className,t.style))),this.tag.innerHTML=Array.from(this.cache.values()).map((t=>t)).join("\n")}}const rt=new st;function nt(t){for(var e,s=0,r=0,n=t.length;n>=4;++r,n-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),s=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&s)+(59797*(s>>>16)<<16);switch(n){case 3:s^=(255&t.charCodeAt(r+2))<<16;case 2:s^=(255&t.charCodeAt(r+1))<<8;case 1:s=1540483477*(65535&(s^=255&t.charCodeAt(r)))+(59797*(s>>>16)<<16)}return(((s=1540483477*(65535&(s^=s>>>13))+(59797*(s>>>16)<<16))^s>>>15)>>>0).toString(36)}const at=t=>$(t)?`${t}px`:t,it={width:{className:"w",cssName:"width",attrName:"width",transform:at},height:{className:"h",cssName:"height",attrName:"height",transform:at},position:{className:"pst",cssName:"position",attrName:"position"},top:{className:"top",cssName:"top",attrName:"top",transform:at},right:{className:"rgt",cssName:"right",attrName:"right",transform:at},bottom:{className:"btm",cssName:"bottom",attrName:"bottom",transform:at},left:{className:"lft",cssName:"left",attrName:"left",transform:at},"font-size":{className:"fts",cssName:"font-size",attrName:"font-size",transform:at},"grid-column":{className:"gdc",cssName:"grid-column",attrName:"grid-column"},"grid-row":{className:"gdr",cssName:"grid-row",attrName:"grid-row"}},ot=Object.keys(it);function ut(t,e){const s=function(t,e){const s=nt(e);return`bn-c-${t.className}_${s}`}(t,e),r=function(t,e,s){return`.${e} {${t.cssName}: ${s};}`}(t,s,e);return{className:s,style:r}}const ct=t=>{const e=new Map;return ot.forEach((s=>{const r=t.getAttribute(s);r&&(["top","left","right","bottom"].includes(s)&&e.set("position",ut(it.position,"absolute")),e.set(s,ut(it[s],(it[s].transform||function(t){return t})(r))))})),e},lt=new MutationObserver((t=>{for(const s of t){const t=s.target,r=ct(t);rt.apply(r);const n=Array.from(r.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...n).join(" "),e(t)}})),ht=e=>{const s=e.connectedCallback,r=e.disconnectedCallback;e.connectedCallback=()=>{const r=t(e);if(!r)throw new Error("Can't find element field in component undefined");(t=>{const e=ct(t);rt.apply(e);const s=Array.from(e.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...s).join(" "),lt.observe(t,{attributes:!0,attributeFilter:ot,childList:!1,subtree:!1})})(r),a(s,e)},e.disconnectedCallback=()=>{a(r,e)}};export{X as A,H as B,T as C,O as D,_ as E,z as F,C as G,A as H,W as a,p as b,et as c,q as d,P as e,$ as f,F as g,E as h,J as i,I as j,B as k,tt as l,x as m,G as n,nt as o,M as p,L as q,V as r,K as s,Q as t,Z as u,j as v,ht as w,U as x,Y as y,R as z}
1
+ import{g as t,f as e}from"./p-C5UYpZUU.js";import{g as s,c as r,D as n}from"./p-D5e8I9Qe.js";import{r as a}from"./p-DtLI_CzV.js";import{m as i,S as o,b as u,A as c,c as l,T as h,D as d,d as m,M as f,e as y,r as b}from"./p-BbmobTg0.js";import{b as N,O as g}from"./p-B5Jd_eCX.js";const p=n=>{let o,u,c,l;const h=()=>{const t=u.componentStyles.state;l=i([t._system||{},t._default||{},t[c]||{}],{arrayMergeType:"overwrite"})},d=new MutationObserver((s=>{s.forEach((s=>{"selected-style"===s.attributeName&&(c=t(n).getAttribute("selected-style"),h(),e(n))}))})),m=n.connectedCallback;n.connectedCallback=()=>{const r=t(n);u=s(r),l=u.componentStyles.state._system,d.observe(r,{attributes:!0,attributeFilter:["selected-style"]}),c=t(n).getAttribute("selected-style"),h(),o=u.componentStyles.on("set",(s=>{s===c&&(c=t(n).getAttribute("selected-style"),h(),e(t(n)))})),a(m,n)};const f=n.disconnectedCallback;return n.disconnectedCallback=()=>{d.disconnect(),a(o),r(t(n)),a(f,n)},t=>t(l)},v=/^\s*(set|first|last|min|max|avg|sum|lit)\(\s*(.*?)\s*\)\s*$/,S=/^[A-Za-z_][A-Za-z0-9_]*$/,D=["min","max","avg","sum"];class k{constructor(t,e,s,r){this.label=t,this.alias=e,this.fn=s,this.arg=r}get isNumeric(){return D.includes(this.fn)}}function w(t){if("string"!=typeof t)return!1;const e=v.exec(t);if(!e)return!1;const[,s,r]=e;return"lit"===s?r.length>0:S.test(r)}function T(t,e,s){if(!w(s))return null;const[,r,n]=v.exec(s);return new k(t,e,r,n)}var O,A;!function(t){t.YEAR="year",t.QUARTER="quarter",t.MONTH="month",t.WEEK="week",t.DAY="day",t.HOUR="hour",t.MINUTE="minute",t.SECOND="second",t.MILLISECOND="millisecond",t.NONE="fallback",t.AUTO="auto"}(O||(O={})),function(t){t.AVG="avg",t.INTERVAL="interval",t.START="start",t.END="end",t.YTD="ytd",t.YTG="ytg",t.CUM="cum",t.MAT="mat",t.NONE="none",t.AUTO="auto"}(A||(A={}));class M{constructor(){this._dateFormat={year:"yyyy",quarter:"q'Q' yyyy",month:"LLL yyyy",week:"'KW'WW yyyy",day:"dd.MM.yyyy",hour:"TT",minute:"TT",second:"TT",millisecond:"TT:SSS",fallback:"dd.MM.yyyy"},this._dateFormatShort={year:"yy",quarter:"q'Q'",month:"LLL",week:"'KW'WW",day:"dd",hour:"hh'h'",minute:"mm'm'",second:"ss's'",millisecond:"SSS'ms'",fallback:"dd.MM.yyyy"},this._dateLinkFormat={avg:"Ø[LINK]",interval:"[DATE]..[DATE2]",start:".[DATE]",end:"[DATE].",ytd:"_[DATE]",ytg:"[DATE]_",cum:"[DATE]_[DATE2]",mat:"~[DATE]",none:"[DATE]"},this.locale="de",this.dateFormatPinned=!1,this.dateFormatShortPinned=!1,this.dateFormat=this._dateFormat,this.dateLinkFormat=this._dateLinkFormat,this.dateFormatShort=this._dateFormatShort}setDateLinkFormat(t){this.dateLinkFormat=t}setDateFormat(t){this.dateFormat=t,this.dateFormatPinned=!0}setDateFormatShort(t){this.dateFormatShort=t,this.dateFormatShortPinned=!0}setLocale(t){this.locale=t,this.dateFormatPinned||(this.dateFormat=Object.assign(Object.assign({},this._dateFormat),M.LOCALE_DATE_FORMAT[t]||{})),this.dateFormatShortPinned||(this.dateFormatShort=Object.assign(Object.assign({},this._dateFormatShort),M.LOCALE_DATE_FORMAT_SHORT[t]||{}))}getDateString(t,e){return t.setLocale(this.locale).toFormat(this.dateFormat[e]||this.dateFormat.fallback)}getSmartDateString(t,e){switch(e){case O.DAY:return this.getFormatedDayDate(t);case O.MONTH:return this.getFormatedMonthDate(t);case O.QUARTER:return this.getFormatedQuarterDate(t);case O.WEEK:return this.getFormatedWeekDate(t);case O.HOUR:return this.getFormatedHourDate(t);case O.MINUTE:return this.getFormatedMinuteDate(t);case O.SECOND:return this.getFormatedSecondDate(t);case O.MILLISECOND:return this.getFormatedMilliSecondDate(t);default:return this.getDateString(t,e)}}calculateDistanceType(t,e,s=32){if(null==e)return O.DAY;const r="number"==typeof t?n.fromMillis(t):t,a="number"==typeof e?n.fromMillis(e):e;return 0===a.diff(r).as("milliseconds")?O.DAY:a.diff(r).as("milliseconds")<s?O.MILLISECOND:a.diff(r).as("seconds")<s?O.SECOND:a.diff(r).as("minutes")<s?O.MINUTE:a.diff(r).as("hours")<s?O.HOUR:a.diff(r).as("days")<s?O.DAY:a.diff(r).as("weeks")<s?O.WEEK:a.diff(r).as("months")<s?O.MONTH:a.diff(r).as("quarters")<s?O.QUARTER:O.YEAR}datesBetween(t,e,s,r){const n=this.convertDateDistanceToMomentunitOfTime(s),a=t.startOf(n),i=e.endOf(n);let o=i.diff(a).as(n);const u=[];o>=r&&(o=r);let c=a;do{u.push(c),c=c.plus(this.createDiratonLike(n,1))}while(c<=i&&u.length<o);return u}getDateLinkString(t,e,s,r,a){if(null==t&&null==e)return"";if(null==t&&s!==A.END&&s!==A.YTD)return"";if(null==e&&(A.INTERVAL===s||A.CUM===s||A.END===s||A.YTD===s))return"";const i=t||n.now(),o=e;r===O.AUTO&&(r=this.calculateDistanceType(i,o,a));let u=this.getDateString(i,r),c="",l=A.NONE;return null!=o&&(c=this.getDateString(o,r),l=A.INTERVAL,u===c&&s===A.INTERVAL&&(s=A.NONE),u===c&&s===A.AVG&&(l=A.NONE),A.END!==s&&A.YTD!==s||(u=c),(s===A.INTERVAL||s===A.CUM||A.AVG)&&(r===O.QUARTER?i.quarter===o.quarter&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):r===O.MONTH?i.month===o.month&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):r===O.WEEK&&(i.weekNumber===o.weekNumber&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,""))))),this.dateLinkFormat[s].replace("[LINK]",this.dateLinkFormat[l]).replace("[DATE]",u).replace("[DATE2]",c)}getShortDateString(t,e){return t.setLocale(this.locale).toFormat(this.dateFormatShort[e]||this.dateFormatShort.fallback)}getFormatedDayDate(t){let e=this.dateFormatShort.day;return this.isFirstInMonth(t)&&(e+=" "+this.dateFormatShort.month),this.isJanuary(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedMonthDate(t){let e=this.dateFormatShort.month;return this.isJanuary(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedQuarterDate(t){let e=this.dateFormatShort.quarter;return this.isFirstQuarter(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedWeekDate(t){let e=this.dateFormatShort.week;return this.isFirstWeek(t)&&(e+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(e)}getFormatedHourDate(t){let e=this.dateFormatShort.hour;return this.isFirstHour(t)&&(e+=" "+this.dateFormatShort.day),t.setLocale(this.locale).toFormat(e)}getFormatedMinuteDate(t){let e=this.dateFormatShort.minute;return this.isFirstMinute(t)&&(e=this.dateFormatShort.hour+":"+e),t.setLocale(this.locale).toFormat(e)}getFormatedSecondDate(t){let e=this.dateFormatShort.second;return this.isFirstSecond(t)&&(e=this.dateFormatShort.minute+":"+e),t.setLocale(this.locale).toFormat(e)}getFormatedMilliSecondDate(t){let e=this.dateFormatShort.millisecond;return this.isFirstMilliSecond(t)&&(e=this.dateFormatShort.second+":"+e),t.setLocale(this.locale).toFormat(e)}isFirstInMonth(t){return 1===t.day}isJanuary(t){return 1===t.month}isFirstQuarter(t){return 1===t.quarter}isFirstWeek(t){return 1===t.weekNumber}isFirstHour(t){return 0===t.hour}isFirstMinute(t){return 0===t.minute}isFirstSecond(t){return 0===t.second}isFirstMilliSecond(t){return 0===t.millisecond}convertDateDistanceToMomentunitOfTime(t){let e;switch(t){case O.YEAR:e="year";break;case O.MONTH:e="month";break;case O.QUARTER:e="quarter";break;case O.WEEK:e="week";break;case O.DAY:e="day";break;case O.HOUR:e="hour";break;case O.MINUTE:e="minute";break;case O.SECOND:e="second";break;case O.MILLISECOND:e="millisecond";break;default:e="day"}return e}createDiratonLike(t,e){switch(t){case"year":return{years:e};case"month":return{months:e};case"quarter":return{quarters:e};case"week":return{weeks:e};case"day":default:return{days:e};case"hour":return{hours:e};case"minute":return{minutes:e};case"second":return{seconds:e};case"millisecond":return{milliseconds:e}}}}function J(t){return null==t||""===t||"null"===t}function F(t){return J(t)||"auto"===t.trim().toLowerCase()?[]:E((null==t?void 0:t.split(",").filter((t=>!(t.toUpperCase().trim()in o)))).toString())}function E(t){return J(t)?[]:t.replace(";",",").split(",").filter((t=>{var e,s,r;const n=t.split("_"),a=null===(e=n[0])||void 0===e?void 0:e.replace(/^dr|^d/,"").toUpperCase().trim(),i=null===(s=n[1])||void 0===s?void 0:s.toUpperCase().trim(),c=null===(r=n[2])||void 0===r?void 0:r.toUpperCase().trim();return 3!==n.length||!(a in o)||!(i in o)||!(c in u)}))}function L(t){return J(t)?[]:E(t.split(",").filter((t=>!(t.toUpperCase().trim()in o))).toString())}function j(t){return J(t)||"auto"===t.trim().toLowerCase()?[]:E(t.split(",").filter((t=>!(t.toUpperCase()in N))).toString())}function W(t){return!J(t)&&Number.isInteger(Number(t))}function $(t){return!J(t)&&!Number.isNaN(Number(t))}function q(t){return!J(t)&&(null==t?void 0:t.toUpperCase())in g}function I(t){return"auto"===(null==t?void 0:t.toLowerCase())||(null==t?void 0:t.toUpperCase())in c}function _(t){if(J(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("name")&&t.hasOwnProperty("unit"))))}catch(t){console.error("validateMeasureList: failed to parse JSON",t)}return["Invalid JSON structure"]}function z(t){const e=Date.parse(t);return Number.isInteger(e)}function C(t){return(null==t?void 0:t.toUpperCase())in A}function x(t){return(null==t?void 0:t.toUpperCase())in O}function G(t){return(null==t?void 0:t.toUpperCase())in l}function Q(t){return!J(t)&&(null==t?void 0:t.toUpperCase())in d}function B(t){return!J(t)&&["true","false",!0,!1].some((e=>e===t))}function K(t){return!J(t)&&(null==t?void 0:t.toUpperCase())in m}function Z(t){if(J(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category")&&t.hasOwnProperty("subCategory"))))}catch(t){console.error("validateThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function H(t){if(J(t))return[];try{const e=JSON.parse(t);if(null!==e&&"object"==typeof e&&!(e instanceof Array))return Object.entries(e).filter((([,t])=>"string"!=typeof t||!w(t))).map((([t,e])=>`${t}: ${e}`))}catch(t){console.error("validateAttributesJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function U(t){if(J(t))return[];try{const e=JSON.parse(t);if(e instanceof Array)return e.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category"))))}catch(t){console.error("validatePartOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function P(t){return(null==t?void 0:t.trim().toUpperCase())in f}function Y(t){return["_","k","M","G","T","P","E","Z","Y","m","my","μ","n","p","f","a","z","y"].includes(null==t?void 0:t.trim())||["GREATEST","LEAST"].includes(null==t?void 0:t.trim().toUpperCase())}function R(t){return(null==t?void 0:t.toUpperCase().trim())in y}function V(t){return(null==t?void 0:t.toUpperCase().trim())in h}function X(t){if(J(t))return[];try{return JSON.parse(t).filter((t=>!(t.hasOwnProperty("scenario")&&t.hasOwnProperty("name")&&t.hasOwnProperty("subGroups"))))}catch(t){console.error("validateColumnThereOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function tt(t){if(J(t))return[];try{const e=JSON.parse(t);if("object"!=typeof e||null===e||Array.isArray(e))return["stack: must be a JSON object"];const s=[];if(e.hasOwnProperty("by")){const t=["scenarios","dimensions"];t.includes(e.by)||s.push(`stack: 'by' must be one of: ${t.join(", ")}`)}else s.push("stack: 'by' is required");if(e.hasOwnProperty("mode")){const t=["absolute","relative","absolute-relative"];t.includes(e.mode)||s.push(`stack: 'mode' must be one of: ${t.join(", ")}`)}if(e.hasOwnProperty("order")){const t=["asc","desc","dataset"];t.includes(e.order)||s.push(`stack: 'order' must be one of: ${t.join(", ")}`)}return s}catch(t){return["stack: invalid JSON"]}}function et(t){return!J(t)&&null!==b(t)}M.LOCALE_DATE_FORMAT={en:{week:"'W'WW yyyy",day:"MM/dd/yyyy",fallback:"MM/dd/yyyy"}},M.LOCALE_DATE_FORMAT_SHORT={en:{week:"'W'WW",fallback:"MM/dd/yyyy"}};class st{constructor(){this.cache=new Map,this.tag=st.makeStyleTag()}static makeStyleTag(){const t=document.createElement("style");return t.type="text/css",t.setAttribute("data-bn-computed-style",""),t.append(document.createTextNode("")),(document.head||document.querySelector("head")).append(t),t}apply(t){t.forEach((t=>this.cache.set(t.className,t.style))),this.tag.innerHTML=Array.from(this.cache.values()).map((t=>t)).join("\n")}}const rt=new st;function nt(t){for(var e,s=0,r=0,n=t.length;n>=4;++r,n-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),s=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&s)+(59797*(s>>>16)<<16);switch(n){case 3:s^=(255&t.charCodeAt(r+2))<<16;case 2:s^=(255&t.charCodeAt(r+1))<<8;case 1:s=1540483477*(65535&(s^=255&t.charCodeAt(r)))+(59797*(s>>>16)<<16)}return(((s=1540483477*(65535&(s^=s>>>13))+(59797*(s>>>16)<<16))^s>>>15)>>>0).toString(36)}const at=t=>$(t)?`${t}px`:t,it={width:{className:"w",cssName:"width",attrName:"width",transform:at},height:{className:"h",cssName:"height",attrName:"height",transform:at},position:{className:"pst",cssName:"position",attrName:"position"},top:{className:"top",cssName:"top",attrName:"top",transform:at},right:{className:"rgt",cssName:"right",attrName:"right",transform:at},bottom:{className:"btm",cssName:"bottom",attrName:"bottom",transform:at},left:{className:"lft",cssName:"left",attrName:"left",transform:at},"font-size":{className:"fts",cssName:"font-size",attrName:"font-size",transform:at},"grid-column":{className:"gdc",cssName:"grid-column",attrName:"grid-column"},"grid-row":{className:"gdr",cssName:"grid-row",attrName:"grid-row"}},ot=Object.keys(it);function ut(t,e){const s=function(t,e){const s=nt(e);return`bn-c-${t.className}_${s}`}(t,e),r=function(t,e,s){return`.${e} {${t.cssName}: ${s};}`}(t,s,e);return{className:s,style:r}}const ct=t=>{const e=new Map;return ot.forEach((s=>{const r=t.getAttribute(s);r&&(["top","left","right","bottom"].includes(s)&&e.set("position",ut(it.position,"absolute")),e.set(s,ut(it[s],(it[s].transform||function(t){return t})(r))))})),e},lt=new MutationObserver((t=>{for(const s of t){const t=s.target,r=ct(t);rt.apply(r);const n=Array.from(r.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...n).join(" "),e(t)}})),ht=e=>{const s=e.connectedCallback,r=e.disconnectedCallback;e.connectedCallback=()=>{const r=t(e);if(!r)throw new Error("Can't find element field in component undefined");(t=>{const e=ct(t);rt.apply(e);const s=Array.from(e.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...s).join(" "),lt.observe(t,{attributes:!0,attributeFilter:ot,childList:!1,subtree:!1})})(r),a(s,e)},e.disconnectedCallback=()=>{a(r,e)}};export{X as A,H as B,T as C,O as D,_ as E,z as F,C as G,A as H,W as a,p as b,et as c,q as d,B as e,$ as f,F as g,E as h,J as i,I as j,Y as k,tt as l,x as m,G as n,nt as o,M as p,L as q,V as r,Q as s,K as t,Z as u,j as v,ht as w,U as x,P as y,R as z}