@bino-bi/bn-template-engine 1.0.0-next.46 → 1.0.0-next.47
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.
- package/dist/bn-template-engine/bn-template-engine.esm.js +1 -1
- package/dist/bn-template-engine/index.esm.js +1 -1
- package/dist/bn-template-engine/{p-BnzIfgCq.js → p-3ktFZb1x.js} +1 -1
- package/dist/bn-template-engine/p-444a231f.entry.js +1 -0
- package/dist/bn-template-engine/{p-21930d0a.entry.js → p-6ab684a9.entry.js} +1 -1
- package/dist/bn-template-engine/{p-B0MEAsAS.js → p-7pLJBHT2.js} +1 -1
- package/dist/bn-template-engine/{p-46c46067.entry.js → p-9a24e486.entry.js} +1 -1
- package/dist/bn-template-engine/p-BL07yV8P.js +1 -0
- package/dist/bn-template-engine/p-DXtYQE4s.js +1 -0
- package/dist/bn-template-engine/p-DY5fMUX8.js +1 -0
- package/dist/bn-template-engine/{p-BA-fydUt.js → p-Dvlw60RF.js} +1 -1
- package/dist/bn-template-engine/p-GstO_GU5.js +2 -0
- package/dist/bn-template-engine/p-a6017fce.entry.js +1 -0
- package/dist/bn-template-engine/{p-16623e0f.entry.js → p-b3f5eba0.entry.js} +1 -1
- package/dist/bn-template-engine/p-ddc1b2a9.entry.js +1 -0
- package/dist/bn-template-engine/p-hV2evPFR.js +1 -0
- package/dist/cjs/bn-annotation-layer_30.cjs.entry.js +54 -36
- package/dist/cjs/bn-grid.cjs.entry.js +6 -6
- package/dist/cjs/bn-image.cjs.entry.js +3 -3
- package/dist/cjs/bn-internationalization.cjs.entry.js +3 -3
- package/dist/cjs/bn-ruleset.cjs.entry.js +3 -3
- package/dist/cjs/bn-template-engine.cjs.js +2 -2
- package/dist/cjs/bn-text.cjs.entry.js +4 -4
- package/dist/cjs/index-CM6022qm.js +66 -0
- package/dist/cjs/{index-DGis1BzT.js → index-DwBbheYB.js} +2 -1
- package/dist/cjs/index.cjs.js +6 -14
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{localFrame-C27GGom1.js → localFrame-C4RBw_zT.js} +1 -1
- package/dist/cjs/types-BngAWYMW.js +17 -0
- package/dist/cjs/{withBodyObserver-B78wzw3f.js → withBodyObserver-CIGVLQEB.js} +2 -2
- package/dist/cjs/{withHasError-0hW3-4mr.js → withHasError-CZFrIJw0.js} +1 -1
- package/dist/cjs/{withStyled-D0hrcfE_.js → withStyled-DHKHBdRb.js} +17 -6
- package/dist/cjs/{withTranslation-B4WipL_5.js → withTranslation-CLwC9a8V.js} +3 -3
- package/dist/collection/components/bn-chart-time/utils/TimeChart.js +3 -2
- package/dist/collection/components/bn-chart-time/utils/elements/AreaFill.js +1 -9
- package/dist/collection/components/bn-chart-time/utils/elements/LineSeries.js +1 -6
- package/dist/collection/components/bn-context/bn-context.js +86 -1
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/notation.js +56 -0
- package/dist/collection/utils/withComponentStyle.js +14 -4
- package/dist/components/bn-annotation-layer.js +1 -1
- package/dist/components/bn-annotation-list.js +1 -1
- package/dist/components/bn-asset.js +1 -1
- package/dist/components/bn-body.js +1 -1
- package/dist/components/bn-card.js +1 -1
- package/dist/components/bn-chart-bubble-renderer.js +1 -1
- package/dist/components/bn-chart-bubble.js +1 -1
- package/dist/components/bn-chart-bullet-renderer.js +1 -1
- package/dist/components/bn-chart-bullet.js +1 -1
- package/dist/components/bn-chart-scatter-renderer.js +1 -1
- package/dist/components/bn-chart-scatter.js +1 -1
- package/dist/components/bn-chart-structure-renderer.js +1 -1
- package/dist/components/bn-chart-structure.js +1 -1
- package/dist/components/bn-chart-time-renderer.js +1 -1
- package/dist/components/bn-chart-time.js +1 -1
- package/dist/components/bn-component-style.js +1 -1
- package/dist/components/bn-context.js +1 -1
- package/dist/components/bn-dataset.js +1 -1
- package/dist/components/bn-datasource.js +1 -1
- package/dist/components/bn-footer.js +1 -1
- package/dist/components/bn-grid.js +1 -1
- package/dist/components/bn-image.js +1 -1
- package/dist/components/bn-internationalization.js +1 -1
- package/dist/components/bn-layout-card.js +1 -1
- package/dist/components/bn-layout-page.js +1 -1
- package/dist/components/bn-message.js +1 -1
- package/dist/components/bn-page.js +1 -1
- package/dist/components/bn-ruleset.js +1 -1
- package/dist/components/bn-scaling-group.js +1 -1
- package/dist/components/bn-table-renderer.js +1 -1
- package/dist/components/bn-table.js +1 -1
- package/dist/components/bn-text.js +1 -1
- package/dist/components/bn-title-renderer.js +1 -1
- package/dist/components/bn-title.js +1 -1
- package/dist/components/bn-tree.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CgJB5mCu.js → p-2t-lysdb.js} +1 -1
- package/dist/components/{p-DkCeSWKR.js → p-4xaxuPVU.js} +1 -1
- package/dist/components/{p-Cxx0YNnl.js → p-6242qMx1.js} +1 -1
- package/dist/components/p-6gET6YXc.js +1 -0
- package/dist/components/p-BFWvVe7v.js +1 -0
- package/dist/components/{p-BuWNCnvR.js → p-BFoRIqDi.js} +1 -1
- package/dist/components/p-BP2sJ8k9.js +1 -0
- package/dist/components/{p-BoBamuPt.js → p-BgdoWKFY.js} +1 -1
- package/dist/components/{p-BzjGUtYh.js → p-BjgkgCAQ.js} +1 -1
- package/dist/components/p-BnmylmXF.js +2 -0
- package/dist/components/p-Bp5Xj4-s.js +1 -0
- package/dist/components/{p-Dq9dG0Kr.js → p-BrQCbmG0.js} +1 -1
- package/dist/components/{p-NBaq67dL.js → p-C-3TOa6K.js} +1 -1
- package/dist/components/{p-CFVoK5Rb.js → p-C8rpOS5t.js} +1 -1
- package/dist/components/{p-DQFahsnV.js → p-CG-iY7pQ.js} +1 -1
- package/dist/components/{p-EQNS13GN.js → p-CLjuZoiT.js} +1 -1
- package/dist/components/p-CUoPUIej.js +1 -0
- package/dist/components/p-CZzlLTQc.js +1 -0
- package/dist/components/{p-D_Sbhd0L.js → p-CmvpJzLd.js} +1 -1
- package/dist/components/{p-Be0Q3bvf.js → p-CrZ_O3DT.js} +1 -1
- package/dist/components/{p-eWxolPDU.js → p-CytMTBFu.js} +1 -1
- package/dist/components/{p-4vVbchX2.js → p-D32TsLzd.js} +1 -1
- package/dist/components/p-D3hr9wra.js +1 -0
- package/dist/components/{p-BXg3v5AO.js → p-DDo-fu3v.js} +1 -1
- package/dist/components/{p-B5tixDPM.js → p-DFybNETX.js} +1 -1
- package/dist/components/{p-DROj8gke.js → p-DJSj3oQq.js} +1 -1
- package/dist/components/p-DMAaBt7n.js +1 -0
- package/dist/components/{p-DbWh9W5D.js → p-DRU71K0s.js} +1 -1
- package/dist/components/p-DRmphEA0.js +1 -0
- package/dist/components/{p-9mUU4itF.js → p-DUZCLRVu.js} +1 -1
- package/dist/components/p-DY5fMUX8.js +1 -0
- package/dist/components/p-D_K7tYhY.js +1 -0
- package/dist/components/{p-BrJZUp-K.js → p-DdvG1D18.js} +1 -1
- package/dist/components/{p-D9F5IBFT.js → p-Do4GqlMV.js} +1 -1
- package/dist/components/p-Dw3rv_Y9.js +1 -0
- package/dist/components/{p-BXXjh6We.js → p-Dyzb4ika.js} +1 -1
- package/dist/components/p-JG4Sx1lE.js +1 -0
- package/dist/components/p-TNX3alPU.js +1 -0
- package/dist/components/{p-BKTBdrEA.js → p-Uc0zvXcQ.js} +1 -1
- package/dist/components/p-VtNvNyZK.js +1 -0
- package/dist/components/{p-G56USTsQ.js → p-Zuxd3z0q.js} +1 -1
- package/dist/components/{p-DoOSXntC.js → p-dO0utE8m.js} +1 -1
- package/dist/components/{p-16rjcQ0t.js → p-j42D1yrQ.js} +1 -1
- package/dist/components/{p-B5GRtTLX.js → p-ja0FCkHB.js} +1 -1
- package/dist/esm/bn-annotation-layer_30.entry.js +43 -25
- package/dist/esm/bn-grid.entry.js +5 -5
- package/dist/esm/bn-image.entry.js +3 -3
- package/dist/esm/bn-internationalization.entry.js +3 -3
- package/dist/esm/bn-ruleset.entry.js +3 -3
- package/dist/esm/bn-template-engine.js +3 -3
- package/dist/esm/bn-text.entry.js +4 -4
- package/dist/esm/index-DZHir0Ol.js +60 -0
- package/dist/esm/{index-CCZcKl0Q.js → index-GstO_GU5.js} +2 -2
- package/dist/esm/index.js +2 -15
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{localFrame-CEZ7-hBs.js → localFrame-WNu1bAPm.js} +1 -1
- package/dist/esm/types-DY5fMUX8.js +15 -0
- package/dist/esm/{withBodyObserver-D9yIMxdr.js → withBodyObserver-wJgSN1Pj.js} +2 -2
- package/dist/esm/{withHasError-UGtkLrYT.js → withHasError-BDWEBrrb.js} +1 -1
- package/dist/esm/{withStyled-BlMqEIfr.js → withStyled-CTZFjg4L.js} +17 -7
- package/dist/esm/{withTranslation-Bc3bjHTb.js → withTranslation-BESW5BNq.js} +3 -3
- package/dist/types/components/bn-context/bn-context.d.ts +25 -0
- package/dist/types/components.d.ts +26 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/utils/notation.d.ts +78 -0
- package/dist/types/utils/withComponentStyle.d.ts +6 -0
- package/package.json +1 -1
- package/dist/bn-template-engine/p-17970e07.entry.js +0 -1
- package/dist/bn-template-engine/p-9caa7f46.entry.js +0 -1
- package/dist/bn-template-engine/p-BEGt_7Hr.js +0 -1
- package/dist/bn-template-engine/p-BRO1oW7m.js +0 -1
- package/dist/bn-template-engine/p-CCZcKl0Q.js +0 -2
- package/dist/bn-template-engine/p-b0d528f2.entry.js +0 -1
- package/dist/components/p-9X5fVJqR.js +0 -1
- package/dist/components/p-BKA15uoz.js +0 -1
- package/dist/components/p-BKLq0Pbv.js +0 -1
- package/dist/components/p-BPGLOHUe.js +0 -1
- package/dist/components/p-Bd8cQiLx.js +0 -1
- package/dist/components/p-Bj3RWsEx.js +0 -1
- package/dist/components/p-D6YGOYV1.js +0 -2
- package/dist/components/p-Do4oPrkE.js +0 -1
- package/dist/components/p-Dxj_pf8s.js +0 -1
- package/dist/components/p-DzYhS_9s.js +0 -1
- package/dist/components/p-OgFFKehL.js +0 -1
- package/dist/components/p-kvYRImZT.js +0 -1
- package/dist/components/p-rEdNIgD8.js +0 -1
- package/dist/components/p-uCpFBDF5.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,a as i,g as o}from"./p-
|
|
1
|
+
import{r as t,h as s,a as i,g as o}from"./p-GstO_GU5.js";import{w as e}from"./p-BL07yV8P.js";import{w as r,a,g as n,f as h,R as c}from"./p-7pLJBHT2.js";import{e as b}from"./p-ClruFZD_.js";const f=class{constructor(s){t(this,s),this.namespace="_system",r(this),this.errors=a(this),e(this,(t=>{if(this.stores||(this.stores=n(this.element)),""!==t.trim())try{const s=JSON.parse(t);if(null===s||"object"!=typeof s||Array.isArray(s))throw new Error("not a JSON object.");const i=h(s);for(const[t,s]of Object.entries(c))t in i&&!(s in i)&&(i[s]=i[t]);const o=this.namespace||"_system",e=Object.assign({},this.stores.internationalization.get(o));e[this.code]=Object.assign(Object.assign({},e[this.code]),i),this.stores.internationalization.set(o,e),this.errors.remove("ERR_body")}catch(t){this.errors.addOrReplace({id:"ERR_body",type:"error",message:`Body: ${b(t)}`})}else this.errors.remove("ERR_body")}))}render(){return s(i,{key:"7e7454bf0b02ea746a736daaabb09c9ff52b3775"})}get element(){return o(this)}};f.style="bn-internationalization{display:none}";export{f as bn_internationalization}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as t}from"./p-GstO_GU5.js";import{r}from"./p-7pLJBHT2.js";const s=(s,o)=>{let a;const e=new MutationObserver((()=>{var t;a&&o(null!==(t=a.textContent)&&void 0!==t?t:"")})),i=s.connectedCallback;s.connectedCallback=()=>{var n;a=t(s),e.observe(a,{childList:!0,subtree:!0,characterData:!0}),o(null!==(n=a.textContent)&&void 0!==n?n:""),r(i,s)};const n=s.disconnectedCallback;s.disconnectedCallback=()=>{e.disconnect(),r(n,s)}};export{s as w}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as t,f as n}from"./p-GstO_GU5.js";import{g as e,r,c as s,D as a}from"./p-7pLJBHT2.js";const i=t=>{if("object"==typeof t&&null!==t){if("function"==typeof Object.getPrototypeOf){const n=Object.getPrototypeOf(t);return n===Object.prototype||null===n}return"[object Object]"===Object.prototype.toString.call(t)}return!1},o=(t,n)=>n,u=(t,n)=>[...new Set([...t,...n])],c=(t,n)=>{const e=(t=>{return{arrayMergeType:"combine",arrayMerge:(n=t?t.arrayMergeType:"combine","overwrite"===n?o:u),...t};var n})(n);return t.reduce(((t,n)=>(Object.keys(n).forEach((r=>{Array.isArray(t[r])&&Array.isArray(n[r])?e&&e.arrayMerge&&(t[r]=e.arrayMerge(t[r],n[r])):t[r]=i(t[r])&&i(n[r])?c([t[r],n[r]],e):n[r]})),t)),{})},l=(t,n)=>c([t._system||{},t._default||{},void 0!==n&&t[n]||{}],{arrayMergeType:"overwrite"}),f=a=>{let i,o,u,c;const f=()=>{c=l(o.componentStyles.state,u)},d=a.connectedCallback;a.connectedCallback=()=>{const s=t(a);o=e(s),c=o.componentStyles.state._system,u=a.selectedStyle,f(),i=o.componentStyles.on("set",(e=>{e!==u&&"_default"!==e||(u=a.selectedStyle,f(),n(t(a)))})),r(d,a)};const h=a.disconnectedCallback;return a.disconnectedCallback=()=>{r(i),s(t(a)),r(h,a)},t=>(void 0!==o&&a.selectedStyle!==u&&(u=a.selectedStyle,f()),t(c))};var d,h,m,y,p,b,v,g;!function(t){t.ALL="all",t.META="meta"}(d||(d={})),function(t){t.CURRENCY="currency",t.VOLUME="volume"}(h||(h={})),function(t){t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}(m||(m={})),function(t){t.POS="pos",t.NEG="neg",t.NEU="neu",t.OP="op",t.OPINV="opinv"}(y||(y={})),function(t){t.DECIMAL="decimal",t.PERCENT="percent"}(p||(p={})),function(t){t.LIST="list",t.SUM="sum",t.SUMNOTOTAL="sumnototal",t.OPT="opt",t.OPTNOTOTAL="optnototal"}(b||(b={})),function(t){t.INF="inf",t.W100="w100",t.W50="w50",t.W25="w25",t.W20="w20",t.W15="w15",t.W10="w10",t.W5="w5"}(v||(v={})),function(t){t.W5="w5",t.W10="w10",t.W15="w15",t.W20="w20",t.W25="w25",t.W30="w30",t.W40="w40",t.W60="w60",t.W80="w80",t.W100="w100"}(g||(g={}));const N={[g.W5]:5,[g.W10]:10,[g.W15]:15,[g.W20]:20,[g.W25]:25,[g.W30]:30,[g.W40]:40,[g.W60]:60,[g.W80]:80,[g.W100]:100};var w,k,S,O,D,T;!function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex"}(w||(w={})),function(t){t.SMART="smart",t.LONG="long",t.SHORT="short"}(k||(k={})),function(t){t.COLUMN="column",t.LINE="line",t.WATERFALL="waterfall"}(S||(S={})),function(t){t.BAR="bar",t.LINE="line",t.AUTO="auto"}(O||(O={})),function(t){t.SCENARIOS="scenarios",t.DIMENSIONS="dimensions"}(D||(D={})),function(t){t.ABSOLUTE="absolute",t.RELATIVE="relative",t.ABSOLUTE_RELATIVE="absolute-relative"}(T||(T={}));const A=100;var M,E,j,J,L,$,F;!function(t){t.ASC="asc",t.DESC="desc",t.DATASET="dataset"}(M||(M={})),function(t){t[t.ALL=-1]="ALL"}(E||(E={})),function(t){t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.DIRTY=1]="DIRTY"}(j||(j={})),function(t){t.LIST="list",t.SUM="sum",t.SUMNOTOTAL="sumnototal",t.OPT="opt",t.OPTNOTOTAL="optnototal"}(J||(J={})),function(t){t.BELOW="below",t.ABOVE="above"}(L||(L={})),function(t){t.ASC="asc",t.DESC="desc"}($||($={})),function(t){t.HEADER="HEADER",t.GROUPHEAD="GROUPHEAD",t.SEPERATORLINE="SEPERATORLINE",t.SUM="SUM",t.GROUPSUM="GROUP_SUM",t.DRILLELEMENT="DRILLELEMENT",t.STANDARD="STANDARD",t.PARTELEMENT="PARTELEMENT",t.ENTRY="ENTRY"}(F||(F={}));const _=/^\s*(set|first|last|min|max|avg|sum|lit)\(\s*(.*?)\s*\)\s*$/,I=/^[A-Za-z_][A-Za-z0-9_]*$/,W=["min","max","avg","sum"];class x{constructor(t,n,e,r){this.label=t,this.alias=n,this.fn=e,this.arg=r}get isNumeric(){return W.includes(this.fn)}}function G(t){if("string"!=typeof t)return!1;const n=_.exec(t);if(!n)return!1;const[,e,r]=n;return"lit"===e?r.length>0:I.test(r)}function R(t,n,e){if(!G(e))return null;const[,r,s]=_.exec(e);return new x(t,n,r,s)}var q,z,C,P;!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"}(q||(q={})),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"}(z||(z={}));class U{constructor(){this._dateFormat={year:"yyyy",quarter:"q'Q' yyyy",month:"LLL yyyy",week:"'KW'WW kkkk",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}patchDateFormatShort(t){this.dateFormatShort=Object.assign(Object.assign({},this.dateFormatShort),t)}setLocale(t){this.locale=t,this.dateFormatPinned||(this.dateFormat=Object.assign(Object.assign({},this._dateFormat),U.LOCALE_DATE_FORMAT[t]||{})),this.dateFormatShortPinned||(this.dateFormatShort=Object.assign(Object.assign({},this._dateFormatShort),U.LOCALE_DATE_FORMAT_SHORT[t]||{}))}getDateString(t,n){return t.setLocale(this.locale).toFormat(this.dateFormat[n]||this.dateFormat.fallback)}getSmartDateString(t,n){switch(n){case q.DAY:return this.getFormatedDayDate(t);case q.MONTH:return this.getFormatedMonthDate(t);case q.QUARTER:return this.getFormatedQuarterDate(t);case q.WEEK:return this.getFormatedWeekDate(t);case q.HOUR:return this.getFormatedHourDate(t);case q.MINUTE:return this.getFormatedMinuteDate(t);case q.SECOND:return this.getFormatedSecondDate(t);case q.MILLISECOND:return this.getFormatedMilliSecondDate(t);default:return this.getDateString(t,n)}}calculateDistanceType(t,n,e=32){if(null==n)return q.DAY;const r="number"==typeof t?a.fromMillis(t):t,s="number"==typeof n?a.fromMillis(n):n;return 0===s.diff(r).as("milliseconds")?q.DAY:s.diff(r).as("milliseconds")<e?q.MILLISECOND:s.diff(r).as("seconds")<e?q.SECOND:s.diff(r).as("minutes")<e?q.MINUTE:s.diff(r).as("hours")<e?q.HOUR:s.diff(r).as("days")<e?q.DAY:s.diff(r).as("weeks")<e?q.WEEK:s.diff(r).as("months")<e?q.MONTH:s.diff(r).as("quarters")<e?q.QUARTER:q.YEAR}datesBetween(t,n,e){const r=this.convertDateDistanceToMomentunitOfTime(e),s=t.startOf(r),a=n.endOf(r),i=[];let o=s;do{i.push(o),o=o.plus(this.createDiratonLike(r,1))}while(o<=a);return i}countBetween(t,n,e){const r=this.convertDateDistanceToMomentunitOfTime(e);return Math.floor(n.startOf(r).diff(t.startOf(r),r).as(r))+1}getDateLinkString(t,n,e,r,s){if(null==t&&null==n)return"";if(null==t&&e!==z.END&&e!==z.YTD)return"";if(null==n&&(z.INTERVAL===e||z.CUM===e||z.END===e||z.YTD===e))return"";const i=t||a.now(),o=n;r===q.AUTO&&(r=this.calculateDistanceType(i,o,s));let u=this.getDateString(i,r),c="",l=z.NONE;return null!=o&&(c=this.getDateString(o,r),l=z.INTERVAL,u===c&&e===z.INTERVAL&&(e=z.NONE),u===c&&e===z.AVG&&(l=z.NONE),z.END!==e&&z.YTD!==e||(u=c),e!==z.INTERVAL&&e!==z.CUM&&e!==z.AVG||(r===q.QUARTER?i.quarter===o.quarter&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):r===q.MONTH?i.month===o.month&&i.year===o.year?c=c.replace(" "+o.year,""):i.year===o.year&&(u=u.replace(" "+i.year,"")):r===q.WEEK&&(i.weekNumber===o.weekNumber&&i.weekYear===o.weekYear?c=c.replace(" "+o.weekYear,""):i.weekYear===o.weekYear&&(u=u.replace(" "+i.weekYear,""))))),this.dateLinkFormat[e].replace("[LINK]",this.dateLinkFormat[l]).replace("[DATE]",u).replace("[DATE2]",c)}getShortDateString(t,n){return t.setLocale(this.locale).toFormat(this.dateFormatShort[n]||this.dateFormatShort.fallback)}getFormatedDayDate(t){let n=this.dateFormatShort.day;return this.isFirstInMonth(t)&&(n+=" "+this.dateFormatShort.month),this.isJanuary(t)&&(n+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(n)}getFormatedMonthDate(t){let n=this.dateFormatShort.month;return this.isJanuary(t)&&(n+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(n)}getFormatedQuarterDate(t){let n=this.dateFormatShort.quarter;return this.isFirstQuarter(t)&&(n+=" "+this.dateFormatShort.year),t.setLocale(this.locale).toFormat(n)}getFormatedWeekDate(t){let n=this.dateFormatShort.week;return this.isFirstWeek(t)&&(n+=" kk"),t.setLocale(this.locale).toFormat(n)}getFormatedHourDate(t){let n=this.dateFormatShort.hour;return this.isFirstHour(t)&&(n+=" "+this.dateFormatShort.day),t.setLocale(this.locale).toFormat(n)}getFormatedMinuteDate(t){let n=this.dateFormatShort.minute;return this.isFirstMinute(t)&&(n=this.dateFormatShort.hour+":"+n),t.setLocale(this.locale).toFormat(n)}getFormatedSecondDate(t){let n=this.dateFormatShort.second;return this.isFirstSecond(t)&&(n=this.dateFormatShort.minute+":"+n),t.setLocale(this.locale).toFormat(n)}getFormatedMilliSecondDate(t){let n=this.dateFormatShort.millisecond;return this.isFirstMilliSecond(t)&&(n=this.dateFormatShort.second+":"+n),t.setLocale(this.locale).toFormat(n)}isSmartBoundary(t,n){switch(n){case q.DAY:return this.isFirstInMonth(t);case q.WEEK:return this.isFirstWeek(t);case q.MONTH:return this.isJanuary(t);case q.QUARTER:return this.isFirstQuarter(t);default:return!1}}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 n;switch(t){case q.YEAR:n="year";break;case q.MONTH:n="month";break;case q.QUARTER:n="quarter";break;case q.WEEK:n="week";break;case q.DAY:n="day";break;case q.HOUR:n="hour";break;case q.MINUTE:n="minute";break;case q.SECOND:n="second";break;case q.MILLISECOND:n="millisecond";break;default:n="day"}return n}createDiratonLike(t,n){switch(t){case"year":return{years:n};case"month":return{months:n};case"quarter":return{quarters:n};case"week":return{weeks:n};case"day":default:return{days:n};case"hour":return{hours:n};case"minute":return{minutes:n};case"second":return{seconds:n};case"millisecond":return{milliseconds:n}}}}U.LOCALE_DATE_FORMAT={en:{week:"'W'WW kkkk",day:"MM/dd/yyyy",fallback:"MM/dd/yyyy"}},U.LOCALE_DATE_FORMAT_SHORT={en:{week:"'W'WW",fallback:"MM/dd/yyyy"}};class B{static isExisting(t){return null!=t}static isString(t){return"string"==typeof t}static isNumber(t){return"number"==typeof t&&!Number.isNaN(t)}static isBoolean(t){return"boolean"==typeof t}static isArray(t){return Array.isArray(t)}static isObject(t){return"object"==typeof t&&null!==t}static isOperator(t){return"+"===t||"-"===t}static isDate(t){return t instanceof a&&t.isValid}}class H{static adaptDefaultString(t){return B.isString(t)?t.trim():""}static adaptArray(t,n){const e=[];return B.isArray(t)&&t.forEach((t=>{e.push(n.adapt(t))})),e}}!function(t){t.ASC="asc",t.DESC="desc"}(C||(C={})),function(t){t.ROWGROUP="rowGroup",t.ROWGROUPINDEX="rowGroupIndex",t.CATEGORY="category",t.CATEGORYINDEX="categoryIndex",t.SUBCATEGORY="subCategory",t.SUBCATEGORYINDEX="subCategoryIndex",t.AC1="ac1",t.AC2="ac2",t.AC3="ac3",t.AC4="ac4",t.PP1="pp1",t.PP2="pp2",t.PP3="pp3",t.PP4="pp4",t.FC1="fc1",t.FC2="fc2",t.FC3="fc3",t.FC4="fc4",t.PL1="pl1",t.PL2="pl2",t.PL3="pl3",t.PL4="pl4"}(P||(P={}));class K{constructor(t=["category"],n=C.ASC){this.hierarchy=t,this.direction=n}}const Q=[P.ROWGROUP,P.ROWGROUPINDEX,P.CATEGORY,P.CATEGORYINDEX,P.SUBCATEGORY,P.SUBCATEGORYINDEX],Y=/^(?:ac|fc|pp|pl)[1-4]$/,Z=/^(dr|d)((?:ac|fc|pp|pl)[1-4])_((?:ac|fc|pp|pl)[1-4])(?:_(?:pos|neg|neu|opinv|op))?$/;function V(t){if(null==t)return;const n=t.indexOf("@"),e=(n<0?t:t.slice(0,n)).trim().toLowerCase(),r=n<0?void 0:t.slice(n+1).trim();if(""===r)return;const s=P[e.toUpperCase()];if(null!=s&&Q.includes(s))return void 0===r?{kind:"dim",column:s}:void 0;if(Y.test(e))return{kind:"scenario",column:e,bucket:r};const a=Z.exec(e);if(null!=a){const[,t,n,e]=a;return{kind:"variance",column:`${t}${n}_${e}`,type:t,base:n,delta:e,bucket:r}}}function X(t){const n=V(t);if(null!=n)return void 0===n.bucket?n.column:`${n.column}@${n.bucket}`}class tt{constructor(t,n=!1){this.stringAdapter=t,this.allowMeasures=n}adapt(t){var n;const e=H.adaptArray(t.hierarchy,this.stringAdapter),r=C[null===(n=t.direction)||void 0===n?void 0:n.toUpperCase()]||C.ASC;return new K(e.map((t=>(this.allowMeasures?X(t):P[t.toUpperCase()])||P.CATEGORY)),r)}default(){return new K(["category"],C.ASC)}}const nt="n/a";function et(t,n){if(!(Math.abs(n)<=1e-9*Math.abs(t)))return t/Math.abs(n)}const rt=/^(dr|d)((?:ac|pp|fc|pl)[1-4])_((?:ac|pp|fc|pl)[1-4])(?:_(pos|neg|neu|op|opinv))?$/;class st{constructor(t,n,e){this.type=t,this.base=n,this.delta=e}static parse(t){const n=rt.exec(t);return null===n?null:new st(n[1],n[2],n[3])}compute(t,n){var e;return null==t||null==n?null:"dr"===this.type?0===n?null:null!==(e=et(t-n,n))&&void 0!==e?e:null:t-n}}function at(t){const n=t.trim();if(Object.values(m).includes(n))return{kind:"scenario",slot:n};const e=st.parse(n);return null!==e?{kind:"variance",measure:e}:null}function it(t){return t.replace(/\d+$/,"")}function ot(t){return t.replace(/^[a-z]+/,"")}function ut(t){var n;return"dr"===(null===(n=st.parse(t.trim()))||void 0===n?void 0:n.type)}function ct(t){if(!ut(t.measure))return t;const n=t=>void 0===t?void 0:t/100;return Object.assign(Object.assign({},t),{min:n(t.min),max:n(t.max),refLine:n(t.refLine),highlight:t.highlight&&{from:n(t.highlight.from),to:n(t.highlight.to)}})}function lt(t){return null==t||""===t||"null"===t}function ft(t){return"string"==typeof t&&"none"===t.trim().toLowerCase()}function dt(t){return lt(t)||"auto"===t.trim().toLowerCase()?[]:ht((null==t?void 0:t.split(",").filter((t=>!(t.toUpperCase().trim()in m)))).toString())}function ht(t){return lt(t)?[]:t.replace(";",",").split(",").filter((t=>{var n,e,r;const s=t.split("_"),a=null===(n=s[0])||void 0===n?void 0:n.replace(/^dr|^d/,"").toUpperCase().trim(),i=null===(e=s[1])||void 0===e?void 0:e.toUpperCase().trim(),o=null===(r=s[2])||void 0===r?void 0:r.toUpperCase().trim();return 3!==s.length||!(a in m)||!(i in m)||!(o in y)}))}function mt(t){return lt(t)?[]:ht(t.split(",").filter((t=>!(t.toUpperCase().trim()in m))).toString())}function yt(t){return lt(t)||"auto"===t.trim().toLowerCase()?[]:ht(t.split(",").filter((t=>!(t.toUpperCase()in P))).toString())}function pt(t){return lt(t)||"auto"===t.trim().toLowerCase()?[]:t.split(",").filter((t=>void 0===V(t)))}function bt(t){return!lt(t)&&Number.isInteger(Number(t))}function vt(t){return!lt(t)&&!Number.isNaN(Number(t))}function gt(t){return!lt(t)&&(null==t?void 0:t.toUpperCase())in C}function Nt(t){return"auto"===(null==t?void 0:t.toLowerCase())||(null==t?void 0:t.toUpperCase())in w}function wt(t){if(lt(t))return[];try{const n=JSON.parse(t);if(n instanceof Array)return n.filter((t=>!(t.hasOwnProperty("name")&&t.hasOwnProperty("unit"))))}catch(t){console.error("validateMeasureList: failed to parse JSON",t)}return["Invalid JSON structure"]}function kt(t){const n=Date.parse(t);return Number.isInteger(n)}function St(t){return(null==t?void 0:t.toUpperCase())in z}function Ot(t){return(null==t?void 0:t.toUpperCase())in q}function Dt(t){return(null==t?void 0:t.toUpperCase())in k}function Tt(t){return!lt(t)&&(null==t?void 0:t.toUpperCase())in p}function At(t){return!lt(t)&&(null==t?void 0:t.toUpperCase())in b}function Mt(t){return(null==t?void 0:t.toUpperCase())in L}function Et(t){if(lt(t))return[];try{const n=JSON.parse(t);if(n instanceof Array)return n.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 jt(t){if(lt(t))return[];try{const n=JSON.parse(t);if(null!==n&&"object"==typeof n&&!(n instanceof Array))return Object.entries(n).filter((([,t])=>"string"!=typeof t||!G(t))).map((([t,n])=>`${t}: ${n}`))}catch(t){console.error("validateAttributesJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function Jt(t){if(lt(t))return[];try{const n=JSON.parse(t);if(n instanceof Array)return n.filter((t=>!(t.hasOwnProperty("rowGroup")&&t.hasOwnProperty("category"))))}catch(t){console.error("validatePartOfJsonStr: failed to parse JSON",t)}return["Invalid JSON structure"]}function Lt(t){return(null==t?void 0:t.trim().toUpperCase())in h}function $t(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 Ft(t){return(null==t?void 0:t.toUpperCase().trim())in v}function _t(t){return(null==t?void 0:t.toUpperCase().trim())in g}function It(t){if(lt(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 Wt(t){if(lt(t))return[];try{const n=JSON.parse(t);if("object"!=typeof n||null===n||Array.isArray(n))return["stack: must be a JSON object"];const e=[];if(n.hasOwnProperty("by")){const t=["scenarios","dimensions"];t.includes(n.by)||e.push(`stack: 'by' must be one of: ${t.join(", ")}`)}else e.push("stack: 'by' is required");if(n.hasOwnProperty("mode")){const t=["absolute","relative","absolute-relative"];t.includes(n.mode)||e.push(`stack: 'mode' must be one of: ${t.join(", ")}`)}if(n.hasOwnProperty("order")){const t=["asc","desc","dataset"];t.includes(n.order)||e.push(`stack: 'order' must be one of: ${t.join(", ")}`)}return e}catch(t){return["stack: invalid JSON"]}}function xt(t){return!lt(t)&&null!==at(t)}class Gt{constructor(){this.cache=new Map,this.tag=Gt.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.textContent=Array.from(this.cache.values()).map((t=>t)).join("\n")}}const Rt=new Gt;function qt(t){for(var n,e=0,r=0,s=t.length;s>=4;++r,s-=4)n=1540483477*(65535&(n=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(n>>>16)<<16),e=1540483477*(65535&(n^=n>>>24))+(59797*(n>>>16)<<16)^1540483477*(65535&e)+(59797*(e>>>16)<<16);switch(s){case 3:e^=(255&t.charCodeAt(r+2))<<16;case 2:e^=(255&t.charCodeAt(r+1))<<8;case 1:e=1540483477*(65535&(e^=255&t.charCodeAt(r)))+(59797*(e>>>16)<<16)}return(((e=1540483477*(65535&(e^=e>>>13))+(59797*(e>>>16)<<16))^e>>>15)>>>0).toString(36)}const zt=t=>vt(t)?`${t}px`:t,Ct={width:{className:"w",cssName:"width",attrName:"width",transform:zt},height:{className:"h",cssName:"height",attrName:"height",transform:zt},position:{className:"pst",cssName:"position",attrName:"position"},top:{className:"top",cssName:"top",attrName:"top",transform:zt},right:{className:"rgt",cssName:"right",attrName:"right",transform:zt},bottom:{className:"btm",cssName:"bottom",attrName:"bottom",transform:zt},left:{className:"lft",cssName:"left",attrName:"left",transform:zt},"font-size":{className:"fts",cssName:"font-size",attrName:"font-size",transform:zt},"grid-column":{className:"gdc",cssName:"grid-column",attrName:"grid-column"},"grid-row":{className:"gdr",cssName:"grid-row",attrName:"grid-row"}},Pt=Object.keys(Ct);function Ut(t,n,e){return`.${n} {${t.cssName}: ${e};}`}function Bt(t,n){const e=document.createElement("div").style;e.setProperty(t.cssName,n);const r=e.getPropertyValue(t.cssName);if(e.cssText=`${t.cssName}:${r};--bn-end:1`,!r||r.includes("<")||"1"!==e.getPropertyValue("--bn-end"))return;const s=function(t,n){const e=qt(n);return`bn-c-${t.className}_${e}`}(t,n);return{className:s,style:Ut(t,s,r)}}const Ht=t=>{const n=new Map;return Pt.forEach((e=>{const r=t.getAttribute(e);if(r){["top","left","right","bottom"].includes(e)&&n.set("position",Bt(Ct.position,"absolute"));const t=Bt(Ct[e],(Ct[e].transform||function(t){return t})(r));t&&n.set(e,t)}})),n},Kt=new MutationObserver((t=>{for(const e of t){const t=e.target,r=Ht(t);Rt.apply(r);const s=Array.from(r.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...s).join(" "),n(t)}})),Qt=n=>{const e=n.connectedCallback,s=n.disconnectedCallback;n.connectedCallback=()=>{const s=t(n);if(!s)throw new Error("Can't find element field in component undefined");(t=>{const n=Ht(t);Rt.apply(n);const e=Array.from(n.values()).map((t=>t.className));t.className=t.className.split(" ").filter((t=>!t.startsWith("bn-c-"))).concat(...e).join(" "),Kt.observe(t,{attributes:!0,attributeFilter:Pt,childList:!1,subtree:!1})})(s),r(e,n)},n.disconnectedCallback=()=>{r(s,n)}};export{p as $,w as A,vt as B,B as C,Ot as D,Dt as E,q as F,k as G,O as H,U as I,l as J,qt as K,mt as L,_t as M,nt as N,C as O,Tt as P,At as Q,A as R,D as S,Et as T,Mt as U,Jt as V,pt as W,Lt as X,Ft as Y,It as Z,jt as _,f as a,L as a0,J as a1,X as a2,d as a3,v as a4,h as a5,R as a6,N as a7,g as a8,F as a9,I as aa,V as ab,m as ac,$ as ad,j as ae,wt as af,kt as ag,St as ah,z as ai,bt as b,xt as c,ot as d,ct as e,ut as f,gt as g,K as h,lt as i,P as j,ft as k,dt as l,c as m,ht as n,Nt as o,$t as p,Wt as q,at as r,it as s,M as t,T as u,yt as v,Qt as w,H as x,tt as y,et as z}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=1;export{o as L}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as t}from"./p-
|
|
1
|
+
import{b as t}from"./p-7pLJBHT2.js";const n=t=>Math.round(100*t)/100;function o(t){return{x:n(t.left),y:n(t.top),width:n(t.width),height:n(t.height)}}function r(t,o){const r=n(t.width),e=n(t.height);return{context:{x:n(t.left-o.context.x),y:n(t.top-o.context.y),width:r,height:e},component:{x:n(t.left-o.component.x),y:n(t.top-o.component.y),width:r,height:e}}}function e(t,n){return r(t.getBoundingClientRect(),n)}function i(t){const n=getComputedStyle(t,"::before").content;if(!n||"none"===n||"normal"===n)return 0;const o=t.ownerDocument.createElement("canvas").getContext("2d");if(!o)return 0;const{fontStyle:r,fontWeight:e,fontSize:i,fontFamily:u}=getComputedStyle(t);return o.font=`${r} ${e} ${i} ${u}`,o.measureText(n.replace(/^"|"$/g,"")).width}function u(t,n){var o,e;const i=null===(e=null===(o=t.ownerDocument)||void 0===o?void 0:o.createRange)||void 0===e?void 0:e.call(o);if(!i)return;const u=t.getBoundingClientRect(),c=t.querySelector("svg text");let a;if(c)a=c.getBoundingClientRect();else{i.selectNodeContents(t);const n=t.querySelector(".prefix-second");n&&i.setStartAfter(n),a=i.getBoundingClientRect()}const l=Math.max(a.left,u.left),s=Math.max(a.top,u.top),f=Math.min(a.right,u.right)-l,h=Math.min(a.bottom,u.bottom)-s;return f>0&&h>0?r({left:l,top:s,width:f,height:h},n):void 0}function c(n){const o=n.getBoundingClientRect(),r=t(n),e=r?r.getBoundingClientRect():o;return{context:{x:e.left,y:e.top},component:{x:o.left,y:o.top}}}function a(t){var n,o;return null!==(o=null!==(n=t.getAttribute("id"))&&void 0!==n?n:t.getAttribute("name"))&&void 0!==o?o:void 0}function l(t){var n;return null!==(n=a(t))&&void 0!==n?n:t.localName}function s(t){const n=new Map;return t.map((({tag:t,explicitId:o})=>{var r;const e=null!==(r=n.get(t))&&void 0!==r?r:0;return n.set(t,e+1),null!=o?o:`${t}[${e}]`}))}function f(t){const n=t.getAttribute("has-error");if(!n)return[];try{const t=JSON.parse(n);return Array.isArray(t)?t:[]}catch(t){return[]}}const h=[1,0,0,1],d=([t,n,o,r],[e,i,u,c])=>[t*e+o*i,n*e+r*i,t*u+o*c,n*u+r*c];function v(t){if("function"!=typeof getComputedStyle||"function"!=typeof DOMMatrix)return h;const n=getComputedStyle(t).transform;if(!n||"none"===n)return h;try{const{a:t,b:o,c:r,d:e}=new DOMMatrix(n);return[t,o,r,e]}catch(t){return h}}function y(t){var n,o,r;return null!==(r=null!==(o=null!==(n=t.assignedSlot)&&void 0!==n?n:t.parentElement)&&void 0!==o?o:t.getRootNode().host)&&void 0!==r?r:null}function x(t){var n,o;const[r,e,i,u]=function(t){let n=h;for(let o=t;o;o=y(o))n=d(v(o),n);return n}(t),c=r*u-e*i;if(0===c){const n=t.getBoundingClientRect();return{toLocal:t=>({x:t.left-n.left,y:t.top-n.top,width:t.width,height:t.height})}}const a=(t,n)=>({x:r*t+i*n,y:e*t+u*n}),l=t,s=t.getBoundingClientRect(),f=null!==(n=l.offsetWidth)&&void 0!==n?n:s.width,x=null!==(o=l.offsetHeight)&&void 0!==o?o:s.height,p=[a(0,0),a(f,0),a(0,x),a(f,x)],M=s.left-Math.min(...p.map((t=>t.x))),g=s.top-Math.min(...p.map((t=>t.y))),m=(t,n)=>{const o=t-M,a=n-g;return{x:(u*o-i*a)/c,y:(-e*o+r*a)/c}};return{toLocal:t=>{const n=[m(t.left,t.top),m(t.left+t.width,t.top),m(t.left,t.top+t.height),m(t.left+t.width,t.top+t.height)],o=Math.min(...n.map((t=>t.x))),r=Math.min(...n.map((t=>t.y)));return{x:o,y:r,width:Math.max(...n.map((t=>t.x)))-o,height:Math.max(...n.map((t=>t.y)))-r}}}}export{l as a,s as b,a as c,u as d,i as e,x as l,e as m,c as o,f as r,o as t}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const t="bn-template-engine",e={allRenderFn:!0,appendChildSlotFix:!1,asyncLoading:!0,asyncQueue:!1,attachStyles:!0,cloneNodeFix:!1,constructableCSS:!0,cssAnnotations:!0,deserializer:!1,devTools:!1,element:!1,event:!0,experimentalScopedSlotChanges:!1,experimentalSlotFixes:!1,formAssociated:!1,hasRenderFn:!0,hostListener:!1,hostListenerTarget:!1,hostListenerTargetBody:!1,hostListenerTargetDocument:!1,hostListenerTargetParent:!1,hostListenerTargetWindow:!1,hotModuleReplacement:!1,hydrateClientSide:!1,hydrateServerSide:!1,hydratedAttribute:!1,hydratedClass:!0,hydratedSelectorName:"hydrated",initializeNextTick:!1,invisiblePrehydration:!0,isDebug:!1,isDev:!1,isTesting:!1,lazyLoad:!0,lifecycle:!0,lifecycleDOMEvents:!1,member:!0,method:!0,mode:!1,observeAttribute:!0,profile:!1,prop:!0,propBoolean:!0,propChangeCallback:!0,propMutable:!0,propNumber:!0,propString:!0,reflect:!0,scoped:!1,scopedSlotTextContentFix:!1,scriptDataOpts:!1,serializer:!1,shadowDelegatesFocus:!1,shadowDom:!0,shadowSlotAssignmentManual:!1,slot:!0,slotChildNodesFix:!1,slotRelocation:!1,state:!0,style:!0,svg:!0,taskQueue:!0,transformTagName:!1,updatable:!0,vdomAttribute:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomPropOrAttr:!0,vdomRef:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,vdomXlink:!0};var n={isDev:!!e.isDev,isBrowser:!0,isServer:!1,isTesting:!!e.isTesting},o=(t=>(t.Undefined="undefined",t.Null="null",t.String="string",t.Number="number",t.SpecialNumber="number",t.Boolean="boolean",t.BigInt="bigint",t))(o||{}),s=(t=>(t.Array="array",t.Date="date",t.Map="map",t.Object="object",t.RegularExpression="regexp",t.Set="set",t.Channel="channel",t.Symbol="symbol",t))(s||{}),r="type",i="value",l="serialized:";function c(t,e,n){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,e);if(o&&(!n||o.get))return o;t=Object.getPrototypeOf(t)}}var a,u,f=(t,n)=>{var o;Object.entries(null!=(o=n.o.t)?o:{}).map((([o,[s]])=>{if((e.state||e.prop)&&(31&s||32&s)){const e=t[o],s=c(Object.getPrototypeOf(t),o,!0)||Object.getOwnPropertyDescriptor(t,o);s&&Object.defineProperty(t,o,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),n.i.has(o)?t[o]=n.i.get(o):void 0!==e&&(t[o]=e)}}))},d=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},h=(t,n)=>{n&&(t.__stencil__getHostRef=()=>n,n.l=t,512&n.o.u&&(e.state||e.prop)&&f(t,n))},p=(t,n)=>{const o={u:0,$hostElement$:t,o:n,i:new Map,p:new Map};e.isDev&&(o.m=0),e.method&&e.lazyLoad&&(o.v=new Promise((t=>o.$=t))),e.asyncLoading&&(o.S=new Promise((t=>o.j=t)),t["s-p"]=[],t["s-rc"]=[]),e.lazyLoad&&(o.O=[]);const s=o;return t.__stencil__getHostRef=()=>s,!e.lazyLoad&&512&n.u&&(e.state||e.prop)&&f(t,o),s},m=(t,e)=>e in t,v=(t,e)=>(a||console.error)(t,e),g=e.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],$=(...t)=>console.error(...g,...t),b=(...t)=>console.warn(...g,...t),y=(...t)=>console.info(...g,...t),w=new Map,S=(t,n,o)=>{const s=t.C.replace(/-/g,"_"),r=t._;if(e.isDev&&"string"!=typeof r)return void $(`Trying to lazily load component <${t.C}> with style mode "${n.k}", but it does not exist.`);if(!r)return;const i=!e.hotModuleReplacement&&w.get(r);return i?i[s]:import(`./${r}.entry.js${e.hotModuleReplacement&&o?"?s-hmr="+o:""}`).then((t=>(e.hotModuleReplacement||w.set(r,t),t[s])),(t=>{v(t,n.$hostElement$)}))
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},j=new Map,x=[],O="s-id",C="sty-id",_="c-id",E="_stencilDocData",k={hostIds:0,rootLevelIds:0,staticComponents:new Set},N="slot-fb{display:contents}slot-fb[hidden]{display:none}",T="http://www.w3.org/1999/xlink",L=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],R="undefined"!=typeof window?window:{},M=R.HTMLElement||class{},A={u:0,N:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},D=e.shadowDom,I=t=>Promise.resolve(t),H=!!e.constructableCSS&&(()=>{try{return!!R.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),F=!!H&&(()=>!!R.document&&Object.getOwnPropertyDescriptor(R.document.adoptedStyleSheets,"length").writable)(),P=0,U=!1,B=[],z=[],V=[],W=(t,e)=>n=>{t.push(n),U||(U=!0,e&&4&A.u?q(X):A.raf(X))},Y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){v(t)}t.length=0},J=(t,e)=>{let n=0,o=0;for(;n<t.length&&(o=performance.now())<e;)try{t[n++](o)}catch(t){v(t)}n===t.length?t.length=0:0!==n&&t.splice(0,n)},X=()=>{if(e.asyncQueue&&P++,Y(B),e.asyncQueue){const t=2==(6&A.u)?performance.now()+14*Math.ceil(.1*P):1/0;J(z,t),J(V,t),z.length>0&&(V.push(...z),z.length=0),(U=B.length+z.length+V.length>0)?A.raf(X):P=0}else Y(z),(U=B.length>0)&&A.raf(X)},q=t=>I().then(t),K=W(B,!1),Q=W(z,!0);function G(t){const n={mode:"open"};e.shadowDelegatesFocus&&(n.delegatesFocus=!!(16&t.u)),e.shadowSlotAssignmentManual&&1024&t.u&&(n.slotAssignment="manual");const o=this.attachShadow(n);void 0===u&&(u=null),u&&(F?o.adoptedStyleSheets.push(u):o.adoptedStyleSheets=[...o.adoptedStyleSheets,u])}var Z=t=>{const e=Nt(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&et(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!nt(t,rt(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&Nt(t,"childNodes").length&&Z(t)}},tt=t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e};function et(t,e,n){let o,s=0,r=[];for(;s<t.length;s++){if(o=t[s],o["s-sr"]&&(!e||o["s-hn"]===e)&&(void 0===n||rt(o)===n)&&(r.push(o),void 0!==n))return r;r=[...r,...et(o.childNodes,e,n)]}return r}var nt=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let s=t;for(;s=s.nextSibling;)rt(s)!==e||!n&&s["s-sr"]||o.push(s);return o},ot=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,st=(t,n,o,s)=>{if(t["s-ol"]&&t["s-ol"].isConnected)return;const r=document.createTextNode("");if(r["s-nr"]=t,!n["s-cr"]||!n["s-cr"].parentNode)return;const i=n["s-cr"].parentNode,l=Nt(i,o?"prepend":"appendChild");if(e.hydrateClientSide&&void 0!==s){r["s-oo"]=s;const t=Nt(i,"childNodes"),e=[r];t.forEach((t=>{t["s-nr"]&&e.push(t)})),e.sort(((t,e)=>!t["s-oo"]||t["s-oo"]<(e["s-oo"]||0)?-1:!e["s-oo"]||e["s-oo"]<t["s-oo"]?1:0)),e.forEach((t=>l.call(i,t)))}else l.call(i,r);t["s-ol"]=r,t["s-sh"]=n["s-hn"]},rt=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function it(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const s=this["s-cr"].parentElement;return(s.__childNodes?s.childNodes:tt(s.childNodes)).forEach((t=>{o===rt(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}function lt(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}function ct(t,e){var n;if(!(e=e||(null==(n=t["s-ol"])?void 0:n.parentElement)))return{slotNode:null,slotName:""};const o=t["s-sn"]=rt(t)||"";return{slotNode:et(Nt(e,"childNodes"),e.tagName,o)[0],slotName:o}}var at=t=>{ut(t),ft(t),pt(t),ht(t),$t(t),mt(t),vt(t),gt(t),bt(t),yt(t),dt(t)},ut=t=>{if(t.__cloneNode)return;const n=t.__cloneNode=t.cloneNode;t.cloneNode=function(t){const o=!!e.shadowDom&&this.shadowRoot&&D,s=n.call(this,!!o&&t);if(e.slot&&!o&&t){let t,n,o=0;const r=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"],i=this.__childNodes||this.childNodes;for(;o<i.length;o++)t=i[o]["s-nr"],n=r.every((t=>!i[o][t])),t&&(e.appendChildSlotFix&&s.__appendChild?s.__appendChild(t.cloneNode(!0)):s.appendChild(t.cloneNode(!0))),n&&s.appendChild(i[o].cloneNode(!0))}return s}},ft=t=>{t.__appendChild||(t.__appendChild=t.appendChild,t.appendChild=function(t){const{slotName:e,slotNode:n}=ct(t,this);if(n){st(t,n);const o=nt(n,e),s=o[o.length-1],r=Nt(s,"parentNode"),i=Nt(r,"insertBefore")(t,s.nextSibling);return lt(n),Z(this),i}return this.__appendChild(t)})},dt=t=>{t.__removeChild||(t.__removeChild=t.removeChild,t.removeChild=function(t){return t&&void 0!==t["s-sn"]&&et(this.__childNodes||this.childNodes,this.tagName,t["s-sn"])&&t.isConnected?(t.remove(),void Z(this)):this.__removeChild(t)})},ht=t=>{t.__prepend||(t.__prepend=t.prepend,t.prepend=function(...e){e.forEach((e=>{"string"==typeof e&&(e=this.ownerDocument.createTextNode(e));const n=(e["s-sn"]=rt(e))||"",o=et(Nt(this,"childNodes"),this.tagName,n)[0];if(o){st(e,o,!0);const t=nt(o,n)[0],s=Nt(t,"parentNode"),r=Nt(s,"insertBefore")(e,Nt(t,"nextSibling"));return lt(o),r}return 1===e.nodeType&&e.getAttribute("slot")&&(e.hidden=!0),t.__prepend(e)}))})},pt=t=>{t.__append||(t.__append=t.append,t.append=function(...t){t.forEach((t=>{"string"==typeof t&&(t=this.ownerDocument.createTextNode(t)),this.appendChild(t)}))})},mt=t=>{if(t.__insertAdjacentHTML)return;const e=t.insertAdjacentHTML;t.insertAdjacentHTML=function(t,n){if("afterbegin"!==t&&"beforeend"!==t)return e.call(this,t,n);const o=this.ownerDocument.createElement("_");let s;if(o.innerHTML=n,"afterbegin"===t)for(;s=o.firstChild;)this.prepend(s);else if("beforeend"===t)for(;s=o.firstChild;)this.append(s)}},vt=t=>{t.insertAdjacentText=function(t,e){this.insertAdjacentHTML(t,e)}},gt=t=>{t.__insertBefore||t.__insertBefore||(t.__insertBefore=t.insertBefore,t.insertBefore=function(t,e){const{slotName:n,slotNode:o}=ct(t,this),s=this.__childNodes?this.childNodes:tt(this.childNodes);if(o){let r=!1;if(s.forEach((s=>{if(s!==e&&null!==e);else{if(r=!0,null===e||n!==e["s-sn"])return void this.appendChild(t);if(n===e["s-sn"]){st(t,o);const n=Nt(e,"parentNode");Nt(n,"insertBefore")(t,e),lt(o)}}})),r)return t}const r=null==e?void 0:e.__parentNode;return r&&!this.isSameNode(r)?this.appendChild(t):this.__insertBefore(t,e)})},$t=t=>{if(t.__insertAdjacentElement)return;const e=t.insertAdjacentElement;t.insertAdjacentElement=function(t,n){return"afterbegin"!==t&&"beforeend"!==t?e.call(this,t,n):"afterbegin"===t?(this.prepend(n),n):"beforeend"===t?(this.append(n),n):n}},bt=t=>{kt("textContent",t),Object.defineProperty(t,"textContent",{get:function(){let t="";return(this.__childNodes?this.childNodes:tt(this.childNodes)).forEach((e=>t+=e.textContent||"")),t},set:function(t){(this.__childNodes?this.childNodes:tt(this.childNodes)).forEach((t=>{t["s-ol"]&&t["s-ol"].remove(),t.remove()})),this.insertAdjacentHTML("beforeend",t)}})},yt=t=>{class e extends Array{item(t){return this[t]}}kt("children",t),Object.defineProperty(t,"children",{get(){return this.childNodes.filter((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get(){return this.children.length}}),kt("firstChild",t),Object.defineProperty(t,"firstChild",{get(){return this.childNodes[0]}}),kt("lastChild",t),Object.defineProperty(t,"lastChild",{get(){return this.childNodes[this.childNodes.length-1]}}),kt("childNodes",t),Object.defineProperty(t,"childNodes",{get(){const t=new e;return t.push(...tt(this.__childNodes)),t}})},wt=t=>{t&&void 0===t.__nextSibling&&globalThis.Node&&(St(t),xt(t),Ct(t),t.nodeType===Node.ELEMENT_NODE&&(jt(t),Ot(t)))},St=t=>{t&&!t.__nextSibling&&(kt("nextSibling",t),Object.defineProperty(t,"nextSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n+1]:this.__nextSibling}}))},jt=t=>{t&&!t.__nextElementSibling&&(kt("nextElementSibling",t),Object.defineProperty(t,"nextElementSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.children,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n+1]:this.__nextElementSibling}}))},xt=t=>{t&&!t.__previousSibling&&(kt("previousSibling",t),Object.defineProperty(t,"previousSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.childNodes,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n-1]:this.__previousSibling}}))},Ot=t=>{t&&!t.__previousElementSibling&&(kt("previousElementSibling",t),Object.defineProperty(t,"previousElementSibling",{get:function(){var t;const e=null==(t=this["s-ol"])?void 0:t.parentNode.children,n=null==e?void 0:e.indexOf(this);return e&&n>-1?e[n-1]:this.__previousElementSibling}}))},Ct=t=>{t&&!t.__parentNode&&(kt("parentNode",t),Object.defineProperty(t,"parentNode",{get:function(){var t;return(null==(t=this["s-ol"])?void 0:t.parentNode)||this.__parentNode},set:function(t){this.__parentNode=t}}))},_t=["children","nextElementSibling","previousElementSibling"],Et=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function kt(t,e){if(!globalThis.Node||!globalThis.Element)return;let n;_t.includes(t)?n=Object.getOwnPropertyDescriptor(Element.prototype,t):Et.includes(t)&&(n=Object.getOwnPropertyDescriptor(Node.prototype,t)),n||(n=Object.getOwnPropertyDescriptor(e,t)),n&&Object.defineProperty(e,"__"+t,n)}function Nt(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var Tt=0,Lt=(t,n="")=>{if(e.profile&&performance.mark){const e=`st:${t}:${n}:${Tt++}`;return performance.mark(e),()=>performance.measure(`[Stencil] ${t}() <${n}>`,e)}return()=>{}};function Rt(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var Mt=new WeakMap,At=(t,e,n)=>{let o=j.get(t);H&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,j.set(t,o)},Dt=(t,n,o)=>{var s,r,i;const l=Ht(n,o),c=j.get(l);if(!e.attachStyles||!R.document)return l;if(t=11===t.nodeType?t:R.document,c)if("string"==typeof c){let o,i=Mt.get(t=t.head||t);i||Mt.set(t,i=new Set);const a=(e.hydrateClientSide||e.hotModuleReplacement)&&t.querySelector(`[${C}="${l}"]`);if(a)a.textContent=c;else if(!i.has(l)){o=R.document.createElement("style"),o.textContent=c;const a=null!=(s=A.T)?s:Rt(R.document);if(null!=a&&o.setAttribute("nonce",a),(e.hydrateServerSide||e.hotModuleReplacement)&&(2&n.u||128&n.u||1&n.u)&&o.setAttribute(C,l),!(1&n.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(o,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(H){const e=new(null!=(r=t.defaultView)?r:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(c),F?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const n=t.querySelector("style");n&&!e.hotModuleReplacement?n.textContent=c+n.textContent:t.prepend(o)}else t.append(o);1&n.u&&t.insertBefore(o,null),4&n.u&&(o.textContent+=N),i&&i.add(l)}}else if(e.constructableCSS){let n=Mt.get(t);if(n||Mt.set(t,n=new Set),!n.has(l)){const o=null!=(i=t.defaultView)?i:t.ownerDocument.defaultView;let s;if(c.constructor===o.CSSStyleSheet)s=c;else{s=new o.CSSStyleSheet;for(let t=0;t<c.cssRules.length;t++)s.insertRule(c.cssRules[t].cssText,t)}if(F?t.adoptedStyleSheets.push(s):t.adoptedStyleSheets=[...t.adoptedStyleSheets,s],n.add(l),e.hydrateClientSide&&"host"in t){const e=t.querySelector(`[${C}="${l}"]`);e&&Q((()=>e.remove()))}}}return l},It=t=>{const n=t.o,o=t.$hostElement$,s=n.u,r=Lt("attachStyles",n.C),i=Dt(e.shadowDom&&D&&o.shadowRoot?o.shadowRoot:o.getRootNode(),n,t.k);(e.shadowDom||e.scoped)&&e.cssAnnotations&&10&s&&(o["s-sc"]=i,o.classList.add(i+"-h")),r()},Ht=(t,n)=>"sc-"+(e.mode&&n&&32&t.u?t.C+"-"+n:t.C),Ft=t=>t.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Pt=()=>{if(!R.document)return;const t=R.document.querySelectorAll(`[${C}]`);let e=0;for(;e<t.length;e++)At(t[e].getAttribute(C),Ft(t[e].innerHTML),!0)},Ut=t=>"object"==(t=typeof t)||"function"===t,Bt=(t,n,...o)=>{"string"==typeof t&&(t=Zn(t));let s=null,r=null,i=null,l=!1,c=!1;const a=[],u=n=>{for(let o=0;o<n.length;o++)s=n[o],Array.isArray(s)?u(s):null!=s&&"boolean"!=typeof s&&((l="function"!=typeof t&&!Ut(s))?s+="":e.isDev&&"function"!=typeof t&&void 0===s.u&&$("vNode passed as children has unexpected type.\nMake sure it's using the correct h() function.\nEmpty objects can also be the cause, look for JSX comments that became objects."),l&&c?a[a.length-1].L+=s:a.push(l?zt(null,s):s),c=l)};if(u(o),n&&(e.isDev&&"input"===t&&qt(n),e.vdomKey&&n.key&&(r=n.key),e.slotRelocation&&n.name&&(i=n.name),e.vdomClass)){const t=n.className||n.class;t&&(n.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}if(e.isDev&&a.some(Wt)&&$("The <Host> must be the single root component. Make sure:\n- You are NOT using hostData() and <Host> in the same component.\n- <Host> is used once, and it's the single root component of the render() function."),e.vdomFunctional&&"function"==typeof t)return t(null===n?{}:n,a,Yt);const f=zt(t,null);return f.R=n,a.length>0&&(f.M=a),e.vdomKey&&(f.A=r),e.slotRelocation&&(f.D=i),f},zt=(t,n)=>{const o={u:0,I:t,L:null!=n?n:null,F:null,M:null};return e.vdomAttribute&&(o.R=null),e.vdomKey&&(o.A=null),e.slotRelocation&&(o.D=null),o},Vt={},Wt=t=>t&&t.I===Vt,Yt={forEach:(t,e)=>t.map(Jt).forEach(e),map:(t,e)=>t.map(Jt).map(e).map(Xt)},Jt=t=>({vattrs:t.R,vchildren:t.M,vkey:t.A,vname:t.D,vtag:t.I,vtext:t.L}),Xt=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),Bt(t.vtag,e,...t.vchildren||[])}const e=zt(t.vtag,t.vtext);return e.R=t.vattrs,e.M=t.vchildren,e.A=t.vkey,e.D=t.vname,e},qt=t=>{const e=Object.keys(t),n=e.indexOf("value");if(-1===n)return;const o=e.indexOf("type"),s=e.indexOf("min"),r=e.indexOf("max"),i=e.indexOf("step");(n<o||n<s||n<r||n<i)&&b('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},Kt=(t,n,o,s,r,i,l,c=[])=>{let a,u,f,d;const h=r["s-sc"];if(1===i.nodeType){if(a=i.getAttribute(_),a&&(u=a.split("."),u[0]===l||"0"===u[0])){f=Gt({u:0,P:u[0],U:u[1],B:u[2],V:u[3],I:i.tagName.toLowerCase(),F:i,R:{class:i.className||""}}),n.push(f),i.removeAttribute(_),t.M||(t.M=[]),e.scoped&&h&&u[0]===l&&(i["s-si"]=h,f.R.class+=" "+h);const r=f.F.getAttribute("s-sn");"string"==typeof r&&("slot-fb"===f.I&&(Zt(r,u[2],f,i,t,n,o,s,c),e.scoped&&h&&i.classList.add(h)),f.F["s-sn"]=r,f.F.removeAttribute("s-sn")),void 0!==f.V&&(t.M[f.V]=f),t=f,s&&"0"===f.B&&(s[f.V]=f.F)}if(i.shadowRoot)for(d=i.shadowRoot.childNodes.length-1;d>=0;d--)Kt(t,n,o,s,r,i.shadowRoot.childNodes[d],l,c);const p=i.__childNodes||i.childNodes;for(d=p.length-1;d>=0;d--)Kt(t,n,o,s,r,p[d],l,c)}else if(8===i.nodeType)u=i.nodeValue.split("."),(u[1]===l||"0"===u[1])&&(a=u[0],f=Gt({P:u[1],U:u[2],B:u[3],V:u[4]||"0",F:i,R:null,M:null,A:null,D:null,I:null,L:null}),"t"===a?(f.F=ee(i,3),f.F&&3===f.F.nodeType&&(f.L=f.F.textContent,n.push(f),i.remove(),l===f.P&&(t.M||(t.M=[]),t.M[f.V]=f),s&&"0"===f.B&&(s[f.V]=f.F))):"c"===a?(f.F=ee(i,8),f.F&&8===f.F.nodeType&&(n.push(f),i.remove())):f.P===l&&("s"===a?Zt(i["s-sn"]=u[5]||"",u[2],f,i,t,n,o,s,c):"r"===a&&(e.shadowDom&&s?i.remove():e.slotRelocation&&(r["s-cr"]=i,i["s-cn"]=!0))));else if(t&&"style"===t.I){const e=zt(null,i.textContent);e.F=i,e.V="0",t.M=[e]}return t},Qt=(t,e)=>{if(1===t.nodeType){const n=t[O]||t.getAttribute(O);n&&e.set(n,t);let o=0;if(t.shadowRoot)for(;o<t.shadowRoot.childNodes.length;o++)Qt(t.shadowRoot.childNodes[o],e);const s=t.__childNodes||t.childNodes;for(o=0;o<s.length;o++)Qt(s[o],e)}else if(8===t.nodeType){const n=t.nodeValue.split(".");"o"===n[0]&&(e.set(n[1]+"."+n[2],t),t.nodeValue="",t["s-en"]=n[3])}},Gt=t=>({u:0,P:null,U:null,B:null,V:"0",F:null,R:null,M:null,A:null,D:null,I:null,L:null,...t});function Zt(t,n,o,s,r,i,l,c,a){s["s-sr"]=!0,o.D=t||null,o.I="slot";const u=(null==r?void 0:r.F)?r.F["s-id"]||r.F.getAttribute("s-id"):"";if(e.shadowDom&&c&&R.document){const e=o.F=R.document.createElement(o.I);o.D&&o.F.setAttribute("name",t),r.F.shadowRoot&&u&&u!==o.P?Nt(r.F,"insertBefore")(e,Nt(r.F,"children")[0]):Nt(Nt(s,"parentNode"),"insertBefore")(e,s),te(a,n,t,s,o.P),s.remove(),"0"===o.B&&(c[o.V]=o.F)}else{const e=o.F,i=u&&u!==o.P&&r.F.shadowRoot;te(a,n,t,s,i?u:o.P),it(s),i&&r.F.insertBefore(e,r.F.children[0])}i.push(o),l.push(o),r.M||(r.M=[]),r.M[o.V]=o}var te=(t,e,n,o,s)=>{var r,i;let l=o.nextSibling;if(t[e]=t[e]||[],l&&!(null==(r=l.nodeValue)?void 0:r.startsWith("s.")))do{!l||(l.getAttribute&&l.getAttribute("slot")||l["s-sn"])!==n&&(""!==n||l["s-sn"]||l.getAttribute&&l.getAttribute("slot")||8!==l.nodeType&&3!==l.nodeType)||(l["s-sn"]=n,t[e].push({slot:o,node:l,hostId:s})),l=null==l?void 0:l.nextSibling}while(l&&!(null==(i=l.nodeValue)?void 0:i.startsWith("s.")))},ee=(t,e)=>{let n=t;do{n=n.nextSibling}while(n&&(n.nodeType!==e||!n.nodeValue));return n},ne=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),oe="-shadowcsshost",se="-shadowcssslotted",re="-shadowcsscontext",ie=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",le=RegExp("("+oe+ie,"gim"),ce=RegExp("("+re+ie,"gim"),ae=RegExp("("+se+ie,"gim"),ue=oe+"-no-combinator",fe=/-shadowcsshost-no-combinator([^\s]*)/,de=[/::shadow/g,/::content/g],he=/__part-(\d+)__/g,pe=/-shadowcsshost/gim,me=t=>{const e=ne(t);return RegExp(`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${e}))(${e}\\b)`,"g")},ve=/\/\*\s*[\s\S]*?\*\//g,ge=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,$e=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,be=/([{}])/g,ye=/(^.*?[^\\])??((:+)(.*)|$)/,we="%BLOCK%",Se=(t,e)=>{const n=je(t);let o=0;return n.escapedString.replace($e,((...t)=>{const s=t[2];let r="",i=t[4],l="";i&&i.startsWith("{"+we)&&(r=n.blocks[o++],i=i.substring(8),l="{");const c=e({selector:s,content:r});return`${t[1]}${c.selector}${t[3]}${l}${c.content}${i}`}))},je=t=>{const e=t.split(be),n=[],o=[];let s=0,r=[];for(let t=0;t<e.length;t++){const i=e[t];"}"===i&&s--,s>0?r.push(i):(r.length>0&&(o.push(r.join("")),n.push(we),r=[]),n.push(i)),"{"===i&&s++}return r.length>0&&(o.push(r.join("")),n.push(we)),{escapedString:n.join(""),blocks:o}},xe=(t,e,n)=>t.replace(e,((...t)=>{if(t[2]){const e=t[2].split(","),o=[];for(let s=0;s<e.length;s++){const r=e[s].trim();if(!r)break;o.push(n(ue,r,t[3]))}return o.join(",")}return ue+t[3]})),Oe=(t,e,n)=>t+e.replace(oe,"")+n,Ce=(t,e,n)=>e.indexOf(oe)>-1?Oe(t,e,n):t+e+n+", "+e+" "+t+n,_e=(t,e)=>t.replace(ye,((t,n="",o,s="",r="")=>n+e+s+r)),Ee=(t,e,n,o)=>Se(t,(t=>{let s=t.selector,r=t.content;return"@"!==t.selector[0]?s=((t,e,n,o)=>t.split(",").map((t=>o&&t.indexOf("."+o)>-1?t.trim():((t,e)=>!(t=>(t=t.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),RegExp("^("+t+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(e).test(t))(t,e)?((t,e,n)=>{const o="."+(e=e.replace(/\[is=([^\]]*)\]/g,((t,...e)=>e[0]))),s=t=>{let s=t.trim();if(!s)return"";if(t.indexOf(ue)>-1)s=((t,e,n)=>{if(pe.lastIndex=0,pe.test(t)){const e="."+n;return t.replace(fe,((t,n)=>_e(n,e))).replace(pe,e+" ")}return e+" "+t})(t,e,n);else{const e=t.replace(pe,"");e.length>0&&(s=_e(e,o))}return s},r=(t=>{const e=[];let n=0;return{content:(t=(t=t.replace(/(\[\s*part~=\s*("[^"]*"|'[^']*')\s*\])/g,((t,o)=>{const s=`__part-${n}__`;return e.push(o),n++,s}))).replace(/(\[[^\]]*\])/g,((t,o)=>{const s=`__ph-${n}__`;return e.push(o),n++,s}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,((t,o,s)=>{const r=`__ph-${n}__`;return e.push(s),n++,o+r})),placeholders:e}})(t);let i,l="",c=0;const a=/( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g;let u=!((t=r.content).indexOf(ue)>-1);for(;null!==(i=a.exec(t));){const e=i[1],n=t.slice(c,i.index).trim();u=u||n.indexOf(ue)>-1,l+=`${u?s(n):n} ${e} `,c=a.lastIndex}const f=t.substring(c);return u=!f.match(he)&&(u||f.indexOf(ue)>-1),l+=u?s(f):f,((t,e)=>(e=e.replace(/__part-(\d+)__/g,((e,n)=>t[+n]))).replace(/__ph-(\d+)__/g,((e,n)=>t[+n])))(r.placeholders,l)})(t,e,n).trim():t.trim())).join(", "))(t.selector,e,n,o):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(r=Ee(t.content,e,n,o)),{selector:s.replace(/\s{2,}/g," ").trim(),content:r}})),ke=(t,e)=>t.replace(/-shadowcsshost-no-combinator/g,"."+e),Ne=(t,e)=>{const n=e+"-h",o=e+"-s",s=(t=>t.match(ge)||[])(t);t=(t=>t.replace(ve,""))(t);const r=[];{const e=t=>{const e=`/*!@___${r.length}___*/`;return r.push({placeholder:e,comment:`/*!@${t.selector}*/`}),t.selector=e+t.selector,t};t=Se(t,(t=>"@"!==t.selector[0]?e(t):t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document")?(t.content=Se(t.content,e),t):t))}const i=((t,e,n,o)=>{const s=((t,e)=>{const n="."+e+" > ",o=[];return t=t.replace(ae,((...t)=>{if(t[2]){const e=t[2].trim(),s=n+e+t[3];let r="";for(let e=t[4]-1;e>=0;e--){const n=t[5][e];if("}"===n||","===n)break;r=n+r}const i=(r+s).trim(),l=`${r.trimEnd()}${s.trim()}`.trim();return i!==l&&o.push({orgSelector:i,updatedSelector:`${l}, ${i}`}),s}return ue+t[3]})),{selectors:o,cssText:t}})(t=(t=>xe(t,ce,Ce))(t=(t=>xe(t,le,Oe))(t=(t=>{const e=[];t=t.replace(/@supports\s+selector\s*\(\s*([^)]*)\s*\)/g,((t,n)=>{const o=`__supports_${e.length}__`;return e.push(n),`@supports selector(${o})`}));const n=me("::slotted"),o=me(":host"),s=me(":host-context");return t=t.replace(s,"$1"+re).replace(o,"$1"+oe).replace(n,"$1"+se),e.forEach(((e,n)=>{t=t.replace(`__supports_${n}__`,e)})),t})(t))),o);return t=(t=>de.reduce(((t,e)=>t.replace(e," ")),t))(t=s.cssText),e&&(t=Ee(t,e,n,o)),{cssText:(t=(t=ke(t,n)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:s.selectors.map((t=>({orgSelector:ke(t.orgSelector,n),updatedSelector:ke(t.updatedSelector,n)})))}})(t,e,n,o);return t=[i.cssText,...s].join("\n"),r.forEach((({placeholder:e,comment:n})=>{t=t.replace(e,n)})),i.slottedSelectors.forEach((e=>{const n=RegExp(ne(e.orgSelector)+"(?=\\s*[,{]|$)","g");t=t.replace(n,e.updatedSelector)})),t=(t=>{const e=/([^\s,{][^,{]*?)::part\(\s*([^)]+?)\s*\)((?:[:.][^,{]*)*)/g;return Se(t,(t=>{if("@"===t.selector[0])return t;const n=t.selector.split(",").map((n=>{const o=[n.trim()];let s;for(;null!==(s=e.exec(n));){const e=s[1].trimEnd(),r=s[2].trim().split(/\s+/),i=s[3]||"",l=r.flatMap((e=>t.selector.includes(`[part~="${e}"]`)?[]:[`[part~="${e}"]`])).join(""),c=`${e} ${l}${i}`;l&&c!==n.trim()&&o.push(c)}return o.join(", ")}));return t.selector=n.join(", "),t}))})(t)},Te=t=>x.map((e=>e(t))).find((t=>!!t)),Le=t=>{if(!t)return;const e=Object.keys(t);if(0===e.length)return;let n=!1;for(const o of e){if(n)break;for(const e of t[o])if("string"==typeof e){n=!0;break}}if(!n)return t;const o={};for(const n of e)o[n]=t[n].map((t=>"string"==typeof t?{[t]:0}:t));return o},Re=class t{static fromLocalValue(e){const n=e[r],o=i in e?e[i]:void 0;switch(n){case"string":case"boolean":return o;case"bigint":return BigInt(o);case"undefined":return;case"null":return null;case"number":return"NaN"===o?NaN:"-0"===o?-0:"Infinity"===o?1/0:"-Infinity"===o?-1/0:o;case"array":return o.map((e=>t.fromLocalValue(e)));case"date":return new Date(o);case"map":const e=new Map;for(const[n,s]of o){const o="object"==typeof n&&null!==n?t.fromLocalValue(n):n,r=t.fromLocalValue(s);e.set(o,r)}return e;case"object":const s={};for(const[e,n]of o)s[e]=t.fromLocalValue(n);return s;case"regexp":const{pattern:r,flags:i}=o;return RegExp(r,i);case"set":const l=new Set;for(const e of o)l.add(t.fromLocalValue(e));return l;case"symbol":return Symbol(o);default:throw Error("Unsupported type: "+n)}}static fromLocalValueArray(e){return e.map((e=>t.fromLocalValue(e)))}static isLocalValueObject(t){if("object"!=typeof t||null===t)return!1;if(!t.hasOwnProperty(r))return!1;const e=t[r];return!!Object.values({...o,...s}).includes(e)&&("null"===e||"undefined"===e||t.hasOwnProperty(i))}};var Me,Ae,De,Ie=(t,n,o)=>(e.hydrateClientSide||e.hydrateServerSide)&&"string"==typeof t&&t.startsWith(l)?t=function(t){return"string"==typeof t&&t.startsWith(l)?Re.fromLocalValue(JSON.parse(function(t){const e=atob(t),n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return(new TextDecoder).decode(n)}(t.slice(11)))):t}(t):null==t||Ut(t)?t:e.propBoolean&&4&n?(e.formAssociated&&o&&"string"==typeof t||"false"!==t)&&(""===t||!!t):e.propNumber&&2&n?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:e.propString&&1&n?t+"":t,He=t=>{var n;return e.lazyLoad?null==(n=d(t))?void 0:n.$hostElement$:t},Fe=(t,n,o)=>{const s=He(t);return{emit:t=>(e.isDev&&!s.isConnected&&b(`The "${n}" event was emitted, but the dispatcher node is no longer connected to the dom.`),Pe(s,n,{bubbles:!!(4&o),composed:!!(2&o),cancelable:!!(1&o),detail:t}))}},Pe=(t,e,n)=>{const o=A.ce(e,n);return t.dispatchEvent(o),o},Ue=(t,n,o,s,r,i,l)=>{if(o===s)return;let c=m(t,n),a=n.toLowerCase();if(e.vdomClass&&"class"===n){const n=t.classList,r=ze(o);let i=ze(s);if(e.hydrateClientSide&&(t["s-si"]||t["s-sc"])&&l){const e=t["s-sc"]||t["s-si"];i.push(e),r.forEach((t=>{t.startsWith(e)&&i.push(t)})),i=[...new Set(i)].filter((t=>t)),n.add(...i)}else n.remove(...r.filter((t=>t&&!i.includes(t)))),n.add(...i.filter((t=>t&&!r.includes(t))))}else if(e.vdomStyle&&"style"===n){if(e.updatable)for(const n in o)s&&null!=s[n]||(!e.hydrateServerSide&&n.includes("-")?t.style.removeProperty(n):t.style[n]="");for(const n in s)o&&s[n]===o[n]||(!e.hydrateServerSide&&n.includes("-")?t.style.setProperty(n,s[n]):t.style[n]=s[n])}else if(e.vdomKey&&"key"===n);else if(e.vdomRef&&"ref"===n)s&&dn(s,t);else if(!e.vdomListener||(e.lazyLoad?c:t.__lookupSetter__(n))||"o"!==n[0]||"n"!==n[1]){if(e.vdomPropOrAttr&&"a"===n[0]&&n.startsWith("attr:")){const o=n.slice(5);let r;if(e.member){const e=d(t);if(e&&e.o&&e.o.t){const t=e.o.t[o];t&&t[1]&&(r=t[1])}}return r||(r=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==s||!1===s?!1===s&&""!==t.getAttribute(r)||t.removeAttribute(r):t.setAttribute(r,!0===s?"":s))}if(e.vdomPropOrAttr&&"p"===n[0]&&n.startsWith("prop:")){const e=n.slice(5);try{t[e]=s}catch(t){}return}if(e.vdomPropOrAttr){const l=Ut(s);if((c||l&&null!==s)&&!r)try{if(t.tagName.includes("-"))t[n]!==s&&(t[n]=s);else{const e=null==s?"":s;"list"===n?c=!1:null!=o&&t[n]===e||("function"==typeof t.__lookupSetter__(n)?t[n]=e:t.setAttribute(n,e))}}catch(t){}let u=!1;e.vdomXlink&&a!==(a=a.replace(/^xlink\:?/,""))&&(n=a,u=!0),null==s||!1===s?!1===s&&""!==t.getAttribute(n)||(e.vdomXlink&&u?t.removeAttributeNS(T,n):t.removeAttribute(n)):(!c||4&i||r)&&!l&&1===t.nodeType&&(s=!0===s?"":s,e.vdomXlink&&u?t.setAttributeNS(T,n,s):t.setAttribute(n,s))}}else if(n="-"===n[2]?n.slice(3):m(R,a)?a.slice(2):a[2]+n.slice(3),o||s){const e=n.endsWith(Ve);n=n.replace(We,""),o&&A.rel(t,n,o,e),s&&A.ael(t,n,s,e)}},Be=/\s/,ze=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Be):[]),Ve="Capture",We=RegExp(Ve+"$"),Ye=(t,n,o,s)=>{const r=11===n.F.nodeType&&n.F.host?n.F.host:n.F,i=t&&t.R||{},l=n.R||{};if(e.updatable)for(const t of Je(Object.keys(i)))t in l||Ue(r,t,i[t],void 0,o,n.u,s);for(const t of Je(Object.keys(l)))Ue(r,t,i[t],l[t],o,n.u,s)};function Je(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var Xe=!1,qe=!1,Ke=!1,Qe=!1,Ge=[],Ze=[],tn=(t,n,o)=>{var s;const r=n.M[o];let i,l,c,a=0;if(e.slotRelocation&&!Xe&&(Ke=!0,"slot"===r.I&&(r.u|=r.M?2:1)),e.isDev&&r.F&&$(`The JSX ${null!==r.L?`"${r.L}" text`:`"${r.I}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),e.vdomText&&null!=r.L)i=r.F=R.document.createTextNode(r.L);else if(e.slotRelocation&&1&r.u)i=r.F=e.isDebug||e.hydrateServerSide?vn(r):R.document.createTextNode(""),e.vdomAttribute&&Ye(null,r,Qe);else{if(e.svg&&!Qe&&(Qe="svg"===r.I),!R.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=r.F=e.svg?R.document.createElementNS(Qe?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!Xe&&e.slotRelocation&&2&r.u?"slot-fb":r.I):R.document.createElement(!Xe&&e.slotRelocation&&2&r.u?"slot-fb":r.I),e.svg&&Qe&&"foreignObject"===r.I&&(Qe=!1),e.vdomAttribute&&Ye(null,r,Qe),(e.scoped||e.hydrateServerSide)&&null!=Me&&void 0!==Me&&i["s-si"]!==Me&&i.classList.add(i["s-si"]=Me),r.M){const e="template"===r.I?i.content:i;for(a=0;a<r.M.length;++a)l=tn(t,r,a),l&&e.appendChild(l)}e.svg&&("svg"===r.I?Qe=!1:"foreignObject"===i.tagName&&(Qe=!0))}return i["s-hn"]=De,e.slotRelocation&&3&r.u&&(i["s-sr"]=!0,i["s-cr"]=Ae,i["s-sn"]=r.D||"",i["s-rf"]=null==(s=r.R)?void 0:s.ref,it(i),c=t&&t.M&&t.M[o],c&&c.I===r.I&&t.F&&en(t.F),(e.scoped||e.hydrateServerSide)&&pn(Ae,i,n.F,null==t?void 0:t.F)),i},en=t=>{A.u|=1;const e=t.closest(De.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(hn(e,t,null!=n?n:null),t["s-sh"]=void 0,Ke=!0)}A.u&=-2},nn=(t,e)=>{A.u|=1;const n=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===De&&n.push(e)}for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==De&&o["s-ol"]&&(hn(ln(o).parentNode,o,ln(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,Ke=!0),e&&nn(o,e)}A.u&=-2},on=(t,n,o,s,r,i)=>{let l,c=e.slotRelocation&&t["s-cr"]&&t["s-cr"].parentNode||t;for(e.shadowDom&&c.shadowRoot&&c.tagName===De&&(c=c.shadowRoot),"template"===o.I&&(c=c.content);r<=i;++r)s[r]&&(l=tn(null,o,r),l&&(s[r].F=l,hn(c,l,e.slotRelocation?ln(n):n)))},sn=(t,n,o)=>{for(let s=n;s<=o;++s){const n=t[s];if(n){const t=n.F;fn(n),t&&(e.slotRelocation&&(qe=!0,t["s-ol"]?t["s-ol"].remove():nn(t,!0)),t.remove())}}},rn=(t,n,o=!1)=>t.I===n.I&&(e.slotRelocation&&"slot"===t.I?t.D===n.D:e.vdomKey&&!o?t.A===n.A:(o&&!t.A&&n.A&&(t.A=n.A),!0)),ln=t=>t&&t["s-ol"]||t,cn=(t,n,o=!1)=>{const s=n.F=t.F,r=t.M,i=n.M,l=n.I,c=n.L;let a;e.vdomText&&null!=c?e.vdomText&&e.slotRelocation&&(a=s["s-cr"])?a.parentNode.textContent=c:e.vdomText&&t.L!==c&&(s.data=c):(e.svg&&(Qe="svg"===l||"foreignObject"!==l&&Qe),(e.vdomAttribute||e.reflect)&&(e.slot&&"slot"===l&&!Xe&&t.D!==n.D&&(n.F["s-sn"]=n.D||"",en(n.F.parentElement)),Ye(t,n,Qe,o)),e.updatable&&null!==r&&null!==i?((t,n,o,s,r=!1)=>{let i,l,c=0,a=0,u=0,f=0,d=n.length-1,h=n[0],p=n[d],m=s.length-1,v=s[0],g=s[m];const $="template"===o.I?t.content:t;for(;c<=d&&a<=m;)if(null==h)h=n[++c];else if(null==p)p=n[--d];else if(null==v)v=s[++a];else if(null==g)g=s[--m];else if(rn(h,v,r))cn(h,v,r),h=n[++c],v=s[++a];else if(rn(p,g,r))cn(p,g,r),p=n[--d],g=s[--m];else if(rn(h,g,r))!e.slotRelocation||"slot"!==h.I&&"slot"!==g.I||nn(h.F.parentNode,!1),cn(h,g,r),hn($,h.F,p.F.nextSibling),h=n[++c],g=s[--m];else if(rn(p,v,r))!e.slotRelocation||"slot"!==h.I&&"slot"!==g.I||nn(p.F.parentNode,!1),cn(p,v,r),hn($,p.F,h.F),p=n[--d],v=s[++a];else{if(u=-1,e.vdomKey)for(f=c;f<=d;++f)if(n[f]&&null!==n[f].A&&n[f].A===v.A){u=f;break}e.vdomKey&&u>=0?(l=n[u],l.I!==v.I?i=tn(n&&n[a],o,u):(cn(l,v,r),n[u]=void 0,i=l.F),v=s[++a]):(i=tn(n&&n[a],o,a),v=s[++a]),i&&(e.slotRelocation?hn(ln(h.F).parentNode,i,ln(h.F)):hn(h.F.parentNode,i,h.F))}c>d?on(t,null==s[m+1]?null:s[m+1].F,o,s,a,m):e.updatable&&a>m&&sn(n,c,d)})(s,r,n,i,o):null!==i?(e.updatable&&e.vdomText&&null!==t.L&&(s.textContent=""),on(s,null,n,i,0,i.length-1)):!o&&e.updatable&&null!==r?sn(r,0,r.length-1):e.hydrateClientSide&&o&&e.updatable&&null!==r&&null===i&&(n.M=r),e.svg&&Qe&&"svg"===l&&(Qe=!1))},an=[],un=t=>{let e,n,o;const s=t.__childNodes||t.childNodes;for(const t of s){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const s=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if(ot(e,s)){let n=an.find((t=>t.W===e));qe=!0,e["s-sn"]=e["s-sn"]||s,n?(n.W["s-sh"]=t["s-hn"],n.Y=t):(e["s-sh"]=t["s-hn"],an.push({Y:t,W:e})),e["s-sr"]&&an.map((t=>{ot(t.W,e["s-sn"])&&(n=an.find((t=>t.W===e)),n&&!t.Y&&(t.Y=n.Y))}))}else an.some((t=>t.W===e))||an.push({W:e})}1===t.nodeType&&un(t)}},fn=t=>{e.vdomRef&&(t.R&&t.R.ref&&Ge.push((()=>t.R.ref(null))),t.M&&t.M.map(fn))},dn=(t,n)=>{e.vdomRef&&Ze.push((()=>t(n)))},hn=(t,n,o,s)=>{if(e.slotRelocation)if(e.scoped&&"string"==typeof n["s-sn"]&&n["s-sr"]&&n["s-cr"])pn(n["s-cr"],n,t,n.parentElement);else if("string"==typeof n["s-sn"]){e.experimentalSlotFixes&&11!==t.getRootNode().nodeType&&Ct(n),t.insertBefore(n,o);const{slotNode:r}=ct(n);return r&&!s&<(r),n}return t.__insertBefore?t.__insertBefore(n,o):null==t?void 0:t.insertBefore(n,o)};function pn(t,e,n,o){var s,r;let i;if(t&&"string"==typeof e["s-sn"]&&e["s-sr"]&&t.parentNode&&t.parentNode["s-sc"]&&(i=e["s-si"]||t.parentNode["s-sc"])){const t=e["s-sn"],l=e["s-hn"];if(null==(s=n.classList)||s.add(i+"-s"),o&&(null==(r=o.classList)?void 0:r.contains(i+"-s"))){let e=(o.__childNodes||o.childNodes)[0],n=!1;for(;e;){if(e["s-sn"]!==t&&e["s-hn"]===l&&e["s-sr"]){n=!0;break}e=e.nextSibling}n||o.classList.remove(i+"-s")}}}var mn=(t,n,o=!1)=>{var s,r,i,l,c;const a=t.$hostElement$,u=t.o,f=t.J||zt(null,null),d=Wt(n)?n:Bt(null,null,n);if(De=a.tagName,e.isDev&&Array.isArray(n)&&n.some(Wt))throw Error(`The <Host> must be the single root component.\nLooks like the render() function of "${De.toLowerCase()}" is returning an array that contains the <Host>.\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n <Host>{content}</Host>\n );\n}\n `);if(e.reflect&&u.X&&(d.R=d.R||{},u.X.forEach((([n,o])=>{d.R[o]=e.serializer&&t.p.has(n)?t.p.get(n):a[n]}))),o&&d.R)for(const t of Object.keys(d.R))a.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.R[t]=a[t]);if(d.I=null,d.u|=4,t.J=d,d.F=f.F=e.shadowDom&&a.shadowRoot||a,(e.scoped||e.shadowDom)&&(Me=a["s-sc"]),Xe=D&&!!(1&u.u)&&!(128&u.u),e.slotRelocation&&(Ae=a["s-cr"],qe=!1),cn(f,d,o),e.slotRelocation){if(A.u|=1,Ke){un(d.F);for(const t of an){const n=t.W;if(!n["s-ol"]&&R.document){const t=e.isDebug||e.hydrateServerSide?gn(n):R.document.createTextNode("");t["s-nr"]=n,hn(n.parentNode,n["s-ol"]=t,n,o)}}for(const t of an){const n=t.W,c=t.Y;if(1===n.nodeType&&o&&(n["s-ih"]=null!=(s=n.hidden)&&s),c){const t=c.parentNode;let s=c.nextSibling;if(!e.hydrateServerSide&&s&&1===s.nodeType){let e=null==(r=n["s-ol"])?void 0:r.previousSibling;for(;e;){let o=null!=(i=e["s-nr"])?i:null;if(o&&o["s-sn"]===n["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===n||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){s=o;break}}e=e.previousSibling}}if((!s&&t!==(n.__parentNode||n.parentNode)||(n.__nextSibling||n.nextSibling)!==s)&&n!==s){if(hn(t,n,s,o),8===n.nodeType&&n.nodeValue.startsWith("s-nt-")){const t=R.document.createTextNode(n.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=n["s-hn"],t["s-sn"]=n["s-sn"],t["s-sh"]=n["s-sh"],t["s-sr"]=n["s-sr"],t["s-ol"]=n["s-ol"],t["s-ol"]["s-nr"]=t,hn(n.parentNode,t,n,o),n.parentNode.removeChild(n)}1===n.nodeType&&"SLOT-FB"!==n.tagName&&(n.hidden=null!=(l=n["s-ih"])&&l)}n&&"function"==typeof c["s-rf"]&&c["s-rf"](c)}else 1===n.nodeType&&(n.hidden=!0)}}qe&&Z(d.F),A.u&=-2,an.length=0}if(e.slotRelocation&&!Xe&&!(1&u.u)&&a["s-cr"]){const t=d.F.__childNodes||d.F.childNodes;for(const e of t)if(e["s-hn"]!==De&&!e["s-sh"])if(o&&null==e["s-ih"]&&(e["s-ih"]=null!=(c=e.hidden)&&c),1===e.nodeType)e.hidden=!0;else if(3===e.nodeType&&e.nodeValue.trim()){const t=R.document.createComment("s-nt-"+e.nodeValue);t["s-sn"]=e["s-sn"],hn(e.parentNode,t,e,o),e.parentNode.removeChild(e)}}Ae=void 0,e.vdomRef&&(Ge.forEach((t=>t())),Ge.length=0,Ze.forEach((t=>t())),Ze.length=0)},vn=t=>{var e;return null==(e=R.document)?void 0:e.createComment(`<slot${t.D?' name="'+t.D+'"':""}> (host=${De.toLowerCase()})`)},gn=t=>{var e;return null==(e=R.document)?void 0:e.createComment("org-location for "+(t.localName?`<${t.localName}> (host=${t["s-hn"]})`:`[${t.textContent}]`))},$n=(t,n)=>{if(e.asyncLoading&&n&&!t.q&&n["s-p"]){const e=n["s-p"].push(new Promise((o=>t.q=()=>{n["s-p"].splice(e-1,1),o()})))}},bn=(t,n)=>{if(e.taskQueue&&e.updatable&&(t.u|=16),e.asyncLoading&&4&t.u)return void(t.u|=512);$n(t,t.K);const o=()=>yn(t,n);if(!n)return e.taskQueue?Q(o):o();queueMicrotask((()=>{o()}))},yn=(t,n)=>{const o=t.$hostElement$,s=Lt("scheduleUpdate",t.o.C),r=e.lazyLoad?t.l:o;if(!r)throw Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return n?(e.lazyLoad&&(e.slotRelocation&&t.G&&(t.G=!1,kn(r,"connectedCallback",void 0,o)),e.hostListener&&(t.u|=256,t.Z&&(t.Z.map((([t,e])=>kn(r,t,e,o))),t.Z=void 0)),t.O.length&&t.O.forEach((t=>t(o)))),Nn(o,"componentWillLoad"),i=kn(r,"componentWillLoad",void 0,o)):(Nn(o,"componentWillUpdate"),i=kn(r,"componentWillUpdate",void 0,o)),Nn(o,"componentWillRender"),i=wn(i,(()=>kn(r,"componentWillRender",void 0,o))),s(),wn(i,(()=>jn(t,r,n)))},wn=(t,e)=>Sn(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),Sn=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,jn=async(t,n,o)=>{var s;const r=t.$hostElement$,i=Lt("update",t.o.C),l=r["s-rc"];e.style&&o&&It(t);const c=Lt("render",t.o.C);if(e.isDev&&(t.u|=1024),e.hydrateServerSide?await On(t,n,r,o):On(t,n,r,o),e.isDev&&(t.m=void 0===t.m?1:t.m+1,t.u&=-1025),e.hydrateServerSide)try{Ln(r),o&&(1&t.o.u?r["s-en"]="":2&t.o.u&&(r["s-en"]="c"))}catch(t){v(t,r)}if(e.asyncLoading&&l&&(l.map((t=>t())),r["s-rc"]=void 0),c(),i(),e.asyncLoading){const e=null!=(s=r["s-p"])?s:[],n=()=>Cn(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.u|=4,e.length=0)}else Cn(t)},xn=null,On=(t,n,o,s)=>{const r=!!e.allRenderFn,i=!!e.lazyLoad,l=!!e.taskQueue,c=!!e.updatable;try{if(xn=n,n=(r||n.render)&&n.render(),c&&l&&(t.u&=-17),(c||i)&&(t.u|=2),e.hasRenderFn||e.reflect)if(e.vdomRender||e.reflect){if(e.hydrateServerSide)return Promise.resolve(n).then((e=>mn(t,e,s)));mn(t,n,s)}else 1&t.o.u?o.shadowRoot.textContent=n:o.textContent=n}catch(e){v(e,t.$hostElement$)}return xn=null,null},Cn=t=>{const n=t.o.C,o=t.$hostElement$,s=Lt("postUpdate",n),r=e.lazyLoad?t.l:o,i=t.K;e.isDev&&(t.u|=1024),kn(r,"componentDidRender",void 0,o),e.isDev&&(t.u&=-1025),Nn(o,"componentDidRender"),64&t.u?(e.isDev&&(t.u|=1024),kn(r,"componentDidUpdate",void 0,o),e.isDev&&(t.u&=-1025),Nn(o,"componentDidUpdate"),s()):(t.u|=64,e.asyncLoading&&e.cssAnnotations&&Tn(o),e.isDev&&(t.u|=2048),kn(r,"componentDidLoad",void 0,o),e.isDev&&(t.u&=-2049),Nn(o,"componentDidLoad"),s(),e.asyncLoading&&(t.j(o),i||En(n))),e.method&&e.lazyLoad&&t.$(o),e.asyncLoading&&(t.q&&(t.q(),t.q=void 0),512&t.u&&q((()=>bn(t,!1))),t.u&=-517)},_n=t=>{var o;if(e.updatable&&(n.isBrowser||n.isTesting)){const e=d(t),n=null==(o=null==e?void 0:e.$hostElement$)?void 0:o.isConnected;return n&&2==(18&e.u)&&bn(e,!1),n}return!1},En=n=>{var o;e.asyncQueue&&(A.u|=2),q((()=>Pe(R,"appload",{detail:{namespace:t}}))),e.hydrateClientSide&&(null==(o=A.tt)?void 0:o.size)&&A.tt.clear(),e.profile&&performance.measure&&performance.measure(`[Stencil] ${t} initial load (by ${n})`,"st:app:start")},kn=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){v(t,o)}},Nn=(n,o)=>{e.lifecycleDOMEvents&&Pe(n,"stencil_"+o,{bubbles:!0,composed:!0,detail:{namespace:t}})},Tn=t=>{var n,o;return e.hydratedClass?t.classList.add(null!=(n=e.hydratedSelectorName)?n:"hydrated"):e.hydratedAttribute?t.setAttribute(null!=(o=e.hydratedSelectorName)?o:"hydrated",""):void 0},Ln=t=>{const e=t.children;if(null!=e)for(let t=0,n=e.length;t<n;t++){const n=e[t];"function"==typeof n.connectedCallback&&n.connectedCallback(),Ln(n)}},Rn=(t,e)=>d(t).i.get(e),Mn=(t,n,o,s)=>{const r=d(t);if(!r)return;if(e.lazyLoad&&!r)throw Error(`Couldn't find host element for "${s.C}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);if(e.serializer&&r.p.has(n)&&r.p.get(n)===o)return;const i=e.lazyLoad?r.$hostElement$:t,l=r.i.get(n),c=r.u,a=e.lazyLoad?r.l:i;if(o=Ie(o,s.t[n][0],e.formAssociated&&!!(64&s.u)),!(e.lazyLoad&&8&c&&void 0!==l||o===l||Number.isNaN(l)&&Number.isNaN(o))){if(r.i.set(n,o),e.serializer&&e.reflect&&s.X&&s.et&&s.et[n]){const t=t=>{let e=o;for(const o of s.et[n]){const[[s]]=Object.entries(o);e=t[s](e,n)}r.p.set(n,e)};a?t(a):r.O.push((()=>{t(r.l)}))}if(e.isDev&&(1024&r.u?b(`The state/prop "${n}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",i,"\nNew value",o,"\nOld value",l):2048&r.u&&b(`The state/prop "${n}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",i,"\nNew value",o,"\nOld value",l)),e.propChangeCallback&&s.nt){const t=s.nt[n];t&&t.map((t=>{try{const[[e,s]]=Object.entries(t);(128&c||1&s)&&(a?a[e](o,l,n):r.O.push((()=>{r.l[e](o,l,n)})))}catch(t){v(t,i)}}))}if(e.updatable&&2&c){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(o,l,n)&&!(16&c))return;16&c||bn(r,!1)}}},An=(t,n,o)=>{var s,r;const i=t.prototype;if(e.isTesting){if(i.__stencilAugmented)return;i.__stencilAugmented=!0}if(e.formAssociated&&64&n.u&&1&o&&L.forEach((t=>{const n=i[t];Object.defineProperty(i,t,{value(...o){var s;const r=d(this),i=e.lazyLoad?null==r?void 0:r.l:this;if(i){const s=e.lazyLoad?i[t]:n;"function"==typeof s&&s.call(i,...o)}else null==(s=null==r?void 0:r.S)||s.then((e=>{const n=e[t];"function"==typeof n&&n.call(e,...o)}))}})})),e.member&&n.t||e.propChangeCallback){e.propChangeCallback&&(t.watchers&&!n.nt&&(n.nt=Le(t.watchers)),t.deserializers&&!n.ot&&(n.ot=t.deserializers),t.serializers&&!n.et&&(n.et=t.serializers));const l=Object.entries(null!=(s=n.t)?s:{});if(l.map((([t,[s]])=>{if((e.prop||e.state)&&(31&s||(!e.lazyLoad||2&o)&&32&s)){const{get:r,set:l}=c(i,t)||{};r&&(n.t[t][0]|=2048),l&&(n.t[t][0]|=4096),(1&o||!r)&&Object.defineProperty(i,t,{get(){if(e.lazyLoad){if(!(2048&n.t[t][0]))return Rn(this,t);const e=d(this),o=e?e.l:i;if(!o)return;return o[t]}if(!e.lazyLoad)return r?r.apply(this):Rn(this,t)},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(r){const i=d(this);if(i){if(e.isDev&&(1&o||4096&n.t[t][0]||0!==(i&&8&i.u)||!(31&s)||1024&s||b(`@Prop() "${t}" on <${n.C}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`)),l)return void 0===(32&s?this[t]:i.$hostElement$[t])&&i.i.get(t)&&(r=i.i.get(t)),l.call(this,Ie(r,s,e.formAssociated&&!!(64&n.u))),void Mn(this,t,r=32&s?this[t]:i.$hostElement$[t],n);if(e.lazyLoad){if(e.lazyLoad){if(!(1&o&&4096&n.t[t][0]))return Mn(this,t,r,n),void(1&o&&!i.l&&i.O.push((()=>{4096&n.t[t][0]&&i.l[t]!==i.i.get(t)&&(i.l[t]=r)})));const l=()=>{const o=i.l[t];!i.i.get(t)&&o&&i.i.set(t,o),i.l[t]=Ie(r,s,e.formAssociated&&!!(64&n.u)),Mn(this,t,i.l[t],n)};i.l?l():i.O.push((()=>{l()}))}}else Mn(this,t,r,n)}}})}else e.lazyLoad&&e.method&&1&o&&64&s&&Object.defineProperty(i,t,{value(...e){var n;const o=d(this);return null==(n=null==o?void 0:o.v)?void 0:n.then((()=>{var n;return null==(n=o.l)?void 0:n[t](...e)}))}})})),e.observeAttribute&&(!e.lazyLoad||1&o)){const o=new Map;i.attributeChangedCallback=function(t,s,r){A.jmp((()=>{var c;const a=o.get(t),u=d(this);if(e.serializer&&u.p.has(a)&&u.p.get(a)===r)return;if(this.hasOwnProperty(a)&&e.lazyLoad&&(r=this[a],delete this[a]),e.deserializer&&n.ot&&n.ot[a]){const t=(t,e)=>{const n=null==e?void 0:e[t](r,a);n!==this[a]&&(this[a]=n)};for(const o of n.ot[a]){const[[n]]=Object.entries(o);e.lazyLoad?u.l?t(n,u.l):u.O.push((()=>{t(n,u.l)})):t(n,this)}return}if(i.hasOwnProperty(a)&&"number"==typeof this[a]&&this[a]==r)return;if(null==a){const o=null==u?void 0:u.u;if(u&&o&&!(8&o)&&r!==s){const i=e.lazyLoad?u.l:e.lazyLoad?u.$hostElement$:this,l=null==(c=n.nt)?void 0:c[t];null==l||l.forEach((e=>{const[[n,l]]=Object.entries(e);null!=i[n]&&(128&o||1&l)&&i[n].call(i,r,s,t)}))}return}const f=l.find((([t])=>t===a)),h=f&&4&f[1][0],p=h&&null===r&&void 0===this[a];h&&(r=null!==r&&"false"!==r);const m=Object.getOwnPropertyDescriptor(i,a);p||r==this[a]||m.get&&!m.set||(this[a]=r)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=n.nt)?r:{}),...l.filter((([t,e])=>31&e[0])).map((([t,s])=>{var r;const i=s[1]||t;return o.set(i,t),e.reflect&&512&s[0]&&(null==(r=n.X)||r.push([t,i])),i}))]))}}return t},Dn=async(t,n,o,s)=>{let r;try{if(!(32&n.u)){if(n.u|=32,e.lazyLoad&&o._){const i=S(o,n,s);if(i&&"then"in i){const t=((t,n)=>e.profile&&performance.mark?(0===performance.getEntriesByName(t,"mark").length&&performance.mark(t),()=>{0===performance.getEntriesByName(n,"measure").length&&performance.measure(n,t)}):()=>{})(`st:load:${o.C}:${n.k}`,`[Stencil] Load module for <${o.C}>`);r=await i,t()}else r=i;if(!r)throw Error(`Constructor for "${o.C}#${n.k}" was not found`);e.member&&!r.isProxied&&(e.propChangeCallback&&(o.nt=Le(r.watchers),o.et=r.serializers,o.ot=r.deserializers),An(r,o,2),r.isProxied=!0);const l=Lt("createInstance",o.C);e.member&&(n.u|=8);try{new r(n)}catch(e){v(e,t)}e.member&&(n.u&=-9),e.propChangeCallback&&(n.u|=128),l(),e.slotRelocation&&4&o.u?n.G=!0:In(n.l,t)}else r=t.constructor,customElements.whenDefined(t.localName).then((()=>n.u|=128));if(e.style&&r&&r.style){let i;"string"==typeof r.style?i=r.style:e.mode&&"string"!=typeof r.style&&(n.k=Te(t),n.k&&(i=r.style[n.k]),e.hydrateServerSide&&n.k&&t.setAttribute("s-mode",n.k));const l=Ht(o,n.k);if(!j.has(l)||e.hotModuleReplacement&&s){const t=Lt("registerStyles",o.C);e.hydrateServerSide&&e.shadowDom&&128&o.u&&(i=Ne(i,l)),At(l,i,!!(1&o.u)),t()}}}const i=n.K,l=()=>bn(n,!0);e.asyncLoading&&i&&i["s-rc"]?i["s-rc"].push(l):l()}catch(o){v(o,t),e.asyncLoading&&n.q&&(n.q(),n.q=void 0),e.asyncLoading&&n.j&&n.j(t)}},In=(t,n)=>{e.lazyLoad&&kn(t,"connectedCallback",void 0,n)},Hn=t=>{if(!(1&A.u)){const n=d(t);if(!n)return;const o=n.o,s=Lt("connectedCallback",o.C);if(e.hostListenerTargetParent&&Wn(t,n,o.st,!0),1&n.u)Wn(t,n,o.st,!1),(null==n?void 0:n.l)?In(n.l,t):(null==n?void 0:n.S)&&n.S.then((()=>In(n.l,t)));else{let s;if(n.u|=1,e.hydrateClientSide&&(s=t.getAttribute(O),s)){if(e.shadowDom&&D&&1&o.u){const n=e.mode?Dt(t.shadowRoot,o,t.getAttribute("s-mode")):Dt(t.shadowRoot,o);t.classList.remove(n+"-h",n+"-s")}else if(e.scoped&&2&o.u){const n=Ht(o,e.mode?t.getAttribute("s-mode"):void 0);t["s-sc"]=n}((t,n,o,s)=>{var r,i,l,c;const a=Lt("hydrateClient",n),u=t.shadowRoot,f=[],h=[],p=[],m=e.shadowDom&&u?[]:null,v=zt(n,null);let g;if(v.F=t,e.scoped){const e=s.o;e&&10&e.u&&t["s-sc"]?(g=t["s-sc"],t.classList.add(g+"-h")):t["s-sc"]&&delete t["s-sc"]}!R.document||A.tt&&A.tt.size||Qt(R.document.body,A.tt=new Map),t[O]=o,t.removeAttribute(O),s.J=Kt(v,f,h,m,t,t,o,p);let $=0;const b=f.length;let y;for(;$<b;$++){y=f[$];const o=y.P+"."+y.U,s=A.tt.get(o),i=y.F;if(u){if((null==(r=y.I)?void 0:(""+r).includes("-"))&&"slot-fb"!==y.I&&!y.F.shadowRoot){const t=d(y.F);if(t){const n=Ht(t.o,e.mode?y.F.getAttribute("s-mode"):void 0),o=R.document.querySelector(`style[sty-id="${n}"]`);o&&m.unshift(o.cloneNode(!0))}}}else i["s-hn"]=Zn(n).toUpperCase(),"slot"===y.I&&(i["s-cr"]=t["s-cr"]);"slot"===y.I&&(y.D=y.F["s-sn"]||y.F.name||null,y.M?(y.u|=2,y.F.childNodes.length||y.M.forEach((t=>{y.F.appendChild(t.F)}))):y.u|=1),s&&s.isConnected&&(s.parentElement.shadowRoot&&""===s["s-en"]&&s.parentNode.insertBefore(i,s.nextSibling),s.parentNode.removeChild(s),u||(i["s-oo"]=parseInt(y.U))),s&&!s["s-id"]&&A.tt.delete(o)}const w=[],S=p.length;let j,x,C,_,E=0,k=0;for(;E<S;E++)if(j=p[E],j&&j.length)for(C=j.length,x=0;x<C;x++){if(_=j[x],w[_.hostId]||(w[_.hostId]=A.tt.get(_.hostId)),!w[_.hostId])continue;const t=w[_.hostId];t.shadowRoot&&_.node.parentElement!==t&&t.insertBefore(_.node,null==(l=null==(i=j[x-1])?void 0:i.node)?void 0:l.nextSibling),t.shadowRoot&&u||(_.slot["s-cr"]||(_.slot["s-cr"]=t["s-cr"],_.slot["s-cr"]=!_.slot["s-cr"]&&t.shadowRoot?t:(t.__childNodes||t.childNodes)[0]),st(_.node,_.slot,!1,_.node["s-oo"]||k),(null==(c=_.node.parentElement)?void 0:c.shadowRoot)&&_.node.getAttribute&&_.node.getAttribute("slot")&&_.node.removeAttribute("slot"),e.experimentalSlotFixes&&wt(_.node)),k=(_.node["s-oo"]||k)+1}if(e.scoped&&g&&h.length&&h.forEach((t=>{t.F.parentElement.classList.add(g+"-s")})),e.shadowDom&&u&&!u.childNodes.length){let e=0;const n=m.length;if(n){for(;e<n;e++){const t=m[e];t&&u.appendChild(t)}Array.from(t.childNodes).forEach((t=>{"string"!=typeof t["s-en"]&&"string"!=typeof t["s-sn"]&&(1===t.nodeType&&t.slot&&t.hidden?t.removeAttribute("hidden"):8!==t.nodeType||t.nodeValue||t.parentNode.removeChild(t))}))}}s.$hostElement$=t,a()})(t,o.C,s,n)}if(e.slotRelocation&&!s&&(e.hydrateServerSide||(e.slot||e.shadowDom)&&12&o.u)&&Fn(t),e.asyncLoading){let o=t;for(;o=o.parentNode||o.host;)if(e.hydrateClientSide&&1===o.nodeType&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){$n(n,n.K=o);break}}e.prop&&!e.hydrateServerSide&&o.t&&Object.entries(o.t).map((([e,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];delete t[e],t[e]=n}})),e.initializeNextTick?q((()=>Dn(t,n,o))):Dn(t,n,o)}s()}},Fn=t=>{if(!R.document)return;const n=t["s-cr"]=R.document.createComment(e.isDebug?`content-ref (host=${t.localName})`:"");n["s-cn"]=!0,hn(t,n,t.firstChild)},Pn=(t,n)=>{e.lazyLoad&&kn(t,"disconnectedCallback",void 0,n||t)},Un=async t=>{if(!(1&A.u)){const n=d(t);e.hostListener&&(null==n?void 0:n.rt)&&(n.rt.map((t=>t())),n.rt=void 0),e.lazyLoad?(null==n?void 0:n.l)?Pn(n.l,t):(null==n?void 0:n.S)&&n.S.then((()=>Pn(n.l,t))):Pn(t)}Mt.has(t)&&Mt.delete(t),t.shadowRoot&&Mt.has(t.shadowRoot)&&Mt.delete(t.shadowRoot)},Bn=(t,n)=>{const o={u:n[0],C:n[1]};try{e.member&&(o.t=n[2]),e.hostListener&&(o.st=n[3]),e.propChangeCallback&&(o.nt=Le(t.nt),o.ot=t.ot,o.et=t.et),e.reflect&&(o.X=[]),e.shadowDom&&!D&&1&o.u&&(o.u|=8),!(1&o.u)&&256&o.u?e.experimentalSlotFixes?at(t.prototype):(e.slotChildNodesFix&&yt(t.prototype),e.cloneNodeFix&&ut(t.prototype),e.appendChildSlotFix&&ft(t.prototype),e.scopedSlotTextContentFix&&2&o.u&&bt(t.prototype)):e.cloneNodeFix&&ut(t.prototype),e.hydrateClientSide&&e.shadowDom&&Pt();const s=t.prototype.connectedCallback,r=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){p(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const t=d(this);if(!t)return;Wn(this,t,o.st,!1),this.__hasHostListenerAttached=!0}Hn(this),s&&s.call(this)},disconnectedCallback(){Un(this),r&&r.call(this)},__attachShadow(){if(D)if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${o.C}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else G.call(this,o);else this.shadowRoot=this}}),Object.defineProperty(t,"is",{value:o.C,configurable:!0}),An(t,o,3)}catch(e){return v(e),t}},zn=(t,n={})=>{var o;if(e.profile&&performance.mark&&performance.mark("st:app:start"),(()=>{if(e.devTools){const t=R.stencil=R.stencil||{},e=t.inspect;t.inspect=t=>{let n=(t=>{const e=d(t);if(!e)return;const n=e.u,o=e.$hostElement$;return{renderCount:e.m,flags:{hasRendered:!!(2&n),hasConnected:!!(1&n),isWaitingForChildren:!!(4&n),isConstructingInstance:!!(8&n),isQueuedForUpdate:!!(16&n),hasInitializedComponent:!!(32&n),hasLoadedComponent:!!(64&n),isWatchReady:!!(128&n),isListenReady:!!(256&n),needsRerender:!!(512&n)},instanceValues:e.i,serializerValues:e.p,ancestorComponent:e.K,hostElement:o,lazyInstance:e.l,vnode:e.J,modeName:e.k,fetchedCbList:e.O,onReadyPromise:e.S,onReadyResolve:e.j,onInstancePromise:e.v,onInstanceResolve:e.$,onRenderResolve:e.q,queuedListeners:e.Z,rmListeners:e.rt,"s-id":o["s-id"],"s-cr":o["s-cr"],"s-lr":o["s-lr"],"s-p":o["s-p"],"s-rc":o["s-rc"],"s-sc":o["s-sc"]}})(t);return n||"function"!=typeof e||(n=e(t)),n}}})(),!R.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const s=Lt("bootstrapLazy"),r=[],i=n.exclude||[],l=R.customElements,c=R.document.head,a=c.querySelector("meta[charset]"),u=R.document.createElement("style"),f=[];let h,m=!0;Object.assign(A,n),A.N=new URL(n.resourcesUrl||"./",R.document.baseURI).href,e.asyncQueue&&n.syncQueue&&(A.u|=4),e.hydrateClientSide&&(A.u|=2),e.hydrateClientSide&&e.shadowDom&&Pt();let v=!1;if(t.map((t=>{t[1].map((o=>{var s,c;const a={u:o[0],C:o[1],t:o[2],st:o[3]};4&a.u&&(v=!0),e.member&&(a.t=o[2]),e.hostListener&&(a.st=o[3]),e.reflect&&(a.X=[]),e.propChangeCallback&&(a.nt=Le(o[4]),a.et=null!=(s=o[5])?s:{},a.ot=null!=(c=o[6])?c:{}),e.shadowDom&&!D&&1&a.u&&(a.u|=8);const u=e.transformTagName&&n.transformTagName?n.transformTagName(a.C):Zn(a.C),g=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),p(t=this,a),e.shadowDom&&1&a.u)if(D)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${a.C}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else G.call(t,a);else e.hydrateServerSide||"shadowRoot"in t||(t.shadowRoot=t)}connectedCallback(){const t=d(this);t&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Wn(this,t,a.st,!1)),h&&(clearTimeout(h),h=null),m?f.push(this):A.jmp((()=>Hn(this))))}disconnectedCallback(){A.jmp((()=>Un(this))),A.raf((()=>{var t;const e=d(this);if(!e)return;const n=f.findIndex((t=>t===this));n>-1&&f.splice(n,1),(null==(t=null==e?void 0:e.J)?void 0:t.F)instanceof Node&&!e.J.F.isConnected&&delete e.J.F}))}componentOnReady(){var t;return null==(t=d(this))?void 0:t.S}};!(1&a.u)&&256&a.u?e.experimentalSlotFixes?at(g.prototype):(e.slotChildNodesFix&&yt(g.prototype),e.cloneNodeFix&&ut(g.prototype),e.appendChildSlotFix&&ft(g.prototype),e.scopedSlotTextContentFix&&2&a.u&&bt(g.prototype)):e.cloneNodeFix&&ut(g.prototype),e.formAssociated&&64&a.u&&(g.formAssociated=!0),e.hotModuleReplacement&&(g.prototype["s-hmr"]=function(t){((t,e,n)=>{const o=d(t);o&&(o.u=1,Dn(t,o,e,n))})(this,a,t)}),a._=t[0],i.includes(u)||l.get(u)||(r.push(u),l.define(u,An(g,a,1)))}))})),r.length>0&&(e.slotRelocation&&v&&(u.textContent+=N),e.invisiblePrehydration&&(e.hydratedClass||e.hydratedAttribute)&&(u.textContent+=r.sort()+"{visibility:hidden}.hydrated{visibility:inherit}"),u.innerHTML.length)){u.setAttribute("data-styles","");const t=null!=(o=A.T)?o:Rt(R.document);null!=t&&u.setAttribute("nonce",t),c.insertBefore(u,a?a.nextSibling:c.firstChild)}m=!1,f.length?f.map((t=>t.connectedCallback())):A.jmp(e.profile?()=>h=setTimeout(En,30,"timeout"):()=>h=setTimeout(En,30)),s()},Vn=(t,e)=>e,Wn=(t,n,o,s)=>{e.hostListener&&o&&R.document&&(e.hostListenerTargetParent&&(o=o.filter(s?([t])=>32&t:([t])=>!(32&t))),o.map((([o,s,r])=>{const i=e.hostListenerTarget?Jn(R.document,t,o):t,l=Yn(n,r),c=Xn(o);A.ael(i,s,l,c),(n.rt=n.rt||[]).push((()=>A.rel(i,s,l,c)))})))},Yn=(t,n)=>o=>{var s;try{e.lazyLoad?256&t.u?null==(s=t.l)||s[n](o):(t.Z=t.Z||[]).push([n,o]):t.$hostElement$[n](o)}catch(e){v(e,t.$hostElement$)}},Jn=(t,n,o)=>e.hostListenerTargetDocument&&4&o?t:e.hostListenerTargetWindow&&8&o?R:e.hostListenerTargetBody&&16&o?t.body:e.hostListenerTargetParent&&32&o&&n.parentElement?n.parentElement:n,Xn=t=>({passive:!!(1&t),capture:!!(2&t)}),qn=e.lazyLoad?class{}:globalThis.HTMLElement||class{},Kn=t=>A.T=t,Qn=new WeakMap,Gn=void 0;function Zn(t){return Gn?Gn(t):t}function to(t,e,n){const o=e||{},{children:s,...r}=o;let i=r;return void 0===n||"key"in r||(i={...r,key:n}),i&&0===Object.keys(i).length&&(i=null),void 0!==s?Array.isArray(s)?Bt(t,i,...s):Bt(t,i,s):Bt(t,i)}var eo=(t,e,n,o)=>{var s;null!=e&&(null!=e["s-nr"]&&o.push(e),1===e.nodeType)&&[...Array.from(e.childNodes),...Array.from((null==(s=e.shadowRoot)?void 0:s.childNodes)||[])].forEach((e=>{const s=d(e);null==s||n.staticComponents.has(e.nodeName.toLowerCase())||no(t,e,s.J,n,{nodeIds:0}),eo(t,e,n,o)}))},no=(t,e,n,o,s)=>{if(null!=n){const r=++o.hostIds;if(e.setAttribute(O,r),null!=e["s-cr"]&&(e["s-cr"].nodeValue="r."+r),null!=n.M){const e=0;n.M.forEach(((n,o)=>{oo(t,n,s,r,e,o)}))}if(e&&n&&n.F&&!e.hasAttribute(_)){const t=e.parentElement;if(t&&t.childNodes){const o=Array.from(t.childNodes),s=o.find((t=>8===t.nodeType&&t["s-sr"]));if(s){const t=o.indexOf(e)-1;n.F.setAttribute(_,`${s["s-host-id"]}.${s["s-node-id"]}.0.${t}`)}}}}},oo=(t,e,n,o,s,r)=>{const i=e.F;if(null==i)return;const l=n.nodeIds++,c=`${o}.${l}.${s}.${r}`;if(i["s-host-id"]=o,i["s-node-id"]=l,1===i.nodeType)i.setAttribute(_,c),"string"!=typeof i["s-sn"]||i.getAttribute("slot")||i.setAttribute("s-sn",i["s-sn"]);else if(3===i.nodeType){const e=i.parentNode,n=null==e?void 0:e.nodeName;if("STYLE"!==n&&"SCRIPT"!==n){const n=t.createComment("t."+c);hn(e,n,i)}}else 8===i.nodeType&&i["s-sr"]&&(i.nodeValue=`s.${c}.${i["s-sn"]||""}`);if(null!=e.M){const r=s+1;e.M.forEach(((e,s)=>{oo(t,e,n,o,r,s)}))}},so=Object.freeze({__proto__:null,BUILD:e,Build:n,Env:{},Fragment:Vn,H:M,HTMLElement:M,HYDRATED_STYLE_ID:C,Host:Vt,Mixin:function(...t){return t.reduceRight(((t,e)=>e(t)),qn)},NAMESPACE:t,STENCIL_DEV_MODE:g,addHostEventListeners:Wn,bootstrapLazy:zn,cmpModules:w,connectedCallback:Hn,consoleDevError:$,consoleDevInfo:y,consoleDevWarn:b,consoleError:v,createEvent:Fe,defineCustomElement:(t,e)=>{customElements.define(Zn(e[1]),Bn(t,e))},disconnectedCallback:Un,forceModeUpdate:t=>{if(e.style&&e.mode&&!e.lazyLoad){const e=Te(t),n=d(t);if(n&&n.k!==e){const o=n.o,s=t["s-sc"],r=Ht(o,e),i=t.constructor.style[e],l=o.u;i&&(j.has(r)||At(r,i,!!(1&l)),n.k=e,t.classList.remove(s+"-h",s+"-s"),It(n),_n(t))}}},forceUpdate:_n,getAssetPath:t=>{const e=new URL(t,A.N);return e.origin!==R.location.origin?e.href:e.pathname},getElement:He,getHostRef:d,getMode:t=>{var e;return null==(e=d(t))?void 0:e.k},getRenderingRef:()=>xn,getValue:Rn,h:Bt,insertVdomAnnotations:(t,e)=>{if(null!=t){const n=E in t?t[E]:{...k};n.staticComponents=new Set(e);const o=[];eo(t,t.body,n,o),o.forEach((e=>{var o;if(null!=e&&e["s-nr"]){const s=e["s-nr"];let r=s["s-host-id"],i=s["s-node-id"],l=`${r}.${i}`;if(null==r)if(r=0,n.rootLevelIds++,i=n.rootLevelIds,l=`${r}.${i}`,1===s.nodeType)s.setAttribute(_,l),"string"!=typeof s["s-sn"]||s.getAttribute("slot")||s.setAttribute("s-sn",s["s-sn"]);else if(3===s.nodeType){if(0===r&&""===(null==(o=s.nodeValue)?void 0:o.trim()))return void e.remove();const n=t.createComment(l);n.nodeValue="t."+l,hn(s.parentNode,n,s)}else if(8===s.nodeType){const e=t.createComment(l);e.nodeValue="c."+l,s.parentNode.insertBefore(e,s)}let c="o."+l;const a=e.parentElement;a&&(""===a["s-en"]?c+=".":"c"===a["s-en"]&&(c+=".c")),e.nodeValue=c}}))}},isMemberInElement:m,jsx:to,jsxDEV:function(t,e,n){const o=e||{},{children:s,...r}=o;let i=r;return void 0===n||"key"in r||(i={...r,key:n}),i&&0===Object.keys(i).length&&(i=null),void 0!==s?Array.isArray(s)?Bt(t,i,...s):Bt(t,i,s):Bt(t,i)},jsxs:function(t,e,n){return to(t,e,n)},loadModule:S,modeResolutionChain:x,needsScopedSSR:()=>!1,nextTick:q,normalizeWatchers:Le,parsePropertyValue:Ie,plt:A,postUpdateComponent:Cn,promiseResolve:I,proxyComponent:An,proxyCustomElement:Bn,readTask:K,registerHost:p,registerInstance:h,render:function(t,e){let n=Qn.get(e);n||(n={u:0,o:{u:0,C:e.tagName},$hostElement$:e},Qn.set(e,n)),mn(n,t)},renderVdom:mn,setAssetPath:t=>A.N=t,setErrorHandler:t=>a=t,setMode:t=>x.push(t),setNonce:Kn,setPlatformHelpers:t=>{Object.assign(A,t)},setPlatformOptions:t=>Object.assign(A,t),setScopedSSR:()=>{},setTagTransformer:function(t){Gn&&console.warn("\n A tagTransformer has already been set. \n Overwriting it may lead to error and unexpected results if your components have already been defined.\n "),Gn=t},setValue:Mn,styles:j,supportsConstructableStylesheets:H,supportsListenerOptions:!0,supportsMutableAdoptedStyleSheets:F,supportsShadow:D,transformTag:Zn,win:R,writeTask:Q});export{e as B,Vn as F,M as H,t as N,so as S,Vt as a,zn as b,y as c,Q as d,Fe as e,_n as f,He as g,Bt as h,I as p,h as r,Kn as s,R as w}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,a as e,g as o}from"./p-GstO_GU5.js";import{L as s}from"./p-DY5fMUX8.js";import{l as n,o as l,r,m as a,a as d}from"./p-Dvlw60RF.js";import{w as h,a as c}from"./p-7pLJBHT2.js";import{w as u,a as v}from"./p-DXtYQE4s.js";function f(t){if(!t||""===t.trim()||"[]"===t)return[];try{const i=JSON.parse(t);return Array.isArray(i)?i.map(((t,i)=>{var e,o,s;return"string"==typeof t?{label:t,id:String(i)}:"object"==typeof t&&null!==t?{label:null!==(o=null!==(e=t.label)&&void 0!==e?e:t.name)&&void 0!==o?o:String(i),id:null!==(s=t.id)&&void 0!==s?s:String(i)}:{label:String(t),id:String(i)}})):[]}catch(t){return console.error("parseHeaders: failed to parse JSON",t),[]}}function p(t,i){return`${t.id}-${i.id}`}function g(t){if(!t||""===t.trim()||"[]"===t)return[];try{const i=JSON.parse(t);if(!Array.isArray(i))return["Headers must be an array"];const e=[],o=new Set;return i.forEach(((t,i)=>{"object"==typeof t&&null!==t&&void 0!==t.id&&("string"!=typeof t.id?e.push(`Header[${i}]: 'id' must be a string`):o.has(t.id)?e.push(`Header[${i}]: duplicate id '${t.id}'`):o.add(t.id),void 0!==t.label&&"string"!=typeof t.label&&e.push(`Header[${i}]: 'label' must be a string`))})),e}catch(t){return console.error("validateHeadersJson: failed to parse JSON",t),["Invalid JSON structure"]}}const b=["auto","equal"],m=["top","center","bottom","baseline"],w=["left","center","right","baseline"],y={top:"flex-start",center:"center",bottom:"flex-end",baseline:"flex-start"},S={left:"stretch",center:"center",right:"flex-end",baseline:"stretch"};function x(t){if(null===t||""===t.trim())return 1;const i=Number(t);return Number.isInteger(i)&&i>=1?i:void 0}function $(t,i,e){var o,s;const n=Array.from({length:t},(()=>Array(i))),l=[],r=[];for(let a=0;a<t;a++)for(let d=0;d<i;d++){const h=n[a][d];if(h){r.push({row:a,column:d,by:h});continue}const c=e(a,d),u=Math.min(null!==(o=null==c?void 0:c.rowSpan)&&void 0!==o?o:1,t-a);let v=1;const f=Math.min(null!==(s=null==c?void 0:c.columnSpan)&&void 0!==s?s:1,i-d);for(;v<f&&!n[a][d+v];)v++;const p={row:a,column:d,rowSpan:u,columnSpan:v};for(let t=a;t<a+u;t++)for(let i=d;i<d+v;i++)n[t][i]=p;l.push(p)}return{cells:l,covered:r}}const C=t=>Math.round(100*t)/100,R=new Set(["bn-asset","bn-component-style","bn-dataset","bn-datasource","bn-internationalization","bn-ruleset","bn-scaling-group"]),O=new Set(["bn-layout-card"]),j={top:"--bn-baseline-offset-top",left:"--bn-baseline-offset-left",right:"--bn-baseline-offset-right"},H=["row-span","column-span","cell-background"],k=class{validateRowHeaders(t){const i="ERR_rowHeaders",e=g(t);e.length>0?this.errors.addOrReplace({id:i,type:"error",message:`row-headers: ${e.join("; ")}`}):this.errors.remove(i),this.updateGridConfig()}validateColumnHeaders(t){const i="ERR_columnHeaders",e=g(t);e.length>0?this.errors.addOrReplace({id:i,type:"error",message:`column-headers: ${e.join("; ")}`}):this.errors.remove(i),this.updateGridConfig()}validateCellHeight(t){this.resolvedHeight=this.validateChoice("cell-height","ERR_cellHeight",t,b,"auto")}validateCellWidth(t){this.resolvedWidth=this.validateChoice("cell-width","ERR_cellWidth",t,b,"auto")}validateCellVerticalAlign(t){this.resolvedVertical=this.validateChoice("cell-vertical-align","ERR_cellVerticalAlign",t,m,"top"),this.schedule()}validateCellHorizontalAlign(t){this.resolvedHorizontal=this.validateChoice("cell-horizontal-align","ERR_cellHorizontalAlign",t,w,"left"),this.schedule()}validateCellCaptions(t){const i=function(t){if(void 0===t||""===t.trim())return{};let i;try{i=JSON.parse(t)}catch(t){return}if("object"!=typeof i||null===i||Array.isArray(i))return;const e={};for(const[t,o]of Object.entries(i)){if("string"!=typeof o)return;""!==o&&(e[t]=o)}return e}(t);i?this.errors.remove("ERR_cellCaptions"):this.errors.addOrReplace({id:"ERR_cellCaptions",type:"error",message:"cell-captions: not a JSON object from slot name to text."}),this.captions=null!=i?i:{}}constructor(i){t(this,i),this.gridConfig={rows:[],columns:[]},this.resolvedHeight="auto",this.resolvedWidth="auto",this.resolvedVertical="top",this.resolvedHorizontal="left",this.captions={},this.offsets={},this.cellAttributes={},this.placed=[],this.frames=new Map,this.observed=new WeakSet,this.scheduled=!1,this.run=0,this.adjustments=0,this.chartTitle="",this.rowHeaders="[]",this.columnHeaders="[]",this.showRowHeaders=!0,this.showColumnHeaders=!0,this.showBorders=!0,this.rowHeaderWidth="auto",this.cellGap="0px",this.cellHeight="auto",this.cellWidth="auto",this.cellVerticalAlign="top",this.cellHorizontalAlign="left",this.cellCaptions="",this.schedule=()=>{if(!this.isBaselineMode())return this.run++,Object.keys(this.offsets).length>0&&(this.offsets={}),void this.applyFrameOffsets();this.scheduled||(this.scheduled=!0,this.holdStatus(new Promise((t=>{requestAnimationFrame((()=>{this.scheduled=!1,this.align().catch((t=>console.error("bn-grid: aligning the baselines failed",t))).finally(t)}))}))))},u(this),this.holdStatus=h(this),this.errors=c(this),this.componentStyle=v(this)}connectedCallback(){var t;this.observed=new WeakSet,this.resizeObserver=new ResizeObserver(this.schedule),this.mutationObserver=new MutationObserver((()=>{this.readCellAttributes(),this.checkCoveredSlots(),this.schedule()})),this.mutationObserver.observe(this.element,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot",...H]}),null===(t=document.fonts)||void 0===t||t.addEventListener("loadingdone",this.schedule),this.readCellAttributes()}disconnectedCallback(){var t,i,e;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(i=this.mutationObserver)||void 0===i||i.disconnect(),null===(e=document.fonts)||void 0===e||e.removeEventListener("loadingdone",this.schedule),this.run++}componentDidRender(){this.schedule()}validateChoice(t,i,e,o,s){return null==e||""===e?(this.errors.remove(i),s):o.includes(e)?(this.errors.remove(i),e):(this.errors.addOrReplace({id:i,type:"error",message:`${t}: "${e}" is not one of ${o.join(", ")}.`}),s)}readCellAttributes(){const t={},i=[];for(const e of Array.from(this.element.children)){const o=e.getAttribute("slot");if(null===o)continue;const s=t=>{const s=x(e.getAttribute(t));return void 0===s&&i.push(`${t} of slot "${o}"`),null!=s?s:1},n={rowSpan:s("row-span"),columnSpan:s("column-span")},l=e.getAttribute("cell-background");l&&(n.background=l),(n.rowSpan>1||n.columnSpan>1||n.background)&&(t[o]=n)}i.length>0?this.errors.addOrReplace({id:"ERR_cellSpan",type:"error",message:`${i.join(", ")}: not a whole number from 1.`}):this.errors.remove("ERR_cellSpan"),JSON.stringify(t)!==JSON.stringify(this.cellAttributes)&&(this.cellAttributes=t)}placeDataCells(){const{rows:t,columns:i}=this.gridConfig,e=(e,o)=>p(t[e],i[o]),{cells:o}=$(t.length,i.length,((t,i)=>this.cellAttributes[e(t,i)]));this.placed=o.map((t=>Object.assign(Object.assign({},t),{slot:e(t.row,t.column)}))),this.checkCoveredSlots()}checkCoveredSlots(){var t;const{rows:i,columns:e}=null!==(t=this.gridConfig)&&void 0!==t?t:{rows:[],columns:[]},o=(t,o)=>p(i[t],e[o]),{covered:s}=$(i.length,e.length,((t,i)=>this.cellAttributes[o(t,i)])),n=new Set(Array.from(this.element.children).map((t=>t.getAttribute("slot")))),l=s.filter((({row:t,column:i})=>n.has(o(t,i))));if(l.length>0){const t=l.map((({row:t,column:i,by:e})=>`"${o(t,i)}" (covered by "${o(e.row,e.column)}")`));this.errors.addOrReplace({id:"WARN_cellSpan",type:"warning",message:`a span covers the slot ${t.join(", ")}: its content is not shown.`})}else this.errors.remove("WARN_cellSpan")}isBaselineMode(){return"baseline"===this.resolvedVertical||"baseline"===this.resolvedHorizontal}contentIn(t){const i=Array.from(this.element.children).find((i=>i.getAttribute("slot")===t));if(!i)return{};const e=[i,...Array.from(i.querySelectorAll("*"))],o=e.find((t=>t.localName.startsWith("bn-")&&!R.has(t.localName)&&!O.has(t.localName))),s=o?e.find((t=>O.has(t.localName)&&t.contains(o))):void 0;return{visual:o,frame:s}}applyFrameOffsets(){this.frames.forEach(((t,i)=>{const e=this.offsets[i];Object.keys(j).forEach((i=>{const o=null==e?void 0:e[i];o?t.style.setProperty(j[i],`${o}px`):t.style.removeProperty(j[i])}))}))}async align(){var t;const i=++this.run;if(!this.element.isConnected||!this.isBaselineMode())return;const e=this.placed,o=e.map((({slot:t})=>this.contentIn(t))),s=o.map((t=>t.visual));if(await Promise.all(s.map((t=>{var i;return null===(i=null==t?void 0:t.componentOnReady)||void 0===i?void 0:i.call(t)}))),i!==this.run)return;s.forEach((t=>t&&this.observe(t)));const l=await Promise.all(s.map((t=>"function"==typeof(null==t?void 0:t.getBaseline)?t.getBaseline().catch((()=>({}))):Promise.resolve({}))));if(i!==this.run)return;const r=n(this.element),a=new Map;null===(t=this.element.shadowRoot)||void 0===t||t.querySelectorAll(".grid-slot").forEach((t=>{var i;a.set(null!==(i=t.getAttribute("data-slot"))&&void 0!==i?i:"",t)})),this.frames=new Map,o.forEach((({frame:t},i)=>t&&this.frames.set(e[i].slot,t)));const d=function(t,i,e){const o={};for(const i of t)o[i.slot]={};const s=(i,e,s,n,l)=>{var r,a;const d=new Map;for(const o of t)(null!==(r=o[e])&&void 0!==r?r:1)>1||d.set(o[i],[...null!==(a=d.get(o[i]))&&void 0!==a?a:[],o]);for(const t of d.values()){const i=t.map((t=>{const i=s(t);return void 0===i?void 0:i-n(t)})),e=i.filter((t=>void 0!==t)),r=e.length>0?Math.max(...e):0,a=i.map((t=>void 0===t?void 0:C(r-t))),d=Math.max(0,...a.filter((t=>void 0!==t)));t.forEach(((t,i)=>l(o[t.slot],a[i],d)))}};return i&&s("row","rowSpan",(t=>t.y),(t=>t.top),((t,i)=>{void 0===i?t.bottom=!0:t.top=i})),e&&s("column","columnSpan",(t=>t.x),(t=>t.left),((t,i,e)=>{void 0!==i&&(t.left=i);const o=C(e-(null!=i?i:0));o>0&&(t.right=o)})),o}(e.map((({slot:t,row:i,column:e,rowSpan:n,columnSpan:d},h)=>{const c=s[h],u=l[h],v=o[h].frame,f=null!=v?v:a.get(t),p=t=>parseFloat((null==f?void 0:f.style.getPropertyValue(t))||"0")||0,g={slot:t,row:i,column:e,rowSpan:n,columnSpan:d,top:p(v?j.top:"padding-top"),left:p(v?j.left:"margin-left")};if(c){const t=r.toLocal(c.getBoundingClientRect());void 0!==u.y&&(g.y=t.y+u.y),void 0!==u.x&&(g.x=t.x+u.x)}return g})),"baseline"===this.resolvedVertical,"baseline"===this.resolvedHorizontal);if(function(t,i){var e,o,s,n,l,r,a,d;const h=new Set([...Object.keys(t),...Object.keys(i)]);for(const c of h){const h=null!==(e=t[c])&&void 0!==e?e:{},u=null!==(o=i[c])&&void 0!==o?o:{};if(Boolean(h.bottom)!==Boolean(u.bottom))return!1;if(Math.abs((null!==(s=h.top)&&void 0!==s?s:0)-(null!==(n=u.top)&&void 0!==n?n:0))>=.5)return!1;if(Math.abs((null!==(l=h.left)&&void 0!==l?l:0)-(null!==(r=u.left)&&void 0!==r?r:0))>=.5)return!1;if(Math.abs((null!==(a=h.right)&&void 0!==a?a:0)-(null!==(d=u.right)&&void 0!==d?d:0))>=.5)return!1}return!0}(d,this.offsets))this.adjustments=0;else{if(this.adjustments>=5)return console.warn("bn-grid: the baselines did not settle; the cells keep their last alignment."),void(this.adjustments=0);this.adjustments++,this.offsets=d,this.applyFrameOffsets(),this.schedule()}}observe(t){var i;this.observed.has(t)||(this.observed.add(t),null===(i=this.resizeObserver)||void 0===i||i.observe(t));const e=t=>{var i;t&&(this.observed.has(t)||(this.observed.add(t),null===(i=this.mutationObserver)||void 0===i||i.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["x1","y1","x2","y2","x","y","width","height","transform","style","class"]})),t.querySelectorAll("*").forEach((t=>e(t.shadowRoot))))};e(t.shadowRoot)}async getLayoutState(t){var i,e,o,n;const h=null!==(i=null==t?void 0:t.detail)&&void 0!==i?i:"summary",c=l(this.element),u=this.componentStyle((t=>{var i;return(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333})),{rows:v,columns:f}=this.gridConfig,p={version:s,tag:this.element.localName,id:d(this.element),slot:null!==(e=this.element.getAttribute("slot"))&&void 0!==e?e:void 0,rect:a(this.element,c),em:{fontSizePx:u,appliedScaleFactor:1},regions:[],metadata:{title:this.chartTitle||void 0,rowCount:v.length,columnCount:f.length,cellCount:this.placed.length},diagnostics:r(this.element)},g=null===(o=this.element.shadowRoot)||void 0===o?void 0:o.querySelector(".grid-container");if(g&&p.regions.push({id:"grid",rect:a(g,c)}),"full"!==h||!g)return p;const b=[],m=t=>b.push(t),w=g.querySelector(".grid-title");return w&&m({kind:"gridTitle",label:(null===(n=w.textContent)||void 0===n?void 0:n.trim())||void 0,rect:a(w,c)}),g.querySelectorAll(".grid-header-col").forEach(((t,i)=>{var e,o;m({kind:"gridHeader",columnId:null===(e=f[i])||void 0===e?void 0:e.id,label:(null===(o=t.textContent)||void 0===o?void 0:o.trim())||void 0,rect:a(t,c)})})),g.querySelectorAll(".grid-header-row").forEach(((t,i)=>{var e,o;m({kind:"gridHeader",rowId:null===(e=v[i])||void 0===e?void 0:e.id,label:(null===(o=t.textContent)||void 0===o?void 0:o.trim())||void 0,rect:a(t,c)})})),g.querySelectorAll(".grid-cell").forEach(((t,i)=>{var e,o,s,n;const l=this.placed[i];m(Object.assign(Object.assign(Object.assign({kind:"gridCell",rowId:l?null===(e=v[l.row])||void 0===e?void 0:e.id:void 0,columnId:l?null===(o=f[l.column])||void 0===o?void 0:o.id:void 0,slot:null!==(n=null===(s=t.querySelector("slot"))||void 0===s?void 0:s.getAttribute("name"))&&void 0!==n?n:void 0},(null==l?void 0:l.rowSpan)>1?{rowSpan:l.rowSpan}:{}),(null==l?void 0:l.columnSpan)>1?{columnSpan:l.columnSpan}:{}),{rect:a(t,c)}))})),g.querySelectorAll(".grid-caption").forEach((t=>{var i,e,o,s;m({kind:"gridCaption",slot:null!==(o=null===(e=null===(i=t.parentElement)||void 0===i?void 0:i.querySelector("slot"))||void 0===e?void 0:e.getAttribute("name"))&&void 0!==o?o:void 0,label:(null===(s=t.textContent)||void 0===s?void 0:s.trim())||void 0,rect:a(t,c)})})),p.elements=b,p}getGridStyle(){return this.componentStyle((t=>t["bn-grid"]))}componentWillLoad(){this.validateRowHeaders(this.rowHeaders),this.validateColumnHeaders(this.columnHeaders),this.validateCellHeight(this.cellHeight),this.validateCellWidth(this.cellWidth),this.validateCellVerticalAlign(this.cellVerticalAlign),this.validateCellHorizontalAlign(this.cellHorizontalAlign),this.validateCellCaptions(this.cellCaptions),this.readCellAttributes()}componentWillRender(){this.placeDataCells()}updateGridConfig(){var t;this.gridConfig=(t=this.columnHeaders,{rows:f(this.rowHeaders),columns:f(t)})}shouldShowRowHeaders(){return this.showRowHeaders&&this.gridConfig.rows.length>0}shouldShowColumnHeaders(){return this.showColumnHeaders&&this.gridConfig.columns.length>0}shouldShowBorders(){return this.showBorders}getGridTemplateColumns(){const t=[];this.shouldShowRowHeaders()&&t.push(this.rowHeaderWidth);const i=this.gridConfig.columns.length||1;for(let e=0;e<i;e++)t.push("equal"===this.resolvedWidth?"minmax(0, 1fr)":"auto");return t.join(" ")}getGridTemplateRows(){const t=[];this.chartTitle&&t.push("auto"),this.shouldShowColumnHeaders()&&t.push("auto");const i=this.gridConfig.rows.length||1;for(let e=0;e<i;e++)t.push("equal"===this.resolvedHeight?"1fr":"auto");return t.join(" ")}renderTitle(){if(!this.chartTitle)return null;const t=(this.shouldShowRowHeaders()?1:0)+this.gridConfig.columns.length;return i("div",{class:"grid-title",style:{"grid-column":`1 / span ${t}`,"grid-row":"1"}},this.chartTitle)}renderColumnHeaders(){if(!this.shouldShowColumnHeaders())return null;const t=this.getGridStyle(),e=this.shouldShowBorders()?`${t.borderWidth}px solid ${t.borderColor}`:"none",o=this.shouldShowRowHeaders()?2:1,s=this.chartTitle?2:1;return this.gridConfig.columns.map(((n,l)=>{const r=l>0;return i("div",{key:`col-header-${n.id}`,class:"grid-header grid-header-col",style:{"grid-column":String(o+l),"grid-row":String(s),"border-left":r?e:"none",padding:`${t.cellPadding}px`,"padding-left":r?`${t.cellPadding+4}px`:`${t.cellPadding}px`}},n.label)}))}renderDataCells(){const t=this.getGridStyle(),e=this.shouldShowBorders()?`${t.borderWidth}px solid ${t.borderColor}`:"none",o=this.shouldShowRowHeaders()?2:1,s=(this.chartTitle?1:0)+(this.shouldShowColumnHeaders()?1:0)+1,n=[],l=(t,i)=>i>1?`${t} / span ${i}`:String(t);return this.gridConfig.rows.length>0&&this.gridConfig.columns.length>0&&this.gridConfig.rows.forEach(((r,a)=>{if(this.shouldShowRowHeaders()){const o=a>0;n.push(i("div",{key:`row-header-${r.id}`,class:"grid-header grid-header-row",style:{"grid-column":"1","grid-row":String(s+a),"border-top":o?e:"none",padding:`${t.cellPadding}px`,"padding-top":o?`${t.cellPadding+4}px`:`${t.cellPadding}px`}},r.label))}this.placed.filter((t=>t.row===a)).forEach((({slot:r,column:d,rowSpan:h,columnSpan:c})=>{var u,v;const f=d>0,p=a>0,g=null!==(v=null===(u=this.cellAttributes[r])||void 0===u?void 0:u.background)&&void 0!==v?v:t.cellBackground&&"transparent"!==t.cellBackground?t.cellBackground:void 0;n.push(i("div",{key:`cell-${r}`,class:"grid-cell","data-bn-fit-content":"",style:Object.assign(Object.assign({"grid-column":l(o+d,c),"grid-row":l(s+a,h),"border-left":f?e:"none","border-top":p?e:"none","padding-left":f?`${t.cellPadding+4}px`:"0","padding-top":p?`${t.cellPadding+4}px`:"0"},this.cellAlignStyle()),g?{"background-color":g}:{})},this.renderCellContent(r,t)))}))})),n}cellAlignStyle(){return"top"===this.resolvedVertical&&"left"===this.resolvedHorizontal?{}:{display:"flex","flex-direction":"column","justify-content":y[this.resolvedVertical],"align-items":S[this.resolvedHorizontal]}}renderCellContent(t,e){var o;const s=this.captions[t],n=void 0!==s?i("div",{class:"grid-caption",style:{"font-size":`${e.captionFontSize}px`,"font-weight":String(e.captionFontWeight),color:e.captionColor,"margin-bottom":`${e.captionGap}px`,"align-self":"flex-start"}},s):null,l={};"top"===this.resolvedVertical&&"left"===this.resolvedHorizontal||(l["align-self"]="stretch","center"!==this.resolvedHorizontal&&"right"!==this.resolvedHorizontal||(l.display="flex",l["flex-direction"]="column",l["align-items"]=S[this.resolvedHorizontal])),"center"===this.resolvedVertical?(l["margin-top"]="auto",l["margin-bottom"]="auto"):"bottom"===this.resolvedVertical&&(l["margin-top"]="auto");const r=this.frames.has(t)?{bottom:null===(o=this.offsets[t])||void 0===o?void 0:o.bottom}:this.offsets[t];return(null==r?void 0:r.bottom)&&(l["margin-top"]="auto"),(null==r?void 0:r.top)&&(l["padding-top"]=`${r.top}px`),(null==r?void 0:r.left)&&(l["margin-left"]=`${r.left}px`),(null==r?void 0:r.right)&&(l["margin-right"]=`${r.right}px`),[n,i("div",{class:"grid-slot","data-slot":t,style:l},i("slot",{name:t}))]}getFontStyles(){return this.componentStyle((t=>{var i,e,o,s;return{"--bn-font-family":(null===(i=t.global)||void 0===i?void 0:i.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(e=t.global)||void 0===e?void 0:e.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(o=t.global)||void 0===o?void 0:o.fontColor)||"#000000","--bn-font-background":(null===(s=t.global)||void 0===s?void 0:s.fontBackgroundColor)||"#ffffff"}}))}render(){const t="equal"===this.resolvedWidth,o=Object.assign(Object.assign({display:t?"grid":"inline-grid"},t?{width:"100%"}:{}),{"grid-template-columns":this.getGridTemplateColumns(),"grid-template-rows":this.getGridTemplateRows(),gap:this.cellGap});return i(e,{key:"97d858fb6f5704dfd46638c8e5c6a74927e702e0",style:t?Object.assign(Object.assign({},this.getFontStyles()),{display:"block"}):this.getFontStyles()},i("div",{key:"1e218eac5865574fcb4572d1aaea60f1d87d8948",class:"grid-container",style:o},this.renderTitle(),this.renderColumnHeaders(),this.renderDataCells()),i("slot",{key:"aabefa01213c69c0303f1df06f5575973253677e"}))}get element(){return o(this)}static get watchers(){return{rowHeaders:[{validateRowHeaders:0}],columnHeaders:[{validateColumnHeaders:0}],cellHeight:[{validateCellHeight:0}],cellWidth:[{validateCellWidth:0}],cellVerticalAlign:[{validateCellVerticalAlign:0}],cellHorizontalAlign:[{validateCellHorizontalAlign:0}],cellCaptions:[{validateCellCaptions:0}]}}};k.style=':host{display:inline-block;font-family:var(--bn-font-family, "Noto Sans", sans-serif);font-size:var(--bn-font-size, 13.3333px);color:var(--bn-font-color, #000000)}.grid-container{display:inline-grid;box-sizing:border-box}.grid-title{font-weight:normal;padding-bottom:8px}.grid-header{display:flex;align-items:flex-end;box-sizing:border-box}.grid-header-row{justify-content:flex-end;padding-right:8px}.grid-header-col{white-space:nowrap;justify-content:flex-start}.grid-cell{position:relative;box-sizing:border-box}';export{k as bn_grid}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,a as i,g as o}from"./p-
|
|
1
|
+
import{r as t,h as s,a as i,g as o}from"./p-GstO_GU5.js";import{w as n,a as e}from"./p-DXtYQE4s.js";import{w as r,a,g as l}from"./p-7pLJBHT2.js";const h=class{constructor(s){t(this,s),n(this),r(this),this.errors=a(this),this.componentStyle=e(this)}connectedCallback(){this.stores=l(this.element)}getFontStyles(){return this.componentStyle((t=>{var s,i,o,n;return{"--bn-font-family":(null===(s=t.global)||void 0===s?void 0:s.fontFamily)||"'Noto Sans', sans-serif","--bn-font-size":`${(null===(i=t.global)||void 0===i?void 0:i.fontSizePx)||13.3333}px`,"--bn-font-color":(null===(o=t.global)||void 0===o?void 0:o.fontColor)||"#000000","--bn-font-background":(null===(n=t.global)||void 0===n?void 0:n.fontBackgroundColor)||"#ffffff"}}))}prepareAssetUrl(t){if(null==t||""===t)return"";const s=this.stores.assets.state;return t.startsWith("asset:")?s[t.substring(6)]:s[t]||t}render(){return s(i,{key:"b303581057c183cc27eb13cfdc389c6b008e9172",style:this.getFontStyles()},null!=this.source&&""!==this.source?s("img",{src:this.prepareAssetUrl(this.source)}):"")}get element(){return o(this)}};h.style=":host{display:inline-block;position:relative;overflow:hidden}img{max-width:100%;height:auto}";export{h as bn_image}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,h as t,a as e,g as r}from"./p-GstO_GU5.js";import{w as i}from"./p-BL07yV8P.js";import{w as o,a,g as h}from"./p-7pLJBHT2.js";const c=class{constructor(t){s(this,t),this.name="_default",o(this),this.errors=a(this),i(this,(s=>{this.stores||(this.stores=h(this.element));try{const t=JSON.parse(s);this.stores.ruleSets.set(this.name,t),this.errors.remove("ERR_body")}catch(s){this.errors.addOrReplace({id:"ERR_body",type:"error",message:`bn-ruleset: Failed to parse JSON body - ${s.message}`}),console.error(s)}}))}render(){return t(e,{key:"de03c25692178ed0f97c1e0d914396cba7c53cc3"})}get element(){return r(this)}};c.style="bn-ruleset{display:none}";export{c as bn_ruleset}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./p-DY5fMUX8.js";const r=1,l="4,4",e={ac:{markerFill:"#000000",markerStroke:"#000000",lineColor:"#000000"},pp:{markerFill:"#999999",markerStroke:"#999999",lineColor:"#999999"},fc:{markerFill:"#ffffff",markerStroke:"#000000",lineColor:"#000000",lineDashArray:l},pl:{markerFill:"#ffffff",markerStroke:"#000000",lineColor:"#000000"}},o={ac:{fill:"#000000",opacity:.3,lineColor:"#000000"},pp:{fill:"#999999",opacity:.3,lineColor:"#999999"},fc:{fill:"#000000",opacity:.2,lineColor:"#000000",dashArray:l},pl:{fill:"#000000",opacity:.1,lineColor:"#000000"}},a=(r,l)=>{const a=e[l];return{bar:Object.assign({},r["bn-chart-time"].barStyles[l]),line:Object.assign({color:a.lineColor},a.lineDashArray&&{dashArray:a.lineDashArray}),marker:{fill:a.markerFill,stroke:a.markerStroke},area:Object.assign({},o[l])}};function i(r,l){const e=r["bn-chart-time"].varianceStyles;return{apiVersion:1,fontFamily:r.global.fontFamily,fontSizePx:r.global.fontSizePx,scenarios:{ac:a(r,"ac"),pp:a(r,"pp"),fc:a(r,"fc"),pl:a(r,"pl")},variance:{pos:Object.assign({},e.pos),neg:Object.assign({},e.neg),neu:Object.assign({},e.neu)},scalingGroups:Object.fromEntries(Object.entries(l).filter((r=>void 0!==r[1])))}}export{l as D,e as I,r as N,o as S,i as b}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var withHasError = require('./withHasError-
|
|
5
|
-
var withStyled = require('./withStyled-
|
|
6
|
-
var withTranslation = require('./withTranslation-
|
|
7
|
-
var withBodyObserver = require('./withBodyObserver-
|
|
8
|
-
var localFrame = require('./localFrame-
|
|
9
|
-
var
|
|
3
|
+
var index = require('./index-DwBbheYB.js');
|
|
4
|
+
var withHasError = require('./withHasError-CZFrIJw0.js');
|
|
5
|
+
var withStyled = require('./withStyled-DHKHBdRb.js');
|
|
6
|
+
var withTranslation = require('./withTranslation-CLwC9a8V.js');
|
|
7
|
+
var withBodyObserver = require('./withBodyObserver-CIGVLQEB.js');
|
|
8
|
+
var localFrame = require('./localFrame-C4RBw_zT.js');
|
|
9
|
+
var types = require('./types-BngAWYMW.js');
|
|
10
10
|
var queryError = require('./queryError-BZjnIW_w.js');
|
|
11
|
+
var index$1 = require('./index-CM6022qm.js');
|
|
11
12
|
|
|
12
13
|
const COLOR_NAME = /^[a-z][a-z0-9-]*$/i;
|
|
13
14
|
/**
|
|
@@ -785,7 +786,7 @@ function readFontSizePx(el) {
|
|
|
785
786
|
function buildGenericState(el, origins) {
|
|
786
787
|
var _a;
|
|
787
788
|
return {
|
|
788
|
-
version:
|
|
789
|
+
version: types.LAYOUT_STATE_VERSION,
|
|
789
790
|
tag: el.localName,
|
|
790
791
|
id: localFrame.resolveStandaloneId(el),
|
|
791
792
|
slot: (_a = el.getAttribute("slot")) !== null && _a !== void 0 ? _a : undefined,
|
|
@@ -1208,7 +1209,7 @@ function collectXYElements(svgRoot, origins) {
|
|
|
1208
1209
|
function collectXYFacadeState(host, innerTag, title, em, origins, detail) {
|
|
1209
1210
|
var _a, _b, _c, _d;
|
|
1210
1211
|
const state = {
|
|
1211
|
-
version:
|
|
1212
|
+
version: types.LAYOUT_STATE_VERSION,
|
|
1212
1213
|
tag: host.localName,
|
|
1213
1214
|
id: localFrame.resolveStandaloneId(host),
|
|
1214
1215
|
slot: (_a = host.getAttribute("slot")) !== null && _a !== void 0 ? _a : undefined,
|
|
@@ -15193,7 +15194,7 @@ const Chart$1 = class Chart {
|
|
|
15193
15194
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15194
15195
|
const firstInner = (_b = this.element.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("bn-chart-structure-renderer");
|
|
15195
15196
|
const state = {
|
|
15196
|
-
version:
|
|
15197
|
+
version: types.LAYOUT_STATE_VERSION,
|
|
15197
15198
|
tag: this.element.localName,
|
|
15198
15199
|
id: localFrame.resolveStandaloneId(this.element),
|
|
15199
15200
|
slot: (_c = this.element.getAttribute("slot")) !== null && _c !== void 0 ? _c : undefined,
|
|
@@ -20065,7 +20066,7 @@ const Chart = class {
|
|
|
20065
20066
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20066
20067
|
const firstInner = (_b = this.element.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector("bn-chart-time-renderer");
|
|
20067
20068
|
const state = {
|
|
20068
|
-
version:
|
|
20069
|
+
version: types.LAYOUT_STATE_VERSION,
|
|
20069
20070
|
tag: this.element.localName,
|
|
20070
20071
|
id: localFrame.resolveStandaloneId(this.element),
|
|
20071
20072
|
slot: (_c = this.element.getAttribute("slot")) !== null && _c !== void 0 ? _c : undefined,
|
|
@@ -21601,12 +21602,6 @@ class Needle {
|
|
|
21601
21602
|
}
|
|
21602
21603
|
}
|
|
21603
21604
|
|
|
21604
|
-
const IBCS_LINE_STYLES = {
|
|
21605
|
-
ac: { markerFill: "#000000", markerStroke: "#000000", lineColor: "#000000" },
|
|
21606
|
-
pp: { markerFill: "#999999", markerStroke: "#999999", lineColor: "#999999" },
|
|
21607
|
-
fc: { markerFill: "#ffffff", markerStroke: "#000000", lineColor: "#000000", lineDashArray: "4,4" },
|
|
21608
|
-
pl: { markerFill: "#ffffff", markerStroke: "#000000", lineColor: "#000000" },
|
|
21609
|
-
};
|
|
21610
21605
|
class LineSeries {
|
|
21611
21606
|
constructor(position, styles, dataPoints, scenarioGroup, labelGroup, scenarioName, scenarioLabel, _i18n, collisionManager = null,
|
|
21612
21607
|
/** Style slot (ac, pp, fc, pl) of the line. Without it the scenario name decides. */
|
|
@@ -21664,7 +21659,7 @@ class LineSeries {
|
|
|
21664
21659
|
getLineStyle() {
|
|
21665
21660
|
var _a, _b, _c;
|
|
21666
21661
|
const scenarioType = (_a = this.lineSlot) !== null && _a !== void 0 ? _a : (((_c = (_b = this.scenarioName) === null || _b === void 0 ? void 0 : _b.slice(0, 2)) === null || _c === void 0 ? void 0 : _c.toLowerCase()) || "ac");
|
|
21667
|
-
return IBCS_LINE_STYLES[scenarioType] || IBCS_LINE_STYLES.ac;
|
|
21662
|
+
return index$1.IBCS_LINE_STYLES[scenarioType] || index$1.IBCS_LINE_STYLES.ac;
|
|
21668
21663
|
}
|
|
21669
21664
|
/**
|
|
21670
21665
|
* Extracts the scenario variant number (1-4) from the scenario name.
|
|
@@ -21965,15 +21960,6 @@ class StackedColumn {
|
|
|
21965
21960
|
}
|
|
21966
21961
|
}
|
|
21967
21962
|
|
|
21968
|
-
/**
|
|
21969
|
-
* IBCS-style area fill colors for stacked area charts.
|
|
21970
|
-
*/
|
|
21971
|
-
const SCENARIO_AREA_STYLES = {
|
|
21972
|
-
ac: { fill: "#000000", opacity: 0.3, lineColor: "#000000" },
|
|
21973
|
-
pp: { fill: "#999999", opacity: 0.3, lineColor: "#999999" },
|
|
21974
|
-
fc: { fill: "#000000", opacity: 0.2, lineColor: "#000000", dashArray: "4,4" },
|
|
21975
|
-
pl: { fill: "#000000", opacity: 0.1, lineColor: "#000000" },
|
|
21976
|
-
};
|
|
21977
21963
|
const GRAYSCALE_AREA_STYLES = [
|
|
21978
21964
|
{ fill: "#000000", opacity: 0.3 },
|
|
21979
21965
|
{ fill: "#555555", opacity: 0.25 },
|
|
@@ -22012,7 +21998,7 @@ class AreaFill {
|
|
|
22012
21998
|
let opacity;
|
|
22013
21999
|
if (this.isScenarioStack && this.scenarioType) {
|
|
22014
22000
|
const prefix = this.scenarioType.slice(0, 2).toLowerCase();
|
|
22015
|
-
const style = SCENARIO_AREA_STYLES[prefix] || SCENARIO_AREA_STYLES["ac"];
|
|
22001
|
+
const style = index$1.SCENARIO_AREA_STYLES[prefix] || index$1.SCENARIO_AREA_STYLES["ac"];
|
|
22016
22002
|
fill = style.fill;
|
|
22017
22003
|
opacity = style.opacity;
|
|
22018
22004
|
}
|
|
@@ -22034,7 +22020,7 @@ class AreaFill {
|
|
|
22034
22020
|
let dashArray;
|
|
22035
22021
|
if (this.isScenarioStack && this.scenarioType) {
|
|
22036
22022
|
const prefix = this.scenarioType.slice(0, 2).toLowerCase();
|
|
22037
|
-
const style = SCENARIO_AREA_STYLES[prefix] || SCENARIO_AREA_STYLES["ac"];
|
|
22023
|
+
const style = index$1.SCENARIO_AREA_STYLES[prefix] || index$1.SCENARIO_AREA_STYLES["ac"];
|
|
22038
22024
|
lineColor = style.lineColor;
|
|
22039
22025
|
dashArray = style.dashArray;
|
|
22040
22026
|
}
|
|
@@ -23763,9 +23749,9 @@ class TimeChart {
|
|
|
23763
23749
|
.stroke({
|
|
23764
23750
|
color: "#999999",
|
|
23765
23751
|
width: 1,
|
|
23766
|
-
dasharray:
|
|
23752
|
+
dasharray: index$1.DASH_ARRAY,
|
|
23767
23753
|
})
|
|
23768
|
-
.attr("stroke-dasharray",
|
|
23754
|
+
.attr("stroke-dasharray", index$1.DASH_ARRAY);
|
|
23769
23755
|
}
|
|
23770
23756
|
drawVarianceScenario(dataModel, svgContainer) {
|
|
23771
23757
|
const columnGroup = svgContainer.group().id("Scenarios");
|
|
@@ -24796,6 +24782,8 @@ function pageRule(format, orientation, renderOrientation) {
|
|
|
24796
24782
|
|
|
24797
24783
|
const bnContextCss = () => `:host{display:block}`;
|
|
24798
24784
|
|
|
24785
|
+
/** The elements that write what `getNotation()` reads. */
|
|
24786
|
+
const NOTATION_SOURCE_SELECTOR = "bn-component-style, bn-scaling-group";
|
|
24799
24787
|
/** Attributes that change the paper size, the orientation or the number of a page. */
|
|
24800
24788
|
const PAGE_ATTRIBUTES = [
|
|
24801
24789
|
"format",
|
|
@@ -24826,8 +24814,10 @@ const VISUAL_SELECTOR = "bn-annotation-layer, bn-annotation-list, bn-body, bn-ca
|
|
|
24826
24814
|
const Context = class {
|
|
24827
24815
|
constructor(hostRef) {
|
|
24828
24816
|
index.registerInstance(this, hostRef);
|
|
24817
|
+
this.bnNotationChange = index.createEvent(this, "bnNotationChange", 7);
|
|
24829
24818
|
/** The page numbers this context wrote. A number that is not in here was set by the author and is left alone. */
|
|
24830
24819
|
this.assignedPageNumbers = new WeakMap();
|
|
24820
|
+
this.notationSubscriptions = [];
|
|
24831
24821
|
withHasError.withComponentStatus(this);
|
|
24832
24822
|
this.errors = withHasError.withHasError(this);
|
|
24833
24823
|
}
|
|
@@ -24842,6 +24832,12 @@ const Context = class {
|
|
|
24842
24832
|
if (this.locale) {
|
|
24843
24833
|
this.stores.context.state.locale = this.locale;
|
|
24844
24834
|
}
|
|
24835
|
+
// a removed scaling group is a "set" too: its entry is set to undefined
|
|
24836
|
+
const notify = () => this.bnNotationChange.emit();
|
|
24837
|
+
this.notationSubscriptions = [
|
|
24838
|
+
this.stores.scalingGroups.on("set", notify),
|
|
24839
|
+
this.stores.componentStyles.on("set", notify),
|
|
24840
|
+
];
|
|
24845
24841
|
this.syncPages();
|
|
24846
24842
|
// pages that come, go or change their format later
|
|
24847
24843
|
this.pageObserver = new MutationObserver(() => this.syncPages());
|
|
@@ -24854,6 +24850,8 @@ const Context = class {
|
|
|
24854
24850
|
}
|
|
24855
24851
|
disconnectedCallback() {
|
|
24856
24852
|
var _a, _b;
|
|
24853
|
+
this.notationSubscriptions.forEach((unsubscribe) => unsubscribe());
|
|
24854
|
+
this.notationSubscriptions = [];
|
|
24857
24855
|
(_a = this.pageObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
24858
24856
|
(_b = this.pageSizeStyle) === null || _b === void 0 ? void 0 : _b.remove();
|
|
24859
24857
|
this.pageSizeStyle = undefined;
|
|
@@ -24945,7 +24943,7 @@ const Context = class {
|
|
|
24945
24943
|
catch (_a) {
|
|
24946
24944
|
const zero = { x: 0, y: 0, width: 0, height: 0 };
|
|
24947
24945
|
fallback = {
|
|
24948
|
-
version:
|
|
24946
|
+
version: types.LAYOUT_STATE_VERSION,
|
|
24949
24947
|
tag: el.localName,
|
|
24950
24948
|
id: el.localName,
|
|
24951
24949
|
rect: { context: Object.assign({}, zero), component: Object.assign({}, zero) },
|
|
@@ -24964,7 +24962,7 @@ const Context = class {
|
|
|
24964
24962
|
state.id = ids[index];
|
|
24965
24963
|
});
|
|
24966
24964
|
return {
|
|
24967
|
-
version:
|
|
24965
|
+
version: types.LAYOUT_STATE_VERSION,
|
|
24968
24966
|
generatedAt: new Date().toISOString(),
|
|
24969
24967
|
detail,
|
|
24970
24968
|
context: {
|
|
@@ -24974,6 +24972,26 @@ const Context = class {
|
|
|
24974
24972
|
components,
|
|
24975
24973
|
};
|
|
24976
24974
|
}
|
|
24975
|
+
/**
|
|
24976
|
+
* Returns how this context draws: font, the look of the scenarios `ac`,
|
|
24977
|
+
* `pp`, `fc` and `pl`, the variance colours and the scaling groups. A
|
|
24978
|
+
* chart that is not part of this package can use it to draw like the
|
|
24979
|
+
* charts that are.
|
|
24980
|
+
*
|
|
24981
|
+
* The style values are merged like in every component: `_system`, then
|
|
24982
|
+
* `_default`, then the style named `styleName`.
|
|
24983
|
+
*
|
|
24984
|
+
* The promise resolves after every `<bn-component-style>` and
|
|
24985
|
+
* `<bn-scaling-group>` that is inside the context at the time of the call
|
|
24986
|
+
* has loaded. Listen to `bnNotationChange` for later changes.
|
|
24987
|
+
*
|
|
24988
|
+
* @param styleName - name of a `<bn-component-style>`, like the `selected-style` of a chart
|
|
24989
|
+
*/
|
|
24990
|
+
async getNotation(styleName) {
|
|
24991
|
+
const sources = Array.from(this.element.querySelectorAll(NOTATION_SOURCE_SELECTOR));
|
|
24992
|
+
await Promise.all(sources.map((el) => { var _a, _b; return (_b = (_a = el.componentOnReady) === null || _a === void 0 ? void 0 : _a.call(el)) !== null && _b !== void 0 ? _b : Promise.resolve(); }));
|
|
24993
|
+
return index$1.buildNotation(withStyled.mergeStyleLayers(this.stores.componentStyles.state, styleName), this.stores.scalingGroups.state);
|
|
24994
|
+
}
|
|
24977
24995
|
componentWillLoad() {
|
|
24978
24996
|
// stencil needs one componenet implementing all lifecycle steps to get mixing working
|
|
24979
24997
|
}
|
|
@@ -24984,7 +25002,7 @@ const Context = class {
|
|
|
24984
25002
|
componentWillUpdate() { }
|
|
24985
25003
|
componentDidUpdate() { }
|
|
24986
25004
|
render() {
|
|
24987
|
-
return (index.h(index.Host, { key: '
|
|
25005
|
+
return (index.h(index.Host, { key: 'e2c985d07c329d796c37804f492907f0f49366d2' }, index.h("slot", { key: '90c11954a1a9365bc46ddacb2a3b8f72bbc4e523' })));
|
|
24988
25006
|
}
|
|
24989
25007
|
get element() { return index.getElement(this); }
|
|
24990
25008
|
static get watchers() { return {
|
|
@@ -28582,7 +28600,7 @@ const Table$1 = class Table {
|
|
|
28582
28600
|
const effectiveFactor = Number.isFinite(rawFactor) && rawFactor > 0 ? rawFactor : 1;
|
|
28583
28601
|
const fontSizePx = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; }) * effectiveFactor;
|
|
28584
28602
|
const state = {
|
|
28585
|
-
version:
|
|
28603
|
+
version: types.LAYOUT_STATE_VERSION,
|
|
28586
28604
|
tag: this.element.localName,
|
|
28587
28605
|
id: localFrame.resolveStandaloneId(this.element),
|
|
28588
28606
|
slot: (_b = this.element.getAttribute("slot")) !== null && _b !== void 0 ? _b : undefined,
|
|
@@ -34535,7 +34553,7 @@ const ChartTree = class {
|
|
|
34535
34553
|
const origins = localFrame.originsFor(this.element);
|
|
34536
34554
|
const fontSizePx = this.componentStyle(($) => { var _a; return ((_a = $["global"]) === null || _a === void 0 ? void 0 : _a["fontSizePx"]) || 13.3333; });
|
|
34537
34555
|
const state = {
|
|
34538
|
-
version:
|
|
34556
|
+
version: types.LAYOUT_STATE_VERSION,
|
|
34539
34557
|
tag: this.element.localName,
|
|
34540
34558
|
id: localFrame.resolveStandaloneId(this.element),
|
|
34541
34559
|
slot: (_b = this.element.getAttribute("slot")) !== null && _b !== void 0 ? _b : undefined,
|