@vuu-ui/vuu-utils 0.8.23 → 0.8.24
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/cjs/index.js +6 -6
- package/cjs/index.js.map +3 -3
- package/esm/index.js +6 -6
- package/esm/index.js.map +3 -3
- package/package.json +5 -5
- package/types/column-utils.d.ts +12 -0
- package/types/component-registry.d.ts +13 -4
- package/types/datasource-utils.d.ts +15 -4
- package/types/html-utils.d.ts +1 -0
package/esm/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var Vt=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)};var b=(e,t,r)=>(Vt(e,t,"read from private field"),r?r.call(e):t.get(e)),Te=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)};function ho(e,t,r=[],n=[]){for(let o=0,i=e.length;o<i;o++)(t(e[o],o)?r:n).push(e[o]);return[r,n]}function go(e,t,r){return e.length!==t.length?!0:r===void 0?!e.every(n=>t.includes(n)):e.some(n=>t.findIndex(o=>o[r]===n[r])===-1)}function yo(e,t,r){return e.length!==t.length?!0:r===void 0?e.some((n,o)=>t[o]!==n):e.some((n,o)=>t[o][r]!==n[r])}var Co=(e,t,r)=>{let n=e.indexOf(t);if(n===r)return e;let o=e.slice();if(n===-1)throw Error("moveItem, item to be moved not found");if(o.splice(n,1),r===-1)o.push(t);else{let i=(r>n,0);o.splice(r+i,0,t)}return o},Ee=(e,t,r)=>{if(t===r)return e;{let n=e.slice(),[o]=n.splice(t,1);if(r===-1)return n.concat(o);{let i=(r>t,0);return n.splice(r+i,0,o),n}}},Do=(e,t)=>{let r=n=>!(e!=null&&e.includes(n));return e===void 0?t:t.some(r)?t.filter(r):[]},$o=(e,t,r)=>t.filter(n=>e.findIndex(o=>r(o)===n)===-1);function xo(e,t,r){if(e)return t>=e.left&&t<e.right&&r>=e.top&&r<e.bottom}var kt=e=>typeof e=="string"?`"${e}"`:e,Ot=e=>typeof e=="string"?`"${e}"`:e,_t=e=>e.replace(/^\((.*)\)$/,"$1"),O=(e,t)=>_t(k(e,t)),k=(e,t)=>F(e)?`(${e.filters.map(n=>k(n,t)).join(` ${e.op} `)})`:K(e)?`${e.column} ${e.op} [${e.values.map(Ot).join(",")}]`:Wt(e,t);function Wt(e,t){var n;let r=(n=t==null?void 0:t.columnsByName)==null?void 0:n[e.column];return r&&_(r)?Ut(e):we(e)}var Me=1e3*60*60*24;function Ut(e){switch(e.op){case"=":{let t=[{op:">=",column:e.column,value:e.value},{op:"<",column:e.column,value:e.value+Me}];return k({op:"and",filters:t})}case"!=":{let t=[{op:"<",column:e.column,value:e.value},{op:">=",column:e.column,value:e.value+Me}];return k({op:"or",filters:t})}default:return we(e)}}var we=e=>`${e.column} ${e.op} ${kt(e.value)}`;var Re=new Set(["=","!=",">",">=","<","<=","starts","ends"]),vo=e=>e==="in"||Re.has(e),So=e=>e!==void 0&&e.name!==void 0,ve=e=>e!==void 0&&Re.has(e.op),Se=e=>e!==void 0&&(ve(e)||K(e)),K=e=>e!==void 0&&e.op==="in",Ao=e=>e.op==="in",Io=e=>e.op==="and",Fo=e=>e.op==="or",Lo=e=>ve(e)&&e.column!==void 0&&e.op!==void 0&&e.value!==void 0;function F(e){return e!==void 0&&(e.op==="and"||e.op==="or")}var Po=(e,t)=>{if(F(t)){let[r,n]=t.filters;if(r.column===e.name)return[n,O(n)];if(n.column===e.name)return[r,O(r)]}return[void 0,""]};var Nt="asc",Ae=[],Bt=100,Ht=250,Gt=50,_o={Average:2,Count:3,Distinct:6,Sum:1,High:4,Low:5};function Wo(e,t,r=0){return e.map(n=>{if(typeof n=="string")return[t[n]+r,"asc"];if(Array.isArray(n)){let[o,i]=n;return[t[o]+r,i||Nt]}else throw Error("columnUtils.mapSortCriteria invalid input")})}var Yt=["int","long","double"],Uo=e=>e===void 0?"left":Yt.includes(e)?"right":"left",Jt=e=>e==="left"||e==="right",No=e=>Jt(e)||e==="floating"||e==="",Bo=e=>{switch(e){case"double":case"int":case"long":return"number";case"boolean":return"boolean";default:return"string"}},Ho=({serverDataType:e,type:t})=>e==="int"||e==="long"||e==="double"?!0:typeof t=="string"?t==="number":typeof(t==null?void 0:t.name)=="string"?(t==null?void 0:t.name)==="number":!1,_=e=>(T(e.type)?e.type.name:e.type)==="date/time",Go=e=>typeof e.pin=="string",Qt=e=>Array.isArray(e.heading)&&e.heading.length>0,Yo=e=>e.resizing,Jo=({serverDataType:e})=>e===void 0?!1:e==="char"||e==="string",Qo=e=>({name:e}),T=e=>typeof e<"u"&&typeof e!="string",jt={},X=e=>typeof(e==null?void 0:e.name)<"u",jo=e=>typeof(e==null?void 0:e.name)<"u"&&"lookup"in e,qo=e=>typeof(e==null?void 0:e.name)<"u"&&Array.isArray(e.values),Ko=e=>T(e)&&X(e.renderer)&&Array.isArray(e.renderer.rules)&&e.renderer.rules.length>0,Le=e=>e!==void 0&&typeof(e==null?void 0:e.map)<"u";function Zo(e){let t=E.count;return e?e.reduce((r,n,o)=>(typeof n=="string"?r[n]=t+o:r[n.name]=t+o,r),{}):jt}function Xo(e){let t=[],r=E.count-2;for(let n=0;n<e.length;n+=3)t[n]=e[n]+r,t[n+1]=e[n+1],t[n+2]=e[n+2];return t}var E={IDX:0,RENDER_IDX:1,IS_LEAF:2,IS_EXPANDED:3,DEPTH:4,COUNT:5,KEY:6,SELECTED:7,count:8,PARENT_IDX:"parent_idx",IDX_POINTER:"idx_pointer",FILTER_COUNT:"filter_count",NEXT_FILTER_IDX:"next_filter_idx"},qt=(e,t)=>{let{originalIdx:r}=t;if(typeof r=="number")for(let n=0;n<e.length;n++){let{originalIdx:o=-1}=e[n];if(o>r)return e.splice(n,0,t),e}return e.push(t),e},Z=e=>{var t;if((t=e[0])!=null&&t.isGroup){let[r,...n]=e;return r.columns.forEach(o=>{qt(n,o)}),n}else return e};function Kt(e,t,r=!0){if(t&&t.length>0){let n=Z(e),[o,i]=n.reduce((l,f,g)=>{let[p,d]=l;return t.includes(f.name)?p.push({...f,originalIdx:g}):d.push(f),l},[[],[]]);if(o.length!==t.length)throw Error(`extractGroupColumn: no column definition found for all groupBy cols ${JSON.stringify(t)} `);let a=t.length,s=t.map((l,f)=>({...o.find(p=>p.name===l),groupLevel:a-f}));return[{name:"group-col",heading:["group-col"],isGroup:!0,columns:s,groupConfirmed:r,width:s.map(l=>l.width).reduce((l,f)=>l+f)+100},i]}return[null,Z(e)]}var Zt=e=>e.isGroup===!0,Xt=e=>typeof e=="string"&&e.endsWith("+"),zo=(e,t,r)=>{var n;return((n=e.type)==null?void 0:n.name)==="json"&&Xt(t[r[e.name]])},ei=e=>{var t;return((t=e.type)==null?void 0:t.name)==="json"},ti=e=>{let t=[],r=[],n=[],o=4;for(let a of e)switch(a.pin){case"left":t.push({...a,endPin:void 0,pinnedOffset:o}),o+=a.width;break;case"right":r.unshift(a);break;default:n.push(a)}t.length&&t.push({...t.pop(),endPin:!0});let i=t.length?t.concat(n):n;if(r.length){let a=[],s=0;for(let u of r)a.unshift({...u,pinnedOffset:s}),s+=u.width;return a[0].endPin=!0,i.concat(a)}else return i},ri=(e,t)=>{let r=0,n=0,o=0;for(let i of e){let{hidden:a,pin:s,width:u}=i,l=a?0:u;s==="left"?r+=l:s==="right"?n+=l:o+=l}return{pinnedWidthLeft:r+t,pinnedWidthRight:n+t,unpinnedWidth:o}},ni=e=>{if(e.some(Qt)){let t=e.reduce((i,{heading:a})=>{var s;return Math.max(i,(s=a==null?void 0:a.length)!=null?s:0)},0),r,n=[],o;for(let i=0;i<t;i++)o=[],e.forEach(({heading:a=Ae,width:s})=>{var l;let u=(l=a[i])!=null?l:"";r&&r.label===u?r.width+=s:(r={label:u,width:s},o.push(r))}),n.push(o);return n}return Ae},oi=({pin:e,pinnedOffset:t=e==="left"?0:4,width:r})=>e==="left"?{left:t,width:r,"--pin-width":`${t+r-3}px`}:e==="right"?{right:t,width:r,"--pin-width":`${t+r}px`}:{width:r},ii=(e,t,r)=>e.filter(n=>n.column!==t.name).concat({column:t.name,aggType:r}),Pe=(e,t)=>{if(F(e))return zt(e,t);if(Se(e))return e.column===t?e:void 0},zt=(e,t)=>{let{filters:r,op:n}=e,o=[];if(r.forEach(i=>{let a=Pe(i,t);a&&o.push(a)}),o.length!==0)return o.length===1?o[0]:{op:n,filters:o}},ai=(e,t,r=!0)=>{var n;if(t.length){let[o,i]=Kt(e,t,r);if(o)return[o].concat(i)}else if((n=e[0])!=null&&n.isGroup)return Z(e);return e},si=(e,t)=>e.map(r=>{let n=er(r,t);return n!==void 0?{...r,sorted:n}:r.sorted?{...r,sorted:void 0}:r}),ui=(e,{filterStruct:t})=>e.map(r=>{let n=Pe(t,r.name);return n!==void 0?{...r,filter:n}:r.filter?{...r,filter:void 0}:r}),li=e=>e.filter!==void 0,ci=e=>e.map(t=>{let{filter:r,...n}=t;return r?n:t}),er=(e,{sortDefs:t})=>{let r=t.find(n=>n.column===e.name);if(r)return t.length>1?(t.indexOf(r)+1)*(r.sortType==="A"?1:-1):r.sortType},fi=e=>{let t=e.indexOf(":");return t===-1?e:e.slice(0,t)},mi=e=>e.label?e.label:ke(e.name)?ir(e):e.name,tr=(e,t)=>{let r=e.find(n=>n.name===t);if(r)return r;{let n=e.find(o=>o.isGroup);if(n)return tr(n.columns,t)}};function di(e,t,r){let n=typeof t=="string"?e.find(o=>o.name===t):t;if(n){let o=r?{...n,...r}:n;return e.map(i=>i.name===o.name?o:i)}else throw Error("column-utils.replaceColun, column not found")}var pi=e=>e.name,hi=(e,t)=>Object.entries(t).reduce((r,[n,o])=>(r[n]=e[o],r),{}),gi=e=>Zt(e[0])&&e[0].groupConfirmed===!1,yi=(e,t,r)=>{var a;let n=[],o=0,i=!1;for(let s=0,u=0;u<e.length;u++){let l=e[u];l.hidden||(i?l.pin==="right"&&n.push(l):s+l.width<t?l.pin==="left"||s+l.width+((a=e[u+1])==null?void 0:a.width)>t?n.push(l):o+=l.width:s>r?i=!0:n.push(l),s+=l.width)}return[n,o]},Ie=e=>e.hidden!==!0,Ci=(e,t)=>e.every(Ie)?e[t]:e.filter(Ie).at(t),{DEPTH:rr,IS_LEAF:nr}=E,Di=(e,t,r)=>{let{[rr]:n,[nr]:o}=t;if(o||n>e.length)return[null,n===null?0:Math.max(0,n-1)];if(n===0)return["$root",0];{let{name:i,valueFormatter:a}=e[n-1];return[a(t[r[i]]),n-1]}},Ve=e=>{switch(e){case"int":case"long":case"double":return"number";case"boolean":return"boolean";default:return"string"}},$i=(e,t)=>{let{serverDataType:r,type:n=Ve(r)}=e;return T(n)?{...e,type:{...n,formatting:t}}:{...e,type:{name:n,formatting:t}}};function bi(e,t){return T(e.type)?{...e,type:{...e.type,name:t}}:{...e,type:t}}var xi=(e,t)=>{let{serverDataType:r,type:n=Ve(r)}=e;return T(n)?{...e,type:{...n,renderer:t}}:{...e,type:{name:n,renderer:t}}},Fe={},Ti=e=>{var t;return T(e.type)&&(t=e.type.formatting)!=null?t:Fe},Ei=e=>t=>e==null?void 0:e.includes(t.name),Mi=(e,t,r)=>{let n=(s=r)=>u=>u.name===s;if(e.findIndex(n())!==-1)throw Error(`column-utils, addColumnToSubscribedColumns column ${r} is already subscribed`);let o=t.findIndex(n());if(o===-1)throw Error(`column-utils, addColumnToSubscribedColumns column ${r} is not available`);let i={...t[o]},a=-1;for(let s=o-1;s>=0;s--){let{name:u}=t[s];if(a=e.findIndex(n(u)),a!==-1)break}if(a===-1)return[i].concat(e);{let s=[];for(let u=0;u<e.length;u++)s.push(e[u]),u===a&&(s.push(i),a=Number.MAX_SAFE_INTEGER);return s}},or=/.*:.*:.*/,ke=e=>e!==void 0&&or.test(e),z=e=>{if(ke(e.name))return e.name.split(/:=?/);throw Error(`column-utils, getCalculatedColumnDetails column name ${e.name} is not valid calculated column`)},ir=e=>z(e)[0],wi=e=>z(e)[1],Ri=e=>z(e)[2],vi=(e,t)=>{let[,r,n]=e.name.split(":");return{...e,name:`${t}:${r}:${n}`}},Si=(e,t)=>{let[r,,n]=e.name.split(":");return{...e,name:`${r}:${t}:${n}`}},Ai=(e,t)=>{let[r,n]=e.name.split(":");return{...e,name:`${r}:${n}:=${t}`}},Ii=(e,t,r)=>{let n=e.findIndex(o=>o.name===t.name);return Ee(e,n,r)};function Fi(e,t){return e.map(r=>r.name===t.name?t:r)}var Li=({columns:e,table:t},r)=>typeof r=="function"?e.map(n=>{let o=r(t.table,n.name);return o?{...n,...o}:n}):e,Pi=(e,t)=>{if(t!==void 0){let r=e.columns.find(n=>n.name===t);if(r)return r;throw Error(`getColumnByName no column '${t}' in schema for ${e.table.table}`)}};function Vi(e,t){let{availableWidth:r=0,columnLayout:n="Static",defaultWidth:o=Bt,defaultMinWidth:i=Gt,defaultMaxWidth:a=Ht}=t;if(n==="Static")return e.map(s=>typeof s.width=="number"?s:{...s,width:o});if(n==="Fit"){let{totalMinWidth:s,totalMaxWidth:u,totalWidth:l,flexCount:f}=e.reduce((g,p)=>{let{totalMinWidth:d,totalMaxWidth:y,totalWidth:D,flexCount:$}=g,{minWidth:c=i,maxWidth:h=a,width:M=o,flex:w=0}=p;return{totalMinWidth:d+c,totalMaxWidth:y+h,totalWidth:D+M,flexCount:$+w}},{totalMinWidth:0,totalMaxWidth:0,totalWidth:0,flexCount:0});if(s>r||u<r)return e;if(l>r){let g=l-r,p=f>0,d=g/(f||e.length),y=e.length,D=0,$=e.map(c=>{let{minWidth:h=i,width:M=o,flex:w=0}=c;if(p&&w===0)return c;let S=M-d;return S<h?(y-=1,D+=h-S,{...c,width:h}):{...c,width:S}});return D===0||(d=D/y,$=$.map(c=>{let h=c.width-d;return c.width!==c.minWidth?{...c,width:h}:c})),$}else if(l<r){let g=r-l,p=f>0,d=g/(f||e.length),y=e.map(c=>{let{maxWidth:h=a,width:M=o,flex:w=0}=c;if(p&&w===0)return c;let S=M+d;return S>h?{...c,width:h}:{...c,width:S,canStretch:!0}}),D=g-y.reduce((c,h)=>c+h.width,0),$=y.filter(c=>c.canStretch).length;return D>$&&(d=D/$,y=y.map(c=>{if(c.canStretch){let h=Math.min(c.width+d);return{...c,width:h}}else return c})),y.map(({canStretch:c,...h})=>h)}}return e}var ki=(e,t)=>e.column===t.column&&e.column.valueFormatter(e.row[e.columnMap[e.column.name]])===t.column.valueFormatter(t.row[t.columnMap[t.column.name]]);var Oe=e=>{var t,r;if(((t=globalThis.document)==null?void 0:t.cookie)!==void 0)return(r=globalThis.document.cookie.split("; ").find(n=>n.startsWith(`${e}=`)))==null?void 0:r.split("=")[1]};var L=new Map,W=new Map,_e=new Map,We=new Map,Ue=new Map,ee=new Map,ar=(e,t)=>e===void 0||e==="private"?!0:Array.isArray(e)?e.includes(t):e===t,sr=(e,t)=>e==="cell-renderer",ur=(e,t)=>e==="column-header-content-renderer",lr=(e,t)=>e==="column-header-label-renderer",cr=(e,t)=>e==="cell-config-panel",fr=(e,t)=>e==="data-edit-validator";function Ui(e,t,r="cell-renderer",n){sr(r,t)?L.set(e,t):ur(r,t)||lr(r,t)?W.set(e,t):cr(r,t)?We.set(e,t):fr(r,t)&&Ue.set(e,t),n&&ee.set(e,n)}var Ni=(e,t)=>{_e.set(e,t)},Bi=e=>{let r=Array.from(L.keys()).map(n=>({name:n,...ee.get(n)}));return e?r.filter(n=>ar(n.serverDataType,e)):r},Hi=e=>ee.get(e);function Gi(e){return mr(e)}function Yi(e){if(e.colHeaderContentRenderer)return W.get(e.colHeaderContentRenderer)}function Ji(e){if(e.colHeaderLabelRenderer)return W.get(e.colHeaderLabelRenderer)}function mr(e){if(T(e.type)){let{renderer:t}=e.type;if(X(t))return L.get(t.name)}else{if(e.serverDataType==="boolean")return L.get("checkbox-cell");if(e.editable)return L.get("input-cell")}}function Qi(e=""){return _e.get(e)}function ji(e){return We.get(e)}function qi(e){return Ue.get(e)}var Zi={from:0,to:0},Xi=(e,t)=>(e==null?void 0:e.from)===(t==null?void 0:t.from)&&(e==null?void 0:e.to)===(t==null?void 0:t.to);function zi({from:e,to:t},r=0,n=Number.MAX_SAFE_INTEGER){if(e===0&&t===0)return{from:e,to:t};if(r===0)return n<e?{from:0,to:0}:{from:e,to:Math.min(t,n)};if(e===0)return{from:e,to:Math.min(t+r,n)};{let o=e-r<0,i=n-(t+r)<0;return o&&i?{from:0,to:n}:o?{from:0,to:t+r}:i?{from:Math.max(0,e-r),to:n}:{from:e-r,to:t+r}}}function ea({from:e,to:t,bufferSize:r=0}){return{from:0,to:t-e,bufferSize:r,reset:!0}}var dr=(e,{from:t,to:r})=>e>=t&&e<r,ta=({from:e,to:t},r)=>{let{from:n,to:o}=r,i=n>=t||o<=e,a=n<e&&o>t;return i||a?r:o>t?{from:t,to:o}:{from:n,to:e}},U=class e{constructor(t,r){this.from=t,this.to=r}isWithin(t){return dr(t,this)}overlap(t,r){return t>=this.to||r<this.from?[0,0]:[Math.max(t,this.from),Math.min(r,this.to)]}copy(){return new e(this.from,this.to)}};var{KEY:pr}=E,Ne=class{constructor({from:t,to:r}){this.rowCount=0;this.setRowCount=t=>{t<this.data.length&&(this.data.length=t),this.rowCount=t};this.range=new U(t,r),this.data=new Array(r-t)}add(t){let[r]=t;if(this.isWithinRange(r)){let n=r-this.range.from,o=this.data[n]!==void 0;return this.data[n]=t,o}else return!1}getAtIndex(t){return this.range.isWithin(t)&&this.data[t-this.range.from]!=null?this.data[t-this.range.from]:void 0}getByKey(t){return this.data.find(r=>r[pr]===t)}isWithinRange(t){return this.range.isWithin(t)&&t<=this.rowCount}setRange(t,r){if(t!==this.range.from||r!==this.range.to){let[n,o]=this.range.overlap(t,r),i=new Array(r-t);for(let a=n;a<o;a++){let s=this.getAtIndex(a);if(s){let u=a-t;i[u]=s}}this.data=i,this.range.from=t,this.range.to=r}}hasData(t,r){let n=this.range.from,o=t-n,i=Math.min(r-n-1,this.rowCount-1);return this.data[o]!==void 0&&this.data[i]!==void 0}getData(t,r){var a;let{from:n}=this.range,o=Math.max(0,t-n),i=Math.min(r-n,(a=this.rowCount)!=null?a:r);return this.data.slice(o,i)}};var aa={horizontal:{positionProp:"left",sizeProp:"width"},vertical:{positionProp:"top",sizeProp:"height"}};var te="up1",re="up2",ne="down1",oe="down2",ua=e=>typeof e=="number"&&isFinite(e),Be={},la=(e=Be,t=Be)=>{let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(o=>e[o]===t[o])};function ca(e,t,r,n){if(e===void 0||!isFinite(e)||r===void 0||t===void 0)return"";{let o=e-r;return o&&typeof n=="number"&&(o=+e.toFixed(n)-+r.toFixed(n)),o?t===""?o<0?ne:te:o>0?t===ne||t===oe||t===re?te:re:t===te||t===re||t===oe?ne:oe:""}}var hr=e=>e.type==="vuu-links",ma=e=>e.type==="vuu-link-created",da=e=>e.type==="vuu-link-removed",gr=e=>e.type==="vuu-menu",pa=e=>gr(e)||hr(e);var yr={filter:""},Cr={sortDefs:[]},ga={aggregations:[],columns:[],filter:yr,groupBy:[],sort:Cr},Dr=({aggregations:e},{aggregations:t})=>e===void 0&&(t==null?void 0:t.length)===0||t===void 0&&(e==null?void 0:e.length)===0,$r=({columns:e},{columns:t})=>e===void 0&&(t==null?void 0:t.length)===0||t===void 0&&(e==null?void 0:e.length)===0,br=({filter:e},{filter:t})=>e===void 0&&(t==null?void 0:t.filter)===""||t===void 0&&(e==null?void 0:e.filter)==="",xr=({groupBy:e},{groupBy:t})=>e===void 0&&(t==null?void 0:t.length)===0||t===void 0&&(e==null?void 0:e.length)===0,Tr=({sort:e},{sort:t})=>e===void 0&&(t==null?void 0:t.sortDefs.length)===0||t===void 0&&(e==null?void 0:e.sortDefs.length)===0,P=(e,t)=>e===t?!0:e===void 0&&t===void 0,Er=(e,t)=>{let{aggregations:r}=e,{aggregations:n}=t;return P(r,n)||Dr(e,t)?!1:r===void 0||n===void 0||r.length!==n.length?!0:r.some(({column:o,aggType:i},a)=>o!==n[a].column||i!==n[a].aggType)},Mr=(e,t)=>{let{columns:r}=e,{columns:n}=t;return P(r,n)||$r(e,t)?!1:r===void 0||n===void 0||(r==null?void 0:r.length)!==(n==null?void 0:n.length)?!0:r.some((o,i)=>o!==(n==null?void 0:n[i]))},wr=(e,t)=>{var r,n;return br(e,t)?!1:((r=e.filter)==null?void 0:r.filter)!==((n=t.filter)==null?void 0:n.filter)},Rr=(e,t)=>{let{groupBy:r}=e,{groupBy:n}=t;return P(r,n)||xr(e,t)?!1:r===void 0||n===void 0||(r==null?void 0:r.length)!==(n==null?void 0:n.length)?!0:r.some((o,i)=>o!==(n==null?void 0:n[i]))},vr=(e,t)=>{let{sort:r}=e,{sort:n}=t;return P(r,n)||Tr(e,t)?!1:r===void 0||n===void 0||(r==null?void 0:r.sortDefs.length)!==(n==null?void 0:n.sortDefs.length)?!0:r.sortDefs.some(({column:o,sortType:i},a)=>o!==n.sortDefs[a].column||i!==n.sortDefs[a].sortType)},Sr=()=>!1,ya=(e,t)=>P(e,t)?!1:e===void 0||t===void 0?!0:Er(e,t)||Mr(e,t)||wr(e,t)||Rr(e,t)||vr(e,t)||Sr(e,t),Ca=e=>e!==void 0&&e.groupBy!==void 0&&e.groupBy.length>0,Da=e=>(e==null?void 0:e.filter)!==void 0&&e.filter.filter.length>0,$a=e=>{var t;return(e==null?void 0:e.sort)!==void 0&&Array.isArray((t=e.sort)==null?void 0:t.sortDefs)&&e.sort.sortDefs.length>0},ba=e=>typeof e.getTypeaheadSuggestions=="function",xa=e=>e.type==="TABLE_META_RESP",Ta=e=>e.type==="connection-status",Ea=e=>e.type==="connection-metrics",Ma=e=>typeof e.result<"u",wa=e=>e!==void 0&&"error"in e,Ra=e=>e!=null&&"action"in e,va=e=>"viewport"in e,Sa=e=>{if(e.aggregations&&e.columns&&e.filter&&e.groupBy&&e.sort)return e;{let{aggregations:t=[],columns:r=[],filter:n={filter:""},groupBy:o=[],sort:i={sortDefs:[]},visualLink:a}=e;return{aggregations:t,columns:r,filter:n,groupBy:o,sort:i,visualLink:a}}};function He(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ie(e,t,r){He(e,t),t.set(e,r)}function ae(e,t){return e-t*Math.floor(e/t)}var qe=1721426;function N(e,t,r,n){t=pe(e,t);let o=t-1,i=-2;return r<=2?i=0:H(t)&&(i=-1),qe-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*r-362)/12+i+n)}function H(e){return e%4===0&&(e%100!==0||e%400===0)}function pe(e,t){return e==="BC"?1-t:t}function Ar(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}var Ir={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},A=class{fromJulianDay(t){let r=t,n=r-qe,o=Math.floor(n/146097),i=ae(n,146097),a=Math.floor(i/36524),s=ae(i,36524),u=Math.floor(s/1461),l=ae(s,1461),f=Math.floor(l/365),g=o*400+a*100+u*4+f+(a!==4&&f!==4?1:0),[p,d]=Ar(g),y=r-N(p,d,1,1),D=2;r<N(p,d,3,1)?D=0:H(d)&&(D=1);let $=Math.floor(((y+D)*12+373)/367),c=r-N(p,d,$,1)+1;return new V(p,d,$,c)}toJulianDay(t){return N(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Ir[H(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return H(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}};function Ke(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Fr(e,t){return Ge(e)-Ge(t)}function Ge(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var se=null;function Ze(){return se==null&&(se=new Intl.DateTimeFormat().resolvedOptions().timeZone),se}function Ye(e){e=he(e,new A);let t=pe(e.era,e.year);return Xe(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Xe(e,t,r,n,o,i,a){let s=new Date;return s.setUTCHours(n,o,i,a),s.setUTCFullYear(e,t-1,r),s.getTime()}function Je(e,t){if(t==="UTC")return 0;if(e>0&&t===Ze())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:n,day:o,hour:i,minute:a,second:s}=ze(e,t);return Xe(r,n,o,i,a,s,0)-Math.floor(e/1e3)*1e3}var Qe=new Map;function ze(e,t){let r=Qe.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Qe.set(t,r));let n=r.formatToParts(new Date(e)),o={};for(let i of n)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}var je=864e5;function Lr(e,t,r,n){return(r===n?[r]:[r,n]).filter(i=>Pr(e,t,i))}function Pr(e,t,r){let n=ze(r,t);return e.year===n.year&&e.month===n.month&&e.day===n.day&&e.hour===n.hour&&e.minute===n.minute&&e.second===n.second}function Vr(e,t,r="compatible"){let n=tt(e);if(t==="UTC")return Ye(n);if(t===Ze()&&r==="compatible"){n=he(n,new A);let u=new Date,l=pe(n.era,n.year);return u.setFullYear(l,n.month-1,n.day),u.setHours(n.hour,n.minute,n.second,n.millisecond),u.getTime()}let o=Ye(n),i=Je(o-je,t),a=Je(o+je,t),s=Lr(n,t,o-i,o-a);if(s.length===1)return s[0];if(s.length>1)switch(r){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(o-i,o-a);case"compatible":case"later":return Math.max(o-i,o-a);case"reject":throw new RangeError("No such absolute time found")}}function et(e,t,r="compatible"){return new Date(Vr(e,t,r))}function tt(e,t){let r=0,n=0,o=0,i=0;if("timeZone"in e)({hour:r,minute:n,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:n,second:o,millisecond:i}=t),new de(e.calendar,e.era,e.year,e.month,e.day,r,n,o,i)}function he(e,t){if(e.calendar.identifier===t.identifier)return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,I(n),n}function ge(e,t){let r=e.copy(),n="hour"in r?Nr(r,t):0;fe(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,me(r),rt(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=n,kr(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let o=r.calendar.getYearsInEra(r);if(r.year>o){var i,a;let u=(a=(i=r.calendar).isInverseEra)===null||a===void 0?void 0:a.call(i,r);r.year=o,r.month=u?1:r.calendar.getMonthsInYear(r),r.day=u?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let s=r.calendar.getMonthsInYear(r);return r.month>s&&(r.month=s,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function fe(e,t){var r,n;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function me(e){for(;e.month<1;)fe(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,fe(e,1)}function kr(e){for(;e.day<1;)e.month--,me(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,me(e)}function rt(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function I(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),rt(e)}function Or(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function nt(e,t){return ge(e,Or(t))}function ot(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),I(r),r}function _r(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),Ur(r),r}function Wr(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=B(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=B(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=B(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=B(e.hour,24),t}function Ur(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function B(e,t){let r=e%t;return r<0&&(r+=t),r}function Nr(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Wr(e)}function it(e,t,r,n){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),u=s.indexOf(e.era);if(u<0)throw new Error("Invalid era: "+e.era);u=R(u,r,0,s.length-1,n==null?void 0:n.round),o.era=s[u],I(o);break}case"year":var i,a;!((a=(i=o.calendar).isInverseEra)===null||a===void 0)&&a.call(i,o)&&(r=-r),o.year=R(e.year,r,-1/0,9999,n==null?void 0:n.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=R(e.month,r,1,e.calendar.getMonthsInYear(e),n==null?void 0:n.round);break;case"day":o.day=R(e.day,r,1,e.calendar.getDaysInMonth(e),n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),I(o),o}function Br(e,t,r,n){let o=e.copy();switch(t){case"hour":{let i=e.hour,a=0,s=23;if((n==null?void 0:n.hourCycle)===12){let u=i>=12;a=u?12:0,s=u?23:11}o.hour=R(i,r,a,s,n==null?void 0:n.round);break}case"minute":o.minute=R(e.minute,r,0,59,n==null?void 0:n.round);break;case"second":o.second=R(e.second,r,0,59,n==null?void 0:n.round);break;case"millisecond":o.millisecond=R(e.millisecond,r,0,999,n==null?void 0:n.round);break;default:throw new Error("Unsupported field "+t)}return o}function R(e,t,r,n,o=!1){if(o){e+=Math.sign(t),e<r&&(e=n);let i=Math.abs(t);t>0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>n&&(e=r)}else e+=t,e<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}var Hr=["hours","minutes","seconds"],Va=["years","months","weeks","days",...Hr];function Gr(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function at(e){let t=he(e,new A);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Yr(e){return`${at(e)}T${Gr(e)}`}function st(e){let t=typeof e[0]=="object"?e.shift():new A,r;if(typeof e[0]=="string")r=e.shift();else{let a=t.getEras();r=a[a.length-1]}let n=e.shift(),o=e.shift(),i=e.shift();return[t,r,n,o,i]}var Jr=new WeakMap,V=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(t){return ge(this,t)}subtract(t){return nt(this,t)}set(t){return ot(this,t)}cycle(t,r,n){return it(this,t,r,n)}toDate(t){return et(this,t)}toString(){return at(this)}compare(t){return Ke(this,t)}constructor(...t){ie(this,Jr,{writable:!0,value:void 0});let[r,n,o,i,a]=st(t);this.calendar=r,this.era=n,this.year=o,this.month=i,this.day=a,I(this)}};var Qr=new WeakMap,de=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ge(this,t)}subtract(t){return nt(this,t)}set(t){return ot(_r(this,t),t)}cycle(t,r,n){switch(t){case"era":case"year":case"month":case"day":return it(this,t,r,n);default:return Br(this,t,r,n)}}toDate(t,r){return et(this,t,r)}toString(){return Yr(this)}compare(t){let r=Ke(this,t);return r===0?Fr(this,tt(t)):r}constructor(...t){ie(this,Qr,{writable:!0,value:void 0});let[r,n,o,i,a]=st(t);this.calendar=r,this.era=n,this.year=o,this.month=i,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,I(this)}};var ut=1080,jr=24*ut,qr=29,Kr=12*ut+793,ka=qr*jr+Kr;var ue=new Map,G=class{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,r){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} \u2013 ${this.formatter.format(r)}`}formatRangeToParts(t,r){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(t),o=this.formatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" \u2013 ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return zr()&&(this.resolvedHourCycle||(this.resolvedHourCycle=en(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,r={}){this.formatter=lt(t,r),this.options=r}},Zr={true:{ja:"h11"},false:{}};function lt(e,t={}){if(typeof t.hour12=="boolean"&&Xr()){t={...t};let o=Zr[String(t.hour12)][e.split("-")[0]],i=t.hour12?"h12":"h23";t.hourCycle=o!=null?o:i,delete t.hour12}let r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(ue.has(r))return ue.get(r);let n=new Intl.DateTimeFormat(e,t);return ue.set(r,n),n}var le=null;function Xr(){return le==null&&(le=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),le}var ce=null;function zr(){return ce==null&&(ce=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),ce}function en(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let r=lt(e,{...t,timeZone:void 0}),n=parseInt(r.formatToParts(new Date(2020,2,3,0)).find(i=>i.type==="hour").value,10),o=parseInt(r.formatToParts(new Date(2020,2,3,23)).find(i=>i.type==="hour").value,10);if(n===0&&o===23)return"h23";if(n===24&&o===23)return"h24";if(n===0&&o===11)return"h11";if(n===12&&o===11)return"h12";throw new Error("Unexpected hour cycle result")}function ct(e){return e!=null}var ft={hour:"2-digit",minute:"2-digit",second:"2-digit"},tn={"hh:mm:ss":{locale:"en-GB",options:{...ft,hour12:!1}},"hh:mm:ss a":{locale:"en-GB",options:{...ft,hour12:!0}}},v={day:"2-digit",month:"2-digit",year:"numeric"},rn={"dd.mm.yyyy":{locale:"de-De",options:{...v}},"dd/mm/yyyy":{locale:"en-GB",options:{...v}},"dd MMM yyyy":{locale:"en-GB",options:{...v,month:"short"}},"dd MMMM yyyy":{locale:"en-GB",options:{...v,month:"long"}},"mm/dd/yyyy":{locale:"en-US",options:{...v}},"MMM dd, yyyy":{locale:"en-US",options:{...v,month:"short"}},"MMMM dd, yyyy":{locale:"en-US",options:{...v,month:"long"}}};function nn(e){return[e.date?rn[e.date]:null,e.time?tn[e.time]:null]}function mt(e){let t=nn(e).filter(ct).map(r=>on(r.locale,r.options));return r=>t.map(n=>n.format(r)).join(" ")}function on(e,t){return new G(e,t)}var dt=["dd.mm.yyyy","dd/mm/yyyy","dd MMM yyyy","dd MMMM yyyy","mm/dd/yyyy","MMM dd, yyyy","MMMM dd, yyyy"],pt=["hh:mm:ss","hh:mm:ss a"],an={date:dt,time:pt},sn=e=>dt.includes(e),un=e=>pt.includes(e),ye=e=>sn(e==null?void 0:e.date)||un(e==null?void 0:e.time);function ln(e){return new V(e.getFullYear(),e.getMonth()+1,e.getDate())}var ht={time:"hh:mm:ss",date:"dd.mm.yyyy"},gt={date:ht.date};function Ce(e){return T(e)&&e.formatting&&ye(e.formatting.pattern)?e.formatting.pattern:gt}var cn=["error","warn","info","debug"],fn=e=>typeof e=="string"&&cn.includes(e),mn="error",Y=()=>{},dn="error",{loggingLevel:J=dn}=pn(),yt=e=>{let t=J==="debug",r=t||J==="info",n=r||J==="warn",o=n||J==="error",i=r?l=>console.info(`[${e}] ${l}`):Y,a=n?l=>console.warn(`[${e}] ${l}`):Y,s=t?l=>console.debug(`[${e}] ${l}`):Y;return{errorEnabled:o,error:o?l=>console.error(`[${e}] ${l}`):Y}};function pn(){return typeof loggingSettings<"u"?loggingSettings:{loggingLevel:Ct()}}function Ct(){let e=Oe("vuu-logging-level");return fn(e)?e:mn}var ts=()=>`const loggingSettings = { loggingLevel: "${Ct()}"};`;var{debug:hn,debugEnabled:gn}=yt("range-monitor"),Dt=class{constructor(t){this.source=t;this.range={from:0,to:0};this.timestamp=0}isSet(){return this.timestamp!==0}set({from:t,to:r}){let{timestamp:n}=this;if(this.range.from=t,this.range.to=r,this.timestamp=performance.now(),n)gn&&hn(`<${this.source}> [${t}-${r}], ${(this.timestamp-n).toFixed(0)} ms elapsed`);else return 0}};var us=(e,t,r)=>{let n=document.createElement(e);return t&&(n.className=t),r&&(n.textContent=r),n},yn=(e,t)=>{if(e){if(e.hasAttribute("tabindex")){let n=parseInt(e.getAttribute("tabindex"));if(!isNaN(n)&&(t===void 0||n===t))return e}let r=typeof t=="number"?e.querySelector(`[tabindex="${t}"]`):e.querySelector("[tabindex]");if(r)return r}},ls=e=>{if(e){let t=parseInt(e.dataset.index||"");if(!isNaN(t))return t}return-1},Cn=(e,t)=>e.closest(`[data-${t}]`),cs=e=>Cn(e,"index");function fs(e,t,r=!1){if(e===null&&r)throw Error("html-utils getElementByDataIndex, container is null");let n=e==null?void 0:e.querySelector(`[data-index="${t}"]`);if(n)return n;if(r)throw Error("html-utils getElementByDataIndex, Item not found with data-index='${index}'")}var ms=(e,t)=>{requestAnimationFrame(()=>{let r=yn(e,t);r&&r.focus()})},ds=e=>{let t=e==null?void 0:e.closest("[data-index]");return!(!t||t.ariaDisabled||t.dataset.selectable==="false"||t.querySelector('[data-selectable="false"],[aria-disabled="true"]'))},De;function ps(){if(De===void 0){let e=document.createElement("div");e.className="scrollable-content",e.style.width="50px",e.style.height="50px",e.style.overflowY="scroll",e.style.position="absolute",e.style.top="-200px",e.style.left="-200px";let t=document.createElement("div");t.style.height="100px",t.style.width="100%",e.appendChild(t),document.body.appendChild(e);let r=e.offsetWidth,n=t.offsetWidth;document.body.removeChild(e),De=r-n,e=null}return De}var hs=(e,t)=>{let r=new MouseEvent(t,{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(r)},gs=(e,t)=>{let r=new Event(t,{bubbles:!0,cancelable:!0});e.dispatchEvent(r)};function $t(e){return Array.isArray(e)}function Dn(e){return!Array.isArray(e)}var C,bt=class{constructor(){Te(this,C,new Map)}addListener(t,r){let n=b(this,C).get(t);n?$t(n)?n.push(r):Dn(n)&&b(this,C).set(t,[n,r]):b(this,C).set(t,r)}removeListener(t,r){if(!b(this,C).has(t))return;let n=b(this,C).get(t),o=-1;if(n===r)b(this,C).delete(t);else if(Array.isArray(n)){for(let i=length;i-- >0;)if(n[i]===r){o=i;break}if(o<0)return;n.length===1?(n.length=0,b(this,C).delete(t)):n.splice(o,1)}}removeAllListeners(t){t&&b(this,C).has(t)?b(this,C).delete(t):t===void 0&&b(this,C).clear()}emit(t,...r){if(b(this,C)){let n=b(this,C).get(t);n&&this.invokeHandler(n,r)}}once(t,r){let n=(...o)=>{this.removeListener(t,n),r(...o)};this.on(t,n)}on(t,r){this.addListener(t,r)}hasListener(t,r){let n=b(this,C).get(t);return Array.isArray(n)?n.includes(r):n===r}invokeHandler(t,r){if($t(t))t.slice().forEach(n=>this.invokeHandler(n,r));else switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;default:t.call(null,...r)}}};C=new WeakMap;var Q="\u2008",m="\u2007";var xt={DIGIT:m,TWO_DIGITS:m+m,THREE_DIGITS:m+m+m,FULL_PADDING:[null,Q+m,Q+m+m,Q+m+m+m,Q+m+m+m+m]},$n={DIGIT:"0",TWO_DIGITS:"00",THREE_DIGITS:"000",FULL_PADDING:[null,"0","00","000","0000"]};function bn(e,t=6){return(xn+e).slice(-t)}var xn=m+m+m+m+m+m+m+m+m,$e={Right:"right",Center:"center",Left:"left"};function Tt(e,t,r){let n=e.length,o=t-n;if(o>0)o===1?e=e+r.DIGIT:o===2?e=e+r.TWO_DIGITS:o===3&&(e=e+r.THREE_DIGITS);else if(o<0&&(e=e.slice(0,t),n=t),r===xt&&e.charAt(n-1)==="0")return e=e.replace(/0+$/,""),Tt(e,t,r);return e}function Et(e,t=$e.Right,r=4,n,o){if(e===void 0||typeof e!="number"||isNaN(e))return"";let i,a,s,[u,l=""]=e.toString().split("."),f=l.length;return i=parseFloat(u).toLocaleString(),t===$e.Left&&o&&(i=bn(i)),r===-1||f===r?a=l:f>r?a=parseFloat("0."+l).toFixed(r).slice(2):(s=n?$n:o&&t!==$e.Left?xt:null)?f===0?a=s.FULL_PADDING[r]:a=Tt(l,r,s):a=l,i+(a?"."+a:"")}var Tn={},Mt=e=>e==null?"":typeof e=="string"?e:e.toString(),En=e=>{let t=Ce(e.type),r=mt(t);return n=>typeof n=="number"&&n!==0?r(new Date(n)):""},Mn=({align:e="right",type:t})=>{var r;if(t===void 0||typeof t=="string")return Mt;{let{alignOnDecimals:n=!1,decimals:o,zeroPad:i=!1}=(r=t.formatting)!=null?r:Tn;return a=>{if(typeof a=="string"&&(a.startsWith("\u03A3")||a.startsWith("[")))return a;let s=typeof a=="number"?a:typeof a=="string"?parseFloat(a):void 0;return Et(s,e,o,i,n)}}},wn=e=>t=>{var r;return(r=e[t])!=null?r:""},Es=(e,t=e.serverDataType)=>{if(_(e))return En(e);let{type:r}=e;return T(r)&&Le(r==null?void 0:r.renderer)?wn(r.renderer.map):t==="string"||t==="char"?n=>n:t==="double"?Mn(e):Mt};var ws=()=>`hw-${Math.round(Math.random()*1e5)}`;function vs(e,t){return e?e.concat(t.name):[t.name]}var As=e=>e.length===1,Is=e=>e.key==='"'||e.key==="'";function Ls(e,t){if(!e){let r=new Error(t);throw r.name="Invariant Violation",r.framesToPop=1,r}}var Rn=e=>Object.prototype.toString.call(e)==="[object Object]";function Vs(e){return typeof e=="string"?e:Rn(e)?Object.prototype.hasOwnProperty.call(e,"label")?String(e.label):(console.warn(["itemToString: you've likely forgotten to set the label prop on the item object.","You can also provide your own `itemToString` implementation."].join(`
|
|
2
|
-
`)),""):String(e)}var{COUNT:
|
|
1
|
+
var Ut=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var b=(e,t,n)=>(Ut(e,t,"read from private field"),n?n.call(e):t.get(e)),Me=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)};function xo(e,t,n=[],r=[]){for(let o=0,i=e.length;o<i;o++)(t(e[o],o)?n:r).push(e[o]);return[n,r]}function To(e,t,n){return e.length!==t.length?!0:n===void 0?!e.every(r=>t.includes(r)):e.some(r=>t.findIndex(o=>o[n]===r[n])===-1)}function Mo(e,t,n){return e.length!==t.length?!0:n===void 0?e.some((r,o)=>t[o]!==r):e.some((r,o)=>t[o][n]!==r[n])}var Eo=(e,t,n)=>{let r=e.indexOf(t);if(r===n)return e;let o=e.slice();if(r===-1)throw Error("moveItem, item to be moved not found");if(o.splice(r,1),n===-1)o.push(t);else{let i=(n>r,0);o.splice(n+i,0,t)}return o},Ee=(e,t,n)=>{if(t===n)return e;{let r=e.slice(),[o]=r.splice(t,1);if(n===-1)return r.concat(o);{let i=(n>t,0);return r.splice(n+i,0,o),r}}},wo=(e,t)=>{let n=r=>!(e!=null&&e.includes(r));return e===void 0?t:t.some(n)?t.filter(n):[]},Ro=(e,t,n)=>t.filter(r=>e.findIndex(o=>n(o)===r)===-1);function So(e,t,n){if(e)return t>=e.left&&t<e.right&&n>=e.top&&n<e.bottom}var Wt=e=>typeof e=="string"?`"${e}"`:e,Nt=e=>typeof e=="string"?`"${e}"`:e,Ht=e=>e.replace(/^\((.*)\)$/,"$1"),O=(e,t)=>Ht(k(e,t)),k=(e,t)=>F(e)?`(${e.filters.map(r=>k(r,t)).join(` ${e.op} `)})`:K(e)?`${e.column} ${e.op} [${e.values.map(Nt).join(",")}]`:Bt(e,t);function Bt(e,t){var r;let n=(r=t==null?void 0:t.columnsByName)==null?void 0:r[e.column];return n&&_(n)?Gt(e):Re(e)}var we=1e3*60*60*24;function Gt(e){switch(e.op){case"=":{let t=[{op:">=",column:e.column,value:e.value},{op:"<",column:e.column,value:e.value+we}];return k({op:"and",filters:t})}case"!=":{let t=[{op:"<",column:e.column,value:e.value},{op:">=",column:e.column,value:e.value+we}];return k({op:"or",filters:t})}default:return Re(e)}}var Re=e=>`${e.column} ${e.op} ${Wt(e.value)}`;var ve=new Set(["=","!=",">",">=","<","<=","starts","ends"]),Vo=e=>e==="in"||ve.has(e),ko=e=>e!==void 0&&e.name!==void 0,Se=e=>e!==void 0&&ve.has(e.op),Ae=e=>e!==void 0&&(Se(e)||K(e)),K=e=>e!==void 0&&e.op==="in",Oo=e=>e.op==="in",_o=e=>e.op==="and",Uo=e=>e.op==="or",Wo=e=>Se(e)&&e.column!==void 0&&e.op!==void 0&&e.value!==void 0;function F(e){return e!==void 0&&(e.op==="and"||e.op==="or")}var No=(e,t)=>{if(F(t)){let[n,r]=t.filters;if(n.column===e.name)return[r,O(r)];if(r.column===e.name)return[n,O(n)]}return[void 0,""]};var Yt="asc",Ie=[],Jt=100,Qt=250,qt=50,Yo={Average:2,Count:3,Distinct:6,Sum:1,High:4,Low:5};function Jo(e,t,n=0){return e.map(r=>{if(typeof r=="string")return[t[r]+n,"asc"];if(Array.isArray(r)){let[o,i]=r;return[t[o]+n,i||Yt]}else throw Error("columnUtils.mapSortCriteria invalid input")})}var jt=["int","long","double"],Qo=e=>e===void 0?"left":jt.includes(e)?"right":"left",Kt=e=>e==="left"||e==="right",qo=e=>Kt(e)||e==="floating"||e==="",Zt=["long","double","int","string","char","boolean"],jo=e=>Zt.includes(e),Ko=e=>{switch(e){case"double":case"int":case"long":return"number";case"boolean":return"boolean";default:return"string"}},Zo=({serverDataType:e,type:t})=>e==="int"||e==="long"||e==="double"?!0:typeof t=="string"?t==="number":typeof(t==null?void 0:t.name)=="string"?(t==null?void 0:t.name)==="number":!1,_=e=>(T(e.type)?e.type.name:e.type)==="date/time",Xo=e=>typeof e.pin=="string",Xt=e=>Array.isArray(e.heading)&&e.heading.length>0,zo=e=>e.resizing,ei=({serverDataType:e})=>e===void 0?!1:e==="char"||e==="string",ti=e=>({name:e}),T=e=>typeof e<"u"&&typeof e!="string",zt={},z=e=>typeof(e==null?void 0:e.name)<"u",ni=e=>typeof(e==null?void 0:e.name)<"u"&&"lookup"in e,ri=e=>typeof(e==null?void 0:e.name)<"u"&&Array.isArray(e.values),oi=e=>T(e)&&z(e.renderer)&&Array.isArray(e.renderer.rules)&&e.renderer.rules.length>0,Pe=e=>e!==void 0&&typeof(e==null?void 0:e.map)<"u";function ii(e){let t=M.count;return e?e.reduce((n,r,o)=>(typeof r=="string"?n[r]=t+o:n[r.name]=t+o,n),{}):zt}function ai(e){let t=[],n=M.count-2;for(let r=0;r<e.length;r+=3)t[r]=e[r]+n,t[r+1]=e[r+1],t[r+2]=e[r+2];return t}var Z=6,M={IDX:0,RENDER_IDX:1,IS_LEAF:2,IS_EXPANDED:3,DEPTH:4,COUNT:5,KEY:Z,SELECTED:7,count:8,PARENT_IDX:"parent_idx",IDX_POINTER:"idx_pointer",FILTER_COUNT:"filter_count",NEXT_FILTER_IDX:"next_filter_idx"},en=(e,t)=>{let{originalIdx:n}=t;if(typeof n=="number")for(let r=0;r<e.length;r++){let{originalIdx:o=-1}=e[r];if(o>n)return e.splice(r,0,t),e}return e.push(t),e},X=e=>{var t;if((t=e[0])!=null&&t.isGroup){let[n,...r]=e;return n.columns.forEach(o=>{en(r,o)}),r}else return e};function tn(e,t,n=!0){if(t&&t.length>0){let r=X(e),[o,i]=r.reduce((l,f,g)=>{let[p,d]=l;return t.includes(f.name)?p.push({...f,originalIdx:g}):d.push(f),l},[[],[]]);if(o.length!==t.length)throw Error(`extractGroupColumn: no column definition found for all groupBy cols ${JSON.stringify(t)} `);let a=t.length,s=t.map((l,f)=>({...o.find(p=>p.name===l),groupLevel:a-f}));return[{name:"group-col",heading:["group-col"],isGroup:!0,columns:s,groupConfirmed:n,width:s.map(l=>l.width).reduce((l,f)=>l+f)+100},i]}return[null,X(e)]}var nn=e=>e.isGroup===!0,rn=e=>typeof e=="string"&&e.endsWith("+"),si=(e,t,n)=>{var r;return((r=e.type)==null?void 0:r.name)==="json"&&rn(t[n[e.name]])},ui=e=>{var t;return((t=e.type)==null?void 0:t.name)==="json"},li=e=>{let t=[],n=[],r=[],o=4;for(let a of e)switch(a.pin){case"left":t.push({...a,endPin:void 0,pinnedOffset:o}),o+=a.width;break;case"right":n.unshift(a);break;default:r.push(a)}t.length&&t.push({...t.pop(),endPin:!0});let i=t.length?t.concat(r):r;if(n.length){let a=[],s=0;for(let u of n)a.unshift({...u,pinnedOffset:s}),s+=u.width;return a[0].endPin=!0,i.concat(a)}else return i},ci=(e,t)=>{let n=0,r=0,o=0;for(let i of e){let{hidden:a,pin:s,width:u}=i,l=a?0:u;s==="left"?n+=l:s==="right"?r+=l:o+=l}return{pinnedWidthLeft:n+t,pinnedWidthRight:r+t,unpinnedWidth:o}},fi=e=>{if(e.some(Xt)){let t=e.reduce((i,{heading:a})=>{var s;return Math.max(i,(s=a==null?void 0:a.length)!=null?s:0)},0),n,r=[],o;for(let i=0;i<t;i++)o=[],e.forEach(({heading:a=Ie,width:s})=>{var l;let u=(l=a[i])!=null?l:"";n&&n.label===u?n.width+=s:(n={label:u,width:s},o.push(n))}),r.push(o);return r}return Ie},mi=({pin:e,pinnedOffset:t=e==="left"?0:4,width:n})=>e==="left"?{left:t,width:n,"--pin-width":`${t+n-3}px`}:e==="right"?{right:t,width:n,"--pin-width":`${t+n}px`}:{width:n},di=(e,t,n)=>e.filter(r=>r.column!==t.name).concat({column:t.name,aggType:n}),Ve=(e,t)=>{if(F(e))return on(e,t);if(Ae(e))return e.column===t?e:void 0},on=(e,t)=>{let{filters:n,op:r}=e,o=[];if(n.forEach(i=>{let a=Ve(i,t);a&&o.push(a)}),o.length!==0)return o.length===1?o[0]:{op:r,filters:o}},pi=(e,t,n=!0)=>{var r;if(t.length){let[o,i]=tn(e,t,n);if(o)return[o].concat(i)}else if((r=e[0])!=null&&r.isGroup)return X(e);return e},hi=(e,t)=>e.map(n=>{let r=an(n,t);return r!==void 0?{...n,sorted:r}:n.sorted?{...n,sorted:void 0}:n}),gi=(e,{filterStruct:t})=>e.map(n=>{let r=Ve(t,n.name);return r!==void 0?{...n,filter:r}:n.filter?{...n,filter:void 0}:n}),yi=e=>e.filter!==void 0,Ci=e=>e.map(t=>{let{filter:n,...r}=t;return n?r:t}),an=(e,{sortDefs:t})=>{let n=t.find(r=>r.column===e.name);if(n)return t.length>1?(t.indexOf(n)+1)*(n.sortType==="A"?1:-1):n.sortType},Di=e=>{let t=e.indexOf(":");return t===-1?e:e.slice(0,t)},$i=e=>e.label?e.label:Oe(e.name)?fn(e):e.name,sn=(e,t)=>{let n=e.find(r=>r.name===t);if(n)return n;{let r=e.find(o=>o.isGroup);if(r)return sn(r.columns,t)}};function bi(e,t,n){let r=typeof t=="string"?e.find(o=>o.name===t):t;if(r){let o=n?{...r,...n}:r;return e.map(i=>i.name===o.name?o:i)}else throw Error("column-utils.replaceColun, column not found")}var xi=e=>e.name,Ti=(e,t)=>Object.entries(t).reduce((n,[r,o])=>(n[r]=e[o],n),{}),Mi=e=>nn(e[0])&&e[0].groupConfirmed===!1,Ei=(e,t,n)=>{var a;let r=[],o=0,i=!1;for(let s=0,u=0;u<e.length;u++){let l=e[u];l.hidden||(i?l.pin==="right"&&r.push(l):s+l.width<t?l.pin==="left"||s+l.width+((a=e[u+1])==null?void 0:a.width)>t?r.push(l):o+=l.width:s>n?i=!0:r.push(l),s+=l.width)}return[r,o]},Fe=e=>e.hidden!==!0,wi=(e,t)=>e.every(Fe)?e[t]:e.filter(Fe).at(t),{DEPTH:un,IS_LEAF:ln}=M,Ri=(e,t,n)=>{let{[un]:r,[ln]:o}=t;if(o||r>e.length)return[null,r===null?0:Math.max(0,r-1)];if(r===0)return["$root",0];{let{name:i,valueFormatter:a}=e[r-1];return[a(t[n[i]]),r-1]}},ke=e=>{switch(e){case"int":case"long":case"double":return"number";case"boolean":return"boolean";default:return"string"}},vi=(e,t)=>{let{serverDataType:n,type:r=ke(n)}=e;return T(r)?{...e,type:{...r,formatting:t}}:{...e,type:{name:r,formatting:t}}};function Si(e,t){return T(e.type)?{...e,type:{...e.type,name:t}}:{...e,type:t}}var Ai=(e,t)=>{let{serverDataType:n,type:r=ke(n)}=e;return T(r)?{...e,type:{...r,renderer:t}}:{...e,type:{name:r,renderer:t}}},Le={},Ii=e=>{var t;return T(e.type)&&(t=e.type.formatting)!=null?t:Le},Fi=e=>t=>e==null?void 0:e.includes(t.name),Li=(e,t,n)=>{let r=(s=n)=>u=>u.name===s;if(e.findIndex(r())!==-1)throw Error(`column-utils, addColumnToSubscribedColumns column ${n} is already subscribed`);let o=t.findIndex(r());if(o===-1)throw Error(`column-utils, addColumnToSubscribedColumns column ${n} is not available`);let i={...t[o]},a=-1;for(let s=o-1;s>=0;s--){let{name:u}=t[s];if(a=e.findIndex(r(u)),a!==-1)break}if(a===-1)return[i].concat(e);{let s=[];for(let u=0;u<e.length;u++)s.push(e[u]),u===a&&(s.push(i),a=Number.MAX_SAFE_INTEGER);return s}},cn=/.*:.*:.*/,Oe=e=>e!==void 0&&cn.test(e),ee=e=>{if(Oe(e.name))return e.name.split(/:=?/);throw Error(`column-utils, getCalculatedColumnDetails column name ${e.name} is not valid calculated column`)},fn=e=>ee(e)[0],Pi=e=>ee(e)[1],Vi=e=>ee(e)[2],ki=(e,t)=>{let[,n,r]=e.name.split(":");return{...e,name:`${t}:${n}:${r}`}},Oi=(e,t)=>{let[n,,r]=e.name.split(":");return{...e,name:`${n}:${t}:${r}`}},_i=(e,t)=>{let[n,r]=e.name.split(":");return{...e,name:`${n}:${r}:=${t}`}},Ui=(e,t,n)=>{let r=e.findIndex(o=>o.name===t.name);return Ee(e,r,n)};function Wi(e,t){return e.map(n=>n.name===t.name?t:n)}var Ni=({columns:e,table:t},n)=>typeof n=="function"?e.map(r=>{let o=n(t.table,r.name);return o?{...r,...o}:r}):e,Hi=(e,t)=>{if(t!==void 0){let n=e.columns.find(r=>r.name===t);if(n)return n;throw Error(`getColumnByName no column '${t}' in schema for ${e.table.table}`)}};function Bi(e,t){let{availableWidth:n=0,columnLayout:r="Static",defaultWidth:o=Jt,defaultMinWidth:i=qt,defaultMaxWidth:a=Qt}=t;if(r==="Static")return e.map(s=>typeof s.width=="number"?s:{...s,width:o});if(r==="Fit"){let{totalMinWidth:s,totalMaxWidth:u,totalWidth:l,flexCount:f}=e.reduce((g,p)=>{let{totalMinWidth:d,totalMaxWidth:y,totalWidth:D,flexCount:$}=g,{minWidth:c=i,maxWidth:h=a,width:E=o,flex:w=0}=p;return{totalMinWidth:d+c,totalMaxWidth:y+h,totalWidth:D+E,flexCount:$+w}},{totalMinWidth:0,totalMaxWidth:0,totalWidth:0,flexCount:0});if(s>n||u<n)return e;if(l>n){let g=l-n,p=f>0,d=g/(f||e.length),y=e.length,D=0,$=e.map(c=>{let{minWidth:h=i,width:E=o,flex:w=0}=c;if(p&&w===0)return c;let S=E-d;return S<h?(y-=1,D+=h-S,{...c,width:h}):{...c,width:S}});return D===0||(d=D/y,$=$.map(c=>{let h=c.width-d;return c.width!==c.minWidth?{...c,width:h}:c})),$}else if(l<n){let g=n-l,p=f>0,d=g/(f||e.length),y=e.map(c=>{let{maxWidth:h=a,width:E=o,flex:w=0}=c;if(p&&w===0)return c;let S=E+d;return S>h?{...c,width:h}:{...c,width:S,canStretch:!0}}),D=g-y.reduce((c,h)=>c+h.width,0),$=y.filter(c=>c.canStretch).length;return D>$&&(d=D/$,y=y.map(c=>{if(c.canStretch){let h=Math.min(c.width+d);return{...c,width:h}}else return c})),y.map(({canStretch:c,...h})=>h)}}return e}var Gi=(e,t)=>e.column===t.column&&e.column.valueFormatter(e.row[e.columnMap[e.column.name]])===t.column.valueFormatter(t.row[t.columnMap[t.column.name]]),Yi=(e,t)=>e.column===t.column&&e.row[Z]===t.row[Z]&&e.column.valueFormatter(e.row[e.columnMap[e.column.name]])===t.column.valueFormatter(t.row[t.columnMap[t.column.name]]);var _e=e=>{var t,n;if(((t=globalThis.document)==null?void 0:t.cookie)!==void 0)return(n=globalThis.document.cookie.split("; ").find(r=>r.startsWith(`${e}=`)))==null?void 0:n.split("=")[1]};var L=new Map,U=new Map,Ue=new Map,We=new Map,Ne=new Map,te=new Map,He=new Map,mn=(e,t)=>e===void 0||e==="private"?!0:Array.isArray(e)?e.includes(t):e===t,dn=(e,t)=>t!==void 0&&e==="cell-renderer",pn=(e,t)=>e==="column-header-content-renderer",hn=(e,t)=>e==="column-header-label-renderer",gn=(e,t)=>e==="cell-config-panel",yn=(e,t)=>e==="data-edit-validator",Cn=(e,t)=>e==="row-class-generator";function Ki(e,t,n="cell-renderer",r){dn(n,t)?L.set(e,t):pn(n,t)||hn(n,t)?U.set(e,t):gn(n,t)?We.set(e,t):yn(n,t)?Ne.set(e,t):Cn(n,t)&&(console.log(`register ${e}`),He.set(e,t)),r&&te.set(e,r)}var Zi=(e,t)=>{Ue.set(e,t)},Xi=e=>{let n=Array.from(L.keys()).map(r=>({name:r,...te.get(r)})).filter(({userCanAssign:r})=>r!==!1);return e?n.filter(r=>mn(r.serverDataType,e)):n},zi=e=>te.get(e);function ea(e){return Dn(e)}function ta(e){if(e.colHeaderContentRenderer)return U.get(e.colHeaderContentRenderer)}function na(e){if(e.colHeaderLabelRenderer)return U.get(e.colHeaderLabelRenderer)}var ra=e=>He.get(e);function Dn(e){if(T(e.type)){let{renderer:t}=e.type;if(z(t))return L.get(t.name)}else{if(e.serverDataType==="boolean")return L.get("checkbox-cell");if(e.editable)return L.get("input-cell")}}function oa(e=""){return Ue.get(e)}function ia(e){return We.get(e)}function aa(e){return Ne.get(e)}var ua={from:0,to:0},la=(e,t)=>(e==null?void 0:e.from)===(t==null?void 0:t.from)&&(e==null?void 0:e.to)===(t==null?void 0:t.to);function ca({from:e,to:t},n=0,r=Number.MAX_SAFE_INTEGER){if(e===0&&t===0)return{from:e,to:t};if(n===0)return r<e?{from:0,to:0}:{from:e,to:Math.min(t,r)};if(e===0)return{from:e,to:Math.min(t+n,r)};{let o=e-n<0,i=r-(t+n)<0;return o&&i?{from:0,to:r}:o?{from:0,to:t+n}:i?{from:Math.max(0,e-n),to:r}:{from:e-n,to:t+n}}}function fa({from:e,to:t,bufferSize:n=0}){return{from:0,to:t-e,bufferSize:n,reset:!0}}var $n=(e,{from:t,to:n})=>e>=t&&e<n,ma=({from:e,to:t},n)=>{let{from:r,to:o}=n,i=r>=t||o<=e,a=r<e&&o>t;return i||a?n:o>t?{from:t,to:o}:{from:r,to:e}},W=class e{constructor(t,n){this.from=t,this.to=n}isWithin(t){return $n(t,this)}overlap(t,n){return t>=this.to||n<this.from?[0,0]:[Math.max(t,this.from),Math.min(n,this.to)]}copy(){return new e(this.from,this.to)}};var{KEY:bn}=M,Be=class{constructor({from:t,to:n}){this.rowCount=0;this.setRowCount=t=>{t<this.data.length&&(this.data.length=t),this.rowCount=t};this.range=new W(t,n),this.data=new Array(n-t)}add(t){let[n]=t;if(this.isWithinRange(n)){let r=n-this.range.from,o=this.data[r]!==void 0;return this.data[r]=t,o}else return!1}getAtIndex(t){return this.range.isWithin(t)&&this.data[t-this.range.from]!=null?this.data[t-this.range.from]:void 0}getByKey(t){return this.data.find(n=>n[bn]===t)}isWithinRange(t){return this.range.isWithin(t)&&t<=this.rowCount}setRange(t,n){if(t!==this.range.from||n!==this.range.to){let[r,o]=this.range.overlap(t,n),i=new Array(n-t);for(let a=r;a<o;a++){let s=this.getAtIndex(a);if(s){let u=a-t;i[u]=s}}this.data=i,this.range.from=t,this.range.to=n}}hasData(t,n){let r=this.range.from,o=t-r,i=Math.min(n-r-1,this.rowCount-1);return this.data[o]!==void 0&&this.data[i]!==void 0}getData(t,n){var a;let{from:r}=this.range,o=Math.max(0,t-r),i=Math.min(n-r,(a=this.rowCount)!=null?a:n);return this.data.slice(o,i)}};var ya={horizontal:{positionProp:"left",sizeProp:"width"},vertical:{positionProp:"top",sizeProp:"height"}};var ne="up1",re="up2",oe="down1",ie="down2",Da=e=>typeof e=="number"&&isFinite(e),Ge={},$a=(e=Ge,t=Ge)=>{let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>e[o]===t[o])};function ba(e,t,n,r){if(e===void 0||!isFinite(e)||n===void 0||t===void 0)return"";{let o=e-n;return o&&typeof r=="number"&&(o=+e.toFixed(r)-+n.toFixed(r)),o?t===""?o<0?oe:ne:o>0?t===oe||t===ie||t===re?ne:re:t===ne||t===re||t===ie?oe:ie:""}}var xn=e=>e.type==="vuu-links",Ta=e=>e.type==="vuu-link-created",Ma=e=>e.type==="vuu-link-removed",Tn=e=>e.type==="vuu-menu",Ea=e=>Tn(e)||xn(e);var Mn={filter:""},En={sortDefs:[]},Ra={aggregations:[],columns:[],filter:Mn,groupBy:[],sort:En},wn=({aggregations:e},{aggregations:t})=>e===void 0&&(t==null?void 0:t.length)===0||t===void 0&&(e==null?void 0:e.length)===0,Rn=({columns:e},{columns:t})=>e===void 0&&(t==null?void 0:t.length)===0||t===void 0&&(e==null?void 0:e.length)===0,vn=({filter:e},{filter:t})=>e===void 0&&(t==null?void 0:t.filter)===""||t===void 0&&(e==null?void 0:e.filter)==="",Sn=({groupBy:e},{groupBy:t})=>e===void 0&&(t==null?void 0:t.length)===0||t===void 0&&(e==null?void 0:e.length)===0,An=({sort:e},{sort:t})=>e===void 0&&(t==null?void 0:t.sortDefs.length)===0||t===void 0&&(e==null?void 0:e.sortDefs.length)===0,P=(e,t)=>e===t?!0:e===void 0&&t===void 0,In=(e,t)=>{let{aggregations:n}=e,{aggregations:r}=t;return P(n,r)||wn(e,t)?!1:n===void 0||r===void 0||n.length!==r.length?!0:n.some(({column:o,aggType:i},a)=>o!==r[a].column||i!==r[a].aggType)},Fn=(e,t)=>{let{columns:n}=e,{columns:r}=t;return P(n,r)||Rn(e,t)?!1:n===void 0||r===void 0||(n==null?void 0:n.length)!==(r==null?void 0:r.length)?!0:n.some((o,i)=>o!==(r==null?void 0:r[i]))},Ln=(e,t)=>{var n,r;return vn(e,t)?!1:((n=e.filter)==null?void 0:n.filter)!==((r=t.filter)==null?void 0:r.filter)},Pn=(e,t)=>{let{groupBy:n}=e,{groupBy:r}=t;return P(n,r)||Sn(e,t)?!1:n===void 0||r===void 0||(n==null?void 0:n.length)!==(r==null?void 0:r.length)?!0:n.some((o,i)=>o!==(r==null?void 0:r[i]))},Vn=(e,t)=>{let{sort:n}=e,{sort:r}=t;return P(n,r)||An(e,t)?!1:n===void 0||r===void 0||(n==null?void 0:n.sortDefs.length)!==(r==null?void 0:r.sortDefs.length)?!0:n.sortDefs.some(({column:o,sortType:i},a)=>o!==r.sortDefs[a].column||i!==r.sortDefs[a].sortType)},kn=()=>!1,Ye={aggregationsChanged:!1,columnsChanged:!1,filterChanged:!1,groupByChanged:!1,noChanges:!0,sortChanged:!1,visualLinkChanged:!1},Je=(e,t)=>{if(P(e,t)||e===void 0&&t==null)return Ye;if(e===void 0)return Je({},t);if(t===void 0)return Je(e,{});let n=In(e,t),r=Fn(e,t),o=Ln(e,t),i=Pn(e,t),a=Vn(e,t),s=kn(e,t);return{aggregationsChanged:n,columnsChanged:r,filterChanged:o,groupByChanged:i,noChanges:!(n||r||o||i||a||s),sortChanged:a,visualLinkChanged:s}},va=e=>e!==void 0&&e.groupBy!==void 0&&e.groupBy.length>0,Sa=e=>(e==null?void 0:e.filter)!==void 0&&e.filter.filter.length>0,Aa=e=>{var t;return(e==null?void 0:e.sort)!==void 0&&Array.isArray((t=e.sort)==null?void 0:t.sortDefs)&&e.sort.sortDefs.length>0},Ia=e=>typeof e.getTypeaheadSuggestions=="function",Fa=e=>e.type==="TABLE_META_RESP",La=e=>e.type==="connection-status",Pa=e=>e.type==="connection-metrics",Va=e=>typeof e.result<"u",ka=e=>e!==void 0&&"error"in e,Oa=e=>e!=null&&"action"in e,_a=e=>"viewport"in e,Ua=e=>{if(e.aggregations&&e.columns&&e.filter&&e.groupBy&&e.sort)return e;{let{aggregations:t=[],columns:n=[],filter:r={filter:""},groupBy:o=[],sort:i={sortDefs:[]},visualLink:a}=e;return{aggregations:t,columns:n,filter:r,groupBy:o,sort:i,visualLink:a}}};function Qe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ae(e,t,n){Qe(e,t),t.set(e,n)}function se(e,t){return e-t*Math.floor(e/t)}var ze=1721426;function N(e,t,n,r){t=he(e,t);let o=t-1,i=-2;return n<=2?i=0:B(t)&&(i=-1),ze-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*n-362)/12+i+r)}function B(e){return e%4===0&&(e%100!==0||e%400===0)}function he(e,t){return e==="BC"?1-t:t}function On(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}var _n={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},A=class{fromJulianDay(t){let n=t,r=n-ze,o=Math.floor(r/146097),i=se(r,146097),a=Math.floor(i/36524),s=se(i,36524),u=Math.floor(s/1461),l=se(s,1461),f=Math.floor(l/365),g=o*400+a*100+u*4+f+(a!==4&&f!==4?1:0),[p,d]=On(g),y=n-N(p,d,1,1),D=2;n<N(p,d,3,1)?D=0:B(d)&&(D=1);let $=Math.floor(((y+D)*12+373)/367),c=n-N(p,d,$,1)+1;return new V(p,d,$,c)}toJulianDay(t){return N(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return _n[B(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return B(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}};function et(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Un(e,t){return qe(e)-qe(t)}function qe(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var ue=null;function tt(){return ue==null&&(ue=new Intl.DateTimeFormat().resolvedOptions().timeZone),ue}function je(e){e=ge(e,new A);let t=he(e.era,e.year);return nt(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function nt(e,t,n,r,o,i,a){let s=new Date;return s.setUTCHours(r,o,i,a),s.setUTCFullYear(e,t-1,n),s.getTime()}function Ke(e,t){if(t==="UTC")return 0;if(e>0&&t===tt())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:o,hour:i,minute:a,second:s}=rt(e,t);return nt(n,r,o,i,a,s,0)-Math.floor(e/1e3)*1e3}var Ze=new Map;function rt(e,t){let n=Ze.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Ze.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let i of r)i.type!=="literal"&&(o[i.type]=i.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}var Xe=864e5;function Wn(e,t,n,r){return(n===r?[n]:[n,r]).filter(i=>Nn(e,t,i))}function Nn(e,t,n){let r=rt(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function Hn(e,t,n="compatible"){let r=it(e);if(t==="UTC")return je(r);if(t===tt()&&n==="compatible"){r=ge(r,new A);let u=new Date,l=he(r.era,r.year);return u.setFullYear(l,r.month-1,r.day),u.setHours(r.hour,r.minute,r.second,r.millisecond),u.getTime()}let o=je(r),i=Ke(o-Xe,t),a=Ke(o+Xe,t),s=Wn(r,t,o-i,o-a);if(s.length===1)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-a);case"compatible":case"later":return Math.max(o-i,o-a);case"reject":throw new RangeError("No such absolute time found")}}function ot(e,t,n="compatible"){return new Date(Hn(e,t,n))}function it(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new pe(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function ge(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,I(r),r}function ye(e,t){let n=e.copy(),r="hour"in n?qn(n,t):0;me(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,de(n),at(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,Bn(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let o=n.calendar.getYearsInEra(n);if(n.year>o){var i,a;let u=(a=(i=n.calendar).isInverseEra)===null||a===void 0?void 0:a.call(i,n);n.year=o,n.month=u?1:n.calendar.getMonthsInYear(n),n.day=u?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let s=n.calendar.getMonthsInYear(n);return n.month>s&&(n.month=s,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function me(e,t){var n,r;!((r=(n=e.calendar).isInverseEra)===null||r===void 0)&&r.call(n,e)&&(t=-t),e.year+=t}function de(e){for(;e.month<1;)me(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,me(e,1)}function Bn(e){for(;e.day<1;)e.month--,de(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,de(e)}function at(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function I(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),at(e)}function Gn(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function st(e,t){return ye(e,Gn(t))}function ut(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),I(n),n}function Yn(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),Qn(n),n}function Jn(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=H(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=H(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=H(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=H(e.hour,24),t}function Qn(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function H(e,t){let n=e%t;return n<0&&(n+=t),n}function qn(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Jn(e)}function lt(e,t,n,r){let o=e.copy();switch(t){case"era":{let s=e.calendar.getEras(),u=s.indexOf(e.era);if(u<0)throw new Error("Invalid era: "+e.era);u=R(u,n,0,s.length-1,r==null?void 0:r.round),o.era=s[u],I(o);break}case"year":var i,a;!((a=(i=o.calendar).isInverseEra)===null||a===void 0)&&a.call(i,o)&&(n=-n),o.year=R(e.year,n,-1/0,9999,r==null?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=R(e.month,n,1,e.calendar.getMonthsInYear(e),r==null?void 0:r.round);break;case"day":o.day=R(e.day,n,1,e.calendar.getDaysInMonth(e),r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),I(o),o}function jn(e,t,n,r){let o=e.copy();switch(t){case"hour":{let i=e.hour,a=0,s=23;if((r==null?void 0:r.hourCycle)===12){let u=i>=12;a=u?12:0,s=u?23:11}o.hour=R(i,n,a,s,r==null?void 0:r.round);break}case"minute":o.minute=R(e.minute,n,0,59,r==null?void 0:r.round);break;case"second":o.second=R(e.second,n,0,59,r==null?void 0:r.round);break;case"millisecond":o.millisecond=R(e.millisecond,n,0,999,r==null?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function R(e,t,n,r,o=!1){if(o){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);t>0?e=Math.ceil(e/i)*i:e=Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}var Kn=["hours","minutes","seconds"],Ya=["years","months","weeks","days",...Kn];function Zn(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function ct(e){let t=ge(e,new A);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Xn(e){return`${ct(e)}T${Zn(e)}`}function ft(e){let t=typeof e[0]=="object"?e.shift():new A,n;if(typeof e[0]=="string")n=e.shift();else{let a=t.getEras();n=a[a.length-1]}let r=e.shift(),o=e.shift(),i=e.shift();return[t,n,r,o,i]}var zn=new WeakMap,V=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(t){return ye(this,t)}subtract(t){return st(this,t)}set(t){return ut(this,t)}cycle(t,n,r){return lt(this,t,n,r)}toDate(t){return ot(this,t)}toString(){return ct(this)}compare(t){return et(this,t)}constructor(...t){ae(this,zn,{writable:!0,value:void 0});let[n,r,o,i,a]=ft(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,I(this)}};var er=new WeakMap,pe=class e{copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ye(this,t)}subtract(t){return st(this,t)}set(t){return ut(Yn(this,t),t)}cycle(t,n,r){switch(t){case"era":case"year":case"month":case"day":return lt(this,t,n,r);default:return jn(this,t,n,r)}}toDate(t,n){return ot(this,t,n)}toString(){return Xn(this)}compare(t){let n=et(this,t);return n===0?Un(this,it(t)):n}constructor(...t){ae(this,er,{writable:!0,value:void 0});let[n,r,o,i,a]=ft(t);this.calendar=n,this.era=r,this.year=o,this.month=i,this.day=a,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,I(this)}};var mt=1080,tr=24*mt,nr=29,rr=12*mt+793,Ja=nr*tr+rr;var le=new Map,G=class{format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.formatter.format(t)} \u2013 ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.formatter.formatToParts(t),o=this.formatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" \u2013 ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return ar()&&(this.resolvedHourCycle||(this.resolvedHourCycle=sr(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}constructor(t,n={}){this.formatter=dt(t,n),this.options=n}},or={true:{ja:"h11"},false:{}};function dt(e,t={}){if(typeof t.hour12=="boolean"&&ir()){t={...t};let o=or[String(t.hour12)][e.split("-")[0]],i=t.hour12?"h12":"h23";t.hourCycle=o!=null?o:i,delete t.hour12}let n=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(le.has(n))return le.get(n);let r=new Intl.DateTimeFormat(e,t);return le.set(n,r),r}var ce=null;function ir(){return ce==null&&(ce=new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))==="24"),ce}var fe=null;function ar(){return fe==null&&(fe=new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle==="h12"),fe}function sr(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,""),e+=(e.includes("-u-")?"":"-u")+"-nu-latn";let n=dt(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(i=>i.type==="hour").value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(i=>i.type==="hour").value,10);if(r===0&&o===23)return"h23";if(r===24&&o===23)return"h24";if(r===0&&o===11)return"h11";if(r===12&&o===11)return"h12";throw new Error("Unexpected hour cycle result")}function pt(e){return e!=null}var ht={hour:"2-digit",minute:"2-digit",second:"2-digit"},ur={"hh:mm:ss":{locale:"en-GB",options:{...ht,hour12:!1}},"hh:mm:ss a":{locale:"en-GB",options:{...ht,hour12:!0}}},v={day:"2-digit",month:"2-digit",year:"numeric"},lr={"dd.mm.yyyy":{locale:"de-De",options:{...v}},"dd/mm/yyyy":{locale:"en-GB",options:{...v}},"dd MMM yyyy":{locale:"en-GB",options:{...v,month:"short"}},"dd MMMM yyyy":{locale:"en-GB",options:{...v,month:"long"}},"mm/dd/yyyy":{locale:"en-US",options:{...v}},"MMM dd, yyyy":{locale:"en-US",options:{...v,month:"short"}},"MMMM dd, yyyy":{locale:"en-US",options:{...v,month:"long"}}};function cr(e){return[e.date?lr[e.date]:null,e.time?ur[e.time]:null]}function gt(e){let t=cr(e).filter(pt).map(n=>fr(n.locale,n.options));return n=>t.map(r=>r.format(n)).join(" ")}function fr(e,t){return new G(e,t)}var yt=["dd.mm.yyyy","dd/mm/yyyy","dd MMM yyyy","dd MMMM yyyy","mm/dd/yyyy","MMM dd, yyyy","MMMM dd, yyyy"],Ct=["hh:mm:ss","hh:mm:ss a"],mr={date:yt,time:Ct},dr=e=>yt.includes(e),pr=e=>Ct.includes(e),Ce=e=>dr(e==null?void 0:e.date)||pr(e==null?void 0:e.time);function hr(e){return new V(e.getFullYear(),e.getMonth()+1,e.getDate())}var Dt={time:"hh:mm:ss",date:"dd.mm.yyyy"},$t={date:Dt.date};function De(e){return T(e)&&e.formatting&&Ce(e.formatting.pattern)?e.formatting.pattern:$t}var gr=["error","warn","info","debug"],yr=e=>typeof e=="string"&&gr.includes(e),Cr="error",Y=()=>{},Dr="error",{loggingLevel:J=Dr}=$r(),bt=e=>{let t=J==="debug",n=t||J==="info",r=n||J==="warn",o=r||J==="error",i=n?l=>console.info(`[${e}] ${l}`):Y,a=r?l=>console.warn(`[${e}] ${l}`):Y,s=t?l=>console.debug(`[${e}] ${l}`):Y;return{errorEnabled:o,error:o?l=>console.error(`[${e}] ${l}`):Y}};function $r(){return typeof loggingSettings<"u"?loggingSettings:{loggingLevel:xt()}}function xt(){let e=_e("vuu-logging-level");return yr(e)?e:Cr}var fs=()=>`const loggingSettings = { loggingLevel: "${xt()}"};`;var{debug:br,debugEnabled:xr}=bt("range-monitor"),Tt=class{constructor(t){this.source=t;this.range={from:0,to:0};this.timestamp=0}isSet(){return this.timestamp!==0}set({from:t,to:n}){let{timestamp:r}=this;if(this.range.from=t,this.range.to=n,this.timestamp=performance.now(),r)xr&&br(`<${this.source}> [${t}-${n}], ${(this.timestamp-r).toFixed(0)} ms elapsed`);else return 0}};var Cs=(e,t,n)=>{let r=document.createElement(e);return t&&(r.className=t),n&&(r.textContent=n),r},Tr=(e,t)=>{if(e){if(e.hasAttribute("tabindex")){let r=parseInt(e.getAttribute("tabindex"));if(!isNaN(r)&&(t===void 0||r===t))return e}let n=typeof t=="number"?e.querySelector(`[tabindex="${t}"]`):e.querySelector("[tabindex]");if(n)return n}},Ds=e=>{if(e){let t=parseInt(e.dataset.index||"");if(!isNaN(t))return t}return-1},Mr=(e,t)=>e.closest(t),Er=(e,t)=>Mr(e,`[data-${t}]`),$s=e=>Er(e,"index");function bs(e,t,n=!1){if(e===null&&n)throw Error("html-utils getElementByDataIndex, container is null");let r=e==null?void 0:e.querySelector(`[data-index="${t}"]`);if(r)return r;if(n)throw Error("html-utils getElementByDataIndex, Item not found with data-index='${index}'")}var xs=(e,t)=>{requestAnimationFrame(()=>{let n=Tr(e,t);n&&n.focus()})},Ts=e=>{let t=e==null?void 0:e.closest("[data-index]");return!(!t||t.ariaDisabled||t.dataset.selectable==="false"||t.querySelector('[data-selectable="false"],[aria-disabled="true"]'))},$e;function Ms(){if($e===void 0){let e=document.createElement("div");e.className="scrollable-content",e.style.width="50px",e.style.height="50px",e.style.overflowY="scroll",e.style.position="absolute",e.style.top="-200px",e.style.left="-200px";let t=document.createElement("div");t.style.height="100px",t.style.width="100%",e.appendChild(t),document.body.appendChild(e);let n=e.offsetWidth,r=t.offsetWidth;document.body.removeChild(e),$e=n-r,e=null}return $e}var Es=(e,t)=>{let n=new MouseEvent(t,{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(n)},ws=(e,t)=>{let n=new Event(t,{bubbles:!0,cancelable:!0});e.dispatchEvent(n)};function Mt(e){return Array.isArray(e)}function wr(e){return!Array.isArray(e)}var C,Et=class{constructor(){Me(this,C,new Map)}addListener(t,n){let r=b(this,C).get(t);r?Mt(r)?r.push(n):wr(r)&&b(this,C).set(t,[r,n]):b(this,C).set(t,n)}removeListener(t,n){if(!b(this,C).has(t))return;let r=b(this,C).get(t),o=-1;if(r===n)b(this,C).delete(t);else if(Array.isArray(r)){for(let i=length;i-- >0;)if(r[i]===n){o=i;break}if(o<0)return;r.length===1?(r.length=0,b(this,C).delete(t)):r.splice(o,1)}}removeAllListeners(t){t&&b(this,C).has(t)?b(this,C).delete(t):t===void 0&&b(this,C).clear()}emit(t,...n){if(b(this,C)){let r=b(this,C).get(t);r&&this.invokeHandler(r,n)}}once(t,n){let r=(...o)=>{this.removeListener(t,r),n(...o)};this.on(t,r)}on(t,n){this.addListener(t,n)}hasListener(t,n){let r=b(this,C).get(t);return Array.isArray(r)?r.includes(n):r===n}invokeHandler(t,n){if(Mt(t))t.slice().forEach(r=>this.invokeHandler(r,n));else switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;default:t.call(null,...n)}}};C=new WeakMap;var Q="\u2008",m="\u2007";var wt={DIGIT:m,TWO_DIGITS:m+m,THREE_DIGITS:m+m+m,FULL_PADDING:[null,Q+m,Q+m+m,Q+m+m+m,Q+m+m+m+m]},Rr={DIGIT:"0",TWO_DIGITS:"00",THREE_DIGITS:"000",FULL_PADDING:[null,"0","00","000","0000"]};function vr(e,t=6){return(Sr+e).slice(-t)}var Sr=m+m+m+m+m+m+m+m+m,be={Right:"right",Center:"center",Left:"left"};function Rt(e,t,n){let r=e.length,o=t-r;if(o>0)o===1?e=e+n.DIGIT:o===2?e=e+n.TWO_DIGITS:o===3&&(e=e+n.THREE_DIGITS);else if(o<0&&(e=e.slice(0,t),r=t),n===wt&&e.charAt(r-1)==="0")return e=e.replace(/0+$/,""),Rt(e,t,n);return e}function vt(e,t=be.Right,n=4,r,o){if(e===void 0||typeof e!="number"||isNaN(e))return"";let i,a,s,[u,l=""]=e.toString().split("."),f=l.length;return i=parseFloat(u).toLocaleString(),t===be.Left&&o&&(i=vr(i)),n===-1||f===n?a=l:f>n?a=parseFloat("0."+l).toFixed(n).slice(2):(s=r?Rr:o&&t!==be.Left?wt:null)?f===0?a=s.FULL_PADDING[n]:a=Rt(l,n,s):a=l,i+(a?"."+a:"")}var Ar={},St=e=>e==null?"":typeof e=="string"?e:e.toString(),Ir=e=>{let t=De(e.type),n=gt(t);return r=>typeof r=="number"&&r!==0?n(new Date(r)):""},Fr=({align:e="right",type:t})=>{var n;if(t===void 0||typeof t=="string")return St;{let{alignOnDecimals:r=!1,decimals:o,zeroPad:i=!1}=(n=t.formatting)!=null?n:Ar;return a=>{if(typeof a=="string"&&(a.startsWith("\u03A3")||a.startsWith("[")))return a;let s=typeof a=="number"?a:typeof a=="string"?parseFloat(a):void 0;return vt(s,e,o,i,r)}}},Lr=e=>t=>{var n;return(n=e[t])!=null?n:""},Ps=(e,t=e.serverDataType)=>{if(_(e))return Ir(e);let{type:n}=e;return T(n)&&Pe(n==null?void 0:n.renderer)?Lr(n.renderer.map):t==="string"||t==="char"?r=>r:t==="double"?Fr(e):St};var ks=()=>`hw-${Math.round(Math.random()*1e5)}`;function _s(e,t){return e?e.concat(t.name):[t.name]}var Ws=e=>e.length===1,Ns=e=>e.key==='"'||e.key==="'";function Bs(e,t){if(!e){let n=new Error(t);throw n.name="Invariant Violation",n.framesToPop=1,n}}var Pr=e=>Object.prototype.toString.call(e)==="[object Object]";function Ys(e){return typeof e=="string"?e:Pr(e)?Object.prototype.hasOwnProperty.call(e,"label")?String(e.label):(console.warn(["itemToString: you've likely forgotten to set the label prop on the item object.","You can also provide your own `itemToString` implementation."].join(`
|
|
2
|
+
`)),""):String(e)}var{COUNT:Vr}=M,At=e=>typeof e=="object"&&e!==null,kr=["boolean","number","string"],Or=e=>kr.includes(typeof e),_r=e=>typeof e=="boolean"?"boolean":typeof e=="number"?"number":"string",Ur=(e,t)=>{if(At(t))return{attribute:`${e}+`,attributeValue:"",type:"json"};if(t===void 0)return{attribute:e,attributeValue:"undefined",type:"string"};if(Or(t))return{attribute:e,attributeValue:t,type:_r(t)};throw Error(`unsupported type ${typeof t} in JSON`)},xe={name:"json",renderer:{name:"json"}},qs=e=>{let t=[];t.push({name:"col 1",type:xe},{name:"col 2",type:xe});let n=[];return It(n,e,t),[t,n]},It=(e,t,n,r={value:0},o="$root",i=0)=>{let a=0,s=0;i===n.length-1&&n.push({name:`col ${n.length+1}`,hidden:!0,type:xe});let u=Object.entries(t);for(let l=0;l<u.length;l++,r.value+=1){let[f,g]=u[l],{attribute:p,attributeValue:d,type:y}=Ur(f,g),D=y!=="json",$=Array(i).fill(""),c=`${o}|${f}`,h=[r.value,r.value,D,!1,i,0,c,0,...$,p,d];if(e.push(h),s+=1,At(g)){let[E,w]=It(e,g,n,{value:r.value+1},c,i+1);h[Vr]=E,a+=E,s+=w,r.value+=w}else a+=1}return[a,s]};var Ks="ArrowUp",Zs="ArrowDown",Xs="ArrowLeft",zs="ArrowRight",eu="Enter",tu="Escape",nu="Home",ru="End",ou="PageUp",iu="PageDown",au=" ",su="Tab";var Wr=[],Ft=class{constructor(t){this.keys=new Map;this.nextKeyValue=0;this.range=t,this.init(t)}next(t=Wr){return t.length>0?t.shift():this.nextKeyValue++}init({from:t,to:n}){this.keys.clear(),this.nextKeyValue=0;for(let r=t;r<n;r++){let o=this.next();this.keys.set(r,o)}return!0}reset(t){let{from:n,to:r}=t,o=r-n,i=this.range.to-this.range.from;if(this.range=t,i>o)return this.init(t);let a=[];this.keys.forEach((s,u)=>{(u<n||u>=r)&&(a.push(s),this.keys.delete(u))});for(let s=n;s<r;s++)if(!this.keys.has(s)){let u=this.next(a);this.keys.set(s,u)}return!1}keyFor(t){let n=this.keys.get(t);if(n===void 0)throw console.log(`key not found
|
|
3
3
|
keys: ${this.toDebugString()}
|
|
4
|
-
`),Error(`KeySet, no key found for rowIndex ${t}`);return
|
|
5
|
-
${Array.from(this.keys.entries()).sort(([t],[
|
|
6
|
-
`}};var
|
|
4
|
+
`),Error(`KeySet, no key found for rowIndex ${t}`);return n}toDebugString(){return`${this.keys.size} keys
|
|
5
|
+
${Array.from(this.keys.entries()).sort(([t],[n])=>t-n).map(([t,n])=>`${t}=>${n}`).join(",")}]
|
|
6
|
+
`}};var cu=e=>e!==void 0&&"children"in e;var Nr=e=>e!==void 0&&typeof e!="function",mu=e=>{if(e&&Object.values(e).every(t=>Nr(t)))throw Error("module file, no components")};var pu=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=n[e]&63;r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r<63?t+="_":t+="-"}return t};import{Children as Hr,isValidElement as Lt}from"react";var Br=[],Du=e=>{let t=Array.isArray(e),n=t?e.length:Hr.count(e);return t&&e.every(Lt)?e:n===1&&!t&&Lt(e)?[e]:n>1?e:Br};function bu(e,t){let n;return(...r)=>{clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}function xu(e,t){let n=!1,r;function o(){r==null?n=!1:(e(...r),r=void 0,setTimeout(o,t))}return(...i)=>{n?r=i:(e(...i),n=!0,setTimeout(o,t))}}var{IDX:Pt}=M,Eu=e=>[t=>t[Pt]*e,t=>Math.floor(t/e),!1],wu=(e,t,n)=>[(r,o=0)=>{let i=n.current*t;return(r[Pt]-o)*e-i},r=>{let o=n.current*t;return Math.round((r+o)/e)},!0],Ru=(e,t)=>{if(t===-1)return null;{let n=e.querySelector(`[aria-rowindex="${t+1}"]`);if(n)return n;throw Error(`getRowElementAtIndex no row found for index index ${t}`)}},vu=e=>{let t=e.ariaRowIndex;if(t!=null){let n=parseInt(t)-1;if(isNaN(n))throw Error(`getIndexFromRowElement row element aria rowindex invalid ${t}`);return n}else throw Error("getIndexFromRowElement row element does not have aria rowindex")};var q=[],{SELECTED:Vt}=M,x={False:0,True:1,First:2,Last:4},Iu=e=>(e[Vt]&x.True)===x.True,Fu=e=>e!==void 0&&(e[Vt]&x.Last)===x.Last,Gr=(e,t)=>{let n=typeof e=="number"?e:e[0],r=typeof t=="number"?t:t[0];return n-r},Lu=(e,t,n,r,o=!1)=>e==="single"||(e==="extended"||e==="checkbox")&&!o&&!r||!r&&!o?q:!r&&o?Qr(t,n):q,Yr=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];if(typeof r=="number"){if(r===t-1)return!0;if(r>t)return!1}else{if(r[0]===t+1||r[1]===t-1)return!0;if(r[0]>t)return!1}}return!1},Jr=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];if(typeof r=="number"){if(r===t-1){let o=e[n+1];if(o===t+1){let i=[r,o];return e.slice(0,n).concat([i]).concat(e.slice(n+2))}else{let i=[r,t];return e.slice(0,n).concat([i]).concat(e.slice(n+1))}}else if(r>t)break}else if(r[0]===t+1){let o=[t,r[1]];return e.slice(0,n).concat([o]).concat(e.slice(n+1))}else if(r[1]===t-1){let o=e[n+1];if(Array.isArray(o)&&o[0]===t+1){let i=[r[0],o[1]];return e.slice(0,n).concat([i]).concat(e.slice(n+2))}else if(typeof o=="number"&&o===t+1){let i=[r[0],o];return e.slice(0,n).concat([i]).concat(e.slice(n+2))}else{let i=[r[0],t];return e.slice(0,n).concat([i]).concat(e.slice(n+1))}}}return e},Pu=(e,t,n,r,o=!1,i=-1)=>{let a=e==="single",s=e==="extended"||e==="checkbox",u=a||s&&!o&&!r;if(e==="none")return q;if(u)return[n];if(r){if(t.length===0)return[n];{let l=n>i?[i,n]:[n,i];return qr(t,l)}}else if(!r)return Yr(t,n)?Jr(t,n):t==null?void 0:t.concat(n).sort(Gr);return q};function Qr(e,t){if(e.includes(t))return e.filter(n=>n!==t);{let n=[];for(let r of e)Array.isArray(r)&&j(r,t)?n.push(...to(r,t)):n.push(r);return n}}function qr(e,t){let[n,r]=t;return e.reduce((o,i)=>(typeof i=="number"?i<n||i>r?o.push(i):Zr(o.at(-1),i)||o.push(t):jr(i,t)?o.push(Kr(i,t)):(t[1]<i[0]&&o.push(t),o.push(i)),o),[])}var jr=(e,t)=>e[1]>=t[0]&&e[1]<=t[1]||e[0]>=t[0]&&e[0]<=t[1],Kr=(e,t)=>[Math.min(e[0],t[0]),Math.max(e[1],t[1])],Zr=(e,t)=>typeof e>"u"||typeof e=="number"?!1:j(e,t),j=(e,t)=>t>=e[0]&&t<=e[1],Xr=x.True+x.First+x.Last,zr=x.True+x.First,eo=x.True+x.Last,Vu=(e,t)=>{for(let n of e)if(typeof n=="number"){if(n===t)return Xr}else if(j(n,t))return t===n[0]?zr:t===n[1]?eo:x.True;return x.False},ku=(e,t)=>{for(let n of e)if(typeof n=="number"){if(n===t)return!0;if(n>t)return!1}else{if(j(n,t))return!0;if(n[0]>t)return!1}return!1},Ou=e=>{if(e.every(n=>typeof n=="number"))return e;let t=[];for(let n of e)if(typeof n=="number")t.push(n);else for(let r=n[0];r<=n[1];r++)t.push(r);return t};function to([e,t],n){return n===e?[[e+1,t]]:n===t?[[e,t-1]]:t-e===2?[e,t]:n===t-1?[[e,t-2],t]:[[e,n-1],[n+1,t]]}var no=e=>e==="A"?"D":"A",Uu=({sortDefs:e},{name:t},n=!1,r)=>{if(n)return{sortDefs:e.concat({column:t,sortType:r!=null?r:"A"})};let o=typeof r=="string"?r:e.length===1&&e[0].column===t?no(e[0].sortType):"A";return{sortDefs:[{column:t,sortType:o}]}},Wu=({sortDefs:e},t,n)=>{if(n===void 0){let r=e.find(o=>o.column===t.name);if(r)return{sortDefs:[{column:t.name,sortType:r.sortType==="A"?"D":"A"}]}}return{sortDefs:[{column:t.name,sortType:n!=null?n:"A"}]}},Nu=({sortDefs:e},t,n="A")=>{let r={column:t.name,sortType:n};return e.length>0?{sortDefs:e.concat(r)}:{sortDefs:[r]}};var Bu=e=>{let t=e.trim(),n=t.lastIndexOf(" ");return n===-1?t:t.slice(n+1)},ro=e=>e.length===0?"":e[0].toUpperCase()+e.slice(1),oo=/(?<!(^|[A-Z]))(?=[A-Z])|(?<!^)(?=[A-Z][a-z])/,Gu=e=>{let[t,...n]=e.split(oo);return`${ro(t)} ${n.join(" ")}`};import{createContext as ao,isValidElement as so,cloneElement as uo,useContext as _t}from"react";function kt(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=kt(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function io(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=kt(e))&&(r&&(r+=" "),r+=t);return r}var Ot=io;import{jsx as go}from"react/jsx-runtime";var lo="medium",co="salt-theme",fo="light",Te=ao({density:"high",theme:"vuu",themeMode:"light"}),mo=["vuu","vuu-density-high","light"],Xu=e=>{let t=_t(Te);return e?[e.themeClass,e.densityClass,e.dataMode]:t?[`${t.theme}-theme`,`${t.theme}-density-${t.density}`,t.themeMode]:mo},po=(e,t,n,r)=>{var o;return so(e)?uo(e,{className:Ot((o=e.props)==null?void 0:o.className,`${t}-theme`,`${t}-density-${r}`),"data-mode":n}):(console.warn(`
|
|
7
7
|
ThemeProvider can only apply CSS classes for theming to a single nested child element of the ThemeProvider.
|
|
8
|
-
Wrap elements with a single container`),e)},
|
|
8
|
+
Wrap elements with a single container`),e)},ho=({applyThemeClasses:e=!1,children:t,theme:n,themeMode:r,density:o})=>{var p,d,y;let{density:i,themeMode:a,theme:s}=_t(Te),u=(p=o!=null?o:i)!=null?p:lo,l=(d=r!=null?r:a)!=null?d:fo,f=(y=n!=null?n:s)!=null?y:co,g=e?po(t,f,l,u):t;return go(Te.Provider,{value:{themeMode:l,density:u,theme:f},children:g})};ho.displayName="ThemeProvider";var tl=(e,t)=>{let n=new URL(document.location.href),r=n.searchParams.get(e);if(r)return r;let o=n.hash,a=new RegExp(`${e}=([a-zA-Z]*)`).exec(o);return a?a[1]:t},nl=e=>new URL(document.location.href).searchParams.has(e);import{useMemo as yo}from"react";var Co=0,il=e=>yo(()=>e!=null?e:`vuu-${++Co}`,[e]);import{useLayoutEffect as Do,useRef as $o}from"react";var cl=(e,t)=>{let n=$o(!1);Do(()=>{n.current?e():n.current=!0},t)};export{Yo as AggregationType,Zs as ArrowDown,Xs as ArrowLeft,zs as ArrowRight,Ks as ArrowUp,lo as DEFAULT_DENSITY,co as DEFAULT_THEME,fo as DEFAULT_THEME_MODE,oe as DOWN1,ie as DOWN2,Be as DataWindow,ru as End,eu as Enter,tu as Escape,Et as EventEmitter,nu as Home,Ft as KeySet,ya as MEASURES,Ye as NO_CONFIG_CHANGES,ua as NULL_RANGE,Mn as NoFilter,En as NoSort,iu as PageDown,ou as PageUp,Tt as RangeMonitor,x as RowSelected,au as Space,su as Tab,Te as ThemeContext,ho as ThemeProvider,ne as UP1,re as UP2,W as WindowRange,Eu as actualRowPositioning,Li as addColumnToSubscribedColumns,_s as addGroupColumn,Nu as addSortColumn,Ni as applyDefaultColumnConfig,gi as applyFilterToColumns,pi as applyGroupByToColumns,Uu as applySort,hi as applySortToColumns,Bi as applyWidthToColumns,Du as asReactElements,mu as assertModuleExportsAtLeastOneComponent,So as boxContainsPoint,ii as buildColumnMap,Cs as createEl,Gi as dataAndColumnUnchanged,Yi as dataColumnAndKeyUnchanged,De as dateTimePattern,bu as debounce,Dt as defaultPatternsByType,St as defaultValueFormatter,Lu as deselectItem,ws as dispatchCustomEvent,Es as dispatchMouseEvent,Ou as expandSelection,Ve as extractFilterForColumn,tn as extractGroupColumn,$t as fallbackDateTimePattern,O as filterAsQuery,sn as findColumn,X as flattenColumnGroup,xs as focusFirstFocusableElement,gt as formatDate,Ko as fromServerDataType,wo as getAddedItems,ee as getCalculatedColumnDetails,Vi as getCalculatedColumnExpression,fn as getCalculatedColumnName,Pi as getCalculatedColumnType,ia as getCellConfigPanelRenderer,ea as getCellRenderer,zi as getCellRendererOptions,Er as getClosest,$s as getClosestIndexItem,Hi as getColumnByName,ta as getColumnHeaderContentRenderer,na as getColumnHeaderLabelRenderer,$i as getColumnLabel,Di as getColumnName,mi as getColumnStyle,Ei as getColumnsInViewport,oa as getConfigurationEditor,_e as getCookieValue,fr as getDateFormatter,Qo as getDefaultAlignment,ke as getDefaultColumnType,aa as getEditRuleValidator,bs as getElementByDataIndex,Ds as getElementDataIndex,Tr as getFocusableElement,ca as getFullRange,Ri as getGroupValueAndOffset,vu as getIndexFromRowElement,fs as getLoggingConfigForWorker,Ro as getMissingItems,ba as getMovingValueDirection,Xi as getRegisteredCellRenderers,ra as getRowClassNameGenerator,Ru as getRowElementAtIndex,Ti as getRowRecord,Ms as getScrollbarSize,Vu as getSelectionStatus,fi as getTableHeadings,Ii as getTypeFormattingFromColumn,ks as getUniqueId,tl as getUrlParameter,Ps as getValueFormatter,Oa as hasAction,Sa as hasFilter,va as hasGroupBy,Xt as hasHeadings,Aa as hasSort,nl as hasUrlParameter,oi as hasValidationRules,Bs as invariant,_o as isAndFilter,Oe as isCalculatedColumn,Ws as isCharacterKey,z as isColumnTypeRenderer,Wo as isCompleteFilter,Je as isConfigChanged,Pa as isConnectionQualityMetrics,La as isConnectionStatusMessage,Mi as isDataLoading,_ as isDateTimeColumn,Ce as isDateTimePattern,ka as isErrorResponse,Ln as isFilterChanged,Ae as isFilterClause,yi as isFilteredColumn,Pn as isGroupByChanged,nn as isGroupColumn,cu as isGroupMenuItemDescriptor,Oo as isInFilter,rn as isJsonAttribute,ui as isJsonColumn,si as isJsonGroup,ni as isLookupRenderer,Pe as isMappedValueTypeRenderer,Nr as isModule,F as isMultiClauseFilter,K as isMultiValueFilter,ko as isNamedFilter,Fe as isNotHidden,pt as isNotNullOrUndefined,Zo as isNumericColumn,Uo as isOrFilter,Xo as isPinned,Ns as isQuoteKey,zo as isResizing,Iu as isRowSelected,Fu as isRowSelectedLast,Ts as isSelectableElement,ku as isSelected,Se as isSingleValueFilter,Fa as isTableSchema,ei as isTextColumn,T as isTypeDescriptor,Ia as isTypeaheadSuggestionProvider,Kt as isValidColumnAlignment,Vo as isValidFilterClauseOp,Da as isValidNumber,qo as isValidPinLocation,ri as isValueListRenderer,Tn as isViewportMenusAction,_a as isViewporttMessage,Ta as isVisualLinkCreatedAction,Ma as isVisualLinkRemovedAction,xn as isVisualLinksAction,jo as isVuuColumnDataType,Ea as isVuuFeatureAction,Ys as itemToString,To as itemsChanged,Mo as itemsOrOrderChanged,qs as jsonToDataSourceRows,Bu as lastWord,bt as logger,Jo as mapSortCriteria,ci as measurePinnedColumns,Va as messageHasResult,M as metadataKeys,Ui as moveColumnTo,Ee as moveItem,Eo as moveItemDeprecated,Fr as numericFormatter,xo as partition,ai as projectUpdates,Mr as queryClosest,ma as rangeNewItems,la as rangesAreSame,Ki as registerComponent,Zi as registerConfigurationEditor,No as removeColumnFromFilter,Wi as replaceColumn,fa as resetRange,vt as roundDecimal,Pu as selectItem,di as setAggregations,_i as setCalculatedColumnExpression,ki as setCalculatedColumnName,Oi as setCalculatedColumnType,Wu as setSortColumn,$a as shallowEquals,li as sortPinnedColumns,Ci as stripFilterFromColumns,Fi as subscribedOnly,mr as supportedDateTimePatterns,xu as throttle,hr as toCalendarDate,ti as toColumnDescriptor,xi as toDataSourceColumns,bi as updateColumn,vi as updateColumnFormatting,Ai as updateColumnRenderProps,Si as updateColumnType,il as useId,cl as useLayoutEffectSkipFirst,Xu as useThemeAttributes,pu as uuid,Ra as vanillaConfig,wu as virtualRowPositioning,wi as visibleColumnAtIndex,Ua as withConfigDefaults,$n as withinRange,Gu as wordify};
|
|
9
9
|
//# sourceMappingURL=index.js.map
|