n8n-editor-ui
Version:
Workflow Editor UI for n8n
3 lines • 974 kB
JavaScript
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`n8n@2.16.1`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`465e175b-6877-4980-9f9b-b4533b61ec59`,e._sentryDebugIdIdentifier=`sentry-dbid-465e175b-6877-4980-9f9b-b4533b61ec59`)})()}catch{}import{o as e}from"./chunk-CACdhNlC.js";import{$ as t,A as n,At as r,C as i,E as a,Ft as o,H as s,N as c,Ot as l,P as u,S as d,Sn as f,T as p,V as m,Vt as h,W as g,Wt as _,X as v,Z as y,_ as b,_n as x,bt as S,dt as C,gt as ee,h as w,j as T,jt as te,kt as E,m as ne,o as D,p as re,pt as ie,rt as ae,w as O,yn as oe,yt as k,zt as se}from"./vue.runtime.esm-bundler-C3C09Zii.js";import{at as ce,n as le}from"./core-Bz5WjPxS.js";import{Di as ue,F as de,Mi as fe,Mt as pe,Qi as me,Rt as he,Xi as ge,Zi as _e,_t as ve,h as ye,ji as be,ut as xe,vt as Se}from"./src-XqE2yCpG.js";import{t as Ce}from"./_plugin-vue_export-helper-CIL7EULb.js";import{t as we}from"./date-picker-Dz_0wrPG.js";import{Ln as Te,Pn as Ee,ba as De,fr as Oe}from"./users.store-xP93bV7X.js";import{$a as ke,Ar as Ae,Cr as je,Fr as Me,Ji as Ne,Mr as Pe,P as Fe,Pr as Ie,wr as Le}from"./constants-DuQbSl-q.js";import{a as Re}from"./useRootStore-XEREVjMN.js";import"./settings.store-CAFiYCMH.js";import{t as ze}from"./useDebounce-DyDXl6eh.js";import{n as Be,t as Ve}from"./dataTable.store-DVN6vAE2.js";import{t as He}from"./useClipboard-D2UtD35U.js";import{t as Ue}from"./orderBy-VGkL3AGm.js";import{t as We}from"./SelectedItemsInfo-DkzLiY3j.js";var Ge=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,n){let r=t?this.allAsyncListeners:this.allSyncListeners,i=r.get(e);return!i&&n&&(i=new Set,r.set(e,i)),i}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,n=!1){this.getListeners(e,n,!0).add(t)}removeEventListener(e,t,n=!1){let r=this.getListeners(e,n,!1);r&&(r.delete(t),r.size===0&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){this.getGlobalListeners(t).add(e)}removeGlobalListener(e,t=!1){this.getGlobalListeners(t).delete(e)}dispatchEvent(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){let n=e.type;if(t&&`event`in e){let t=e.event;t instanceof Event&&(e.eventPath=t.composedPath())}let{frameworkOverrides:r}=this,i=e=>{let n=r?()=>r.wrapIncoming(e):e;t?this.dispatchAsync(n):n()},a=this.getListeners(n,t,!1);if((a?.size??0)>0){let t=new Set(a);for(let n of t)a?.has(n)&&i(()=>n(e))}let o=this.getGlobalListeners(t);if(o.size>0){let t=new Set(o);for(let r of t)i(()=>r(n,e))}}getGlobalListeners(e){return e?this.globalAsyncListeners:this.globalSyncListeners}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){let e=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(e):e(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;let e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(e=>e())}};function Ke(e,t){return t}function qe(e){return e?.getLocaleTextFunc()??Ke}function Je(e,t,n,r){let i=t[n];return e.getLocaleTextFunc()(n,typeof i==`function`?i(r):i,r)}function Ye(e){return e==null||e===``?null:e}function A(e){return e!=null&&e!==``}function j(e){return!A(e)}function Xe(e){return e!=null&&typeof e.toString==`function`?e.toString():null}function Ze(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)}function Qe(e,t,n=!1){let r=e==null,i=t==null;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&i)return 0;if(r)return-1;if(i)return 1;function a(e,t){return e>t?1:e<t?-1:0}if(typeof e!=`string`||!n)return a(e,t);try{return e.localeCompare(t)}catch{return a(e,t)}}var $e=new Set([`__proto__`,`constructor`,`prototype`]);function et(e,t){if(e!=null){if(Array.isArray(e)){for(let n=0;n<e.length;n++)t(n.toString(),e[n]);return}for(let n of Object.keys(e).filter(e=>!$e.has(e)))t(n,e[n])}}function M(e,t,n=!0,r=!1){A(t)&&et(t,(t,i)=>{let a=e[t];a!==i&&(r&&a==null&&typeof i==`object`&&i&&i.constructor===Object&&(a={},e[t]=a),nt(i)&&nt(a)&&!Array.isArray(a)?M(a,i,n,r):(n||i!==void 0)&&(e[t]=i))})}function tt(e,t,n){if(!t||!e)return;if(!n)return e[t];let r=t.split(`.`),i=e;for(let e=0;e<r.length;e++){if(i==null)return;i=i[r[e]]}return i}function nt(e){return typeof e==`object`&&!!e}var rt=class e{static applyGlobalGridOptions(t){if(!e.gridOptions)return{...t};let n={};return M(n,e.gridOptions,!0,!0),e.mergeStrategy===`deep`?M(n,t,!0,!0):n={...n,...t},e.gridOptions.context&&(n.context=e.gridOptions.context),t.context&&(e.mergeStrategy===`deep`&&n.context&&M(t.context,n.context,!0,!0),n.context=t.context),n}};rt.gridOptions=void 0,rt.mergeStrategy=`shallow`;var it=rt,at={suppressContextMenu:!1,preventDefaultOnContextMenu:!1,allowContextMenuWithControlKey:!1,suppressMenuHide:!0,enableBrowserTooltips:!1,tooltipTrigger:`hover`,tooltipShowDelay:2e3,tooltipHideDelay:1e4,tooltipMouseTrack:!1,tooltipShowMode:`standard`,tooltipInteraction:!1,copyHeadersToClipboard:!1,copyGroupHeadersToClipboard:!1,clipboardDelimiter:` `,suppressCopyRowsToClipboard:!1,suppressCopySingleCellRanges:!1,suppressLastEmptyLineOnPaste:!1,suppressClipboardPaste:!1,suppressClipboardApi:!1,suppressCutToClipboard:!1,maintainColumnOrder:!1,enableStrictPivotColumnOrder:!1,suppressFieldDotNotation:!1,allowDragFromColumnsToolPanel:!1,suppressMovableColumns:!1,suppressColumnMoveAnimation:!1,suppressMoveWhenColumnDragging:!1,suppressDragLeaveHidesColumns:!1,suppressRowGroupHidesColumns:!1,suppressAutoSize:!1,autoSizePadding:20,skipHeaderOnAutoSize:!1,singleClickEdit:!1,suppressClickEdit:!1,readOnlyEdit:!1,stopEditingWhenCellsLoseFocus:!1,enterNavigatesVertically:!1,enterNavigatesVerticallyAfterEdit:!1,enableCellEditingOnBackspace:!1,undoRedoCellEditing:!1,undoRedoCellEditingLimit:10,suppressCsvExport:!1,suppressExcelExport:!1,cacheQuickFilter:!1,includeHiddenColumnsInQuickFilter:!1,excludeChildrenWhenTreeDataFiltering:!1,enableAdvancedFilter:!1,includeHiddenColumnsInAdvancedFilter:!1,enableCharts:!1,masterDetail:!1,keepDetailRows:!1,keepDetailRowsCount:10,detailRowAutoHeight:!1,tabIndex:0,rowBuffer:10,valueCache:!1,valueCacheNeverExpires:!1,enableCellExpressions:!1,suppressTouch:!1,suppressFocusAfterRefresh:!1,suppressBrowserResizeObserver:!1,suppressPropertyNamesCheck:!1,suppressChangeDetection:!1,debug:!1,suppressLoadingOverlay:!1,suppressNoRowsOverlay:!1,pagination:!1,paginationPageSize:100,paginationPageSizeSelector:!0,paginationAutoPageSize:!1,paginateChildRows:!1,suppressPaginationPanel:!1,pivotMode:!1,pivotPanelShow:`never`,pivotDefaultExpanded:0,pivotSuppressAutoColumn:!1,suppressExpandablePivotGroups:!1,functionsReadOnly:!1,suppressAggFuncInHeader:!1,alwaysAggregateAtRootLevel:!1,aggregateOnlyChangedColumns:!1,suppressAggFilteredOnly:!1,removePivotHeaderRowWhenSingleValueColumn:!1,animateRows:!0,cellFlashDuration:500,cellFadeDuration:1e3,allowShowChangeAfterFilter:!1,domLayout:`normal`,ensureDomOrder:!1,enableRtl:!1,suppressColumnVirtualisation:!1,suppressMaxRenderedRowRestriction:!1,suppressRowVirtualisation:!1,rowDragManaged:!1,rowDragInsertDelay:500,suppressRowDrag:!1,suppressMoveWhenRowDragging:!1,rowDragEntireRow:!1,rowDragMultiRow:!1,embedFullWidthRows:!1,groupDisplayType:`singleColumn`,groupDefaultExpanded:0,groupMaintainOrder:!1,groupSelectsChildren:!1,groupSuppressBlankHeader:!1,groupSelectsFiltered:!1,showOpenedGroup:!1,groupRemoveSingleChildren:!1,groupRemoveLowestSingleChildren:!1,groupHideOpenParents:!1,groupAllowUnbalanced:!1,rowGroupPanelShow:`never`,suppressMakeColumnVisibleAfterUnGroup:!1,treeData:!1,rowGroupPanelSuppressSort:!1,suppressGroupRowsSticky:!1,rowModelType:`clientSide`,asyncTransactionWaitMillis:50,suppressModelUpdateAfterUpdateTransaction:!1,cacheOverflowSize:1,infiniteInitialRowCount:1,serverSideInitialRowCount:1,cacheBlockSize:100,maxBlocksInCache:-1,maxConcurrentDatasourceRequests:2,blockLoadDebounceMillis:0,purgeClosedRowNodes:!1,serverSideSortAllLevels:!1,serverSideOnlyRefreshFilteredGroups:!1,serverSidePivotResultFieldSeparator:`_`,viewportRowModelPageSize:5,viewportRowModelBufferSize:5,alwaysShowHorizontalScroll:!1,alwaysShowVerticalScroll:!1,debounceVerticalScrollbar:!1,suppressHorizontalScroll:!1,suppressScrollOnNewData:!1,suppressScrollWhenPopupsAreOpen:!1,suppressAnimationFrame:!1,suppressMiddleClickScrolls:!1,suppressPreventDefaultOnMouseWheel:!1,rowMultiSelectWithClick:!1,suppressRowDeselection:!1,suppressRowClickSelection:!1,suppressCellFocus:!1,suppressHeaderFocus:!1,suppressMultiRangeSelection:!1,enableCellTextSelection:!1,enableRangeSelection:!1,enableRangeHandle:!1,enableFillHandle:!1,fillHandleDirection:`xy`,suppressClearOnFillReduction:!1,accentedSort:!1,unSortIcon:!1,suppressMultiSort:!1,alwaysMultiSort:!1,suppressMaintainUnsortedOrder:!1,suppressRowHoverHighlight:!1,suppressRowTransform:!1,columnHoverHighlight:!1,deltaSort:!1,enableGroupEdit:!1,groupLockGroupColumns:0,serverSideEnableClientSideSort:!1,suppressServerSideFullWidthLoadingRow:!1,pivotMaxGeneratedColumns:-1,columnMenu:`new`,reactiveCustomComponents:!0,suppressSetFilterByDefault:!1,rowNumbers:!1,enableFilterHandlers:!1};function ot(e,t,n){n==null||typeof n==`string`&&n==``?ct(e,t):st(e,t,n)}function st(e,t,n){e.setAttribute(lt(t),n.toString())}function ct(e,t){e.removeAttribute(lt(t))}function lt(e){return`aria-${e}`}function ut(e,t){t?e.setAttribute(`role`,t):e.removeAttribute(`role`)}function dt(e){let t;return t=e===`asc`?`ascending`:e===`desc`?`descending`:e===`mixed`?`other`:`none`,t}function ft(e){return e.getAttribute(`aria-label`)}function pt(e,t){ot(e,`label`,t)}function mt(e,t){ot(e,`labelledby`,t)}function ht(e,t){ot(e,`live`,t)}function gt(e,t){ot(e,`atomic`,t)}function _t(e,t){ot(e,`relevant`,t)}function vt(e,t){ot(e,`invalid`,t)}function yt(e,t){ot(e,`hidden`,t)}function bt(e,t){st(e,`expanded`,t)}function xt(e,t){st(e,`setsize`,t)}function St(e,t){st(e,`posinset`,t)}function Ct(e,t){st(e,`multiselectable`,t)}function wt(e,t){st(e,`rowcount`,t)}function Tt(e,t){st(e,`rowindex`,t)}function Et(e,t){st(e,`colcount`,t)}function Dt(e,t){st(e,`colindex`,t)}function Ot(e,t){st(e,`colspan`,t)}function kt(e,t){st(e,`sort`,t)}function At(e){ct(e,`sort`)}function jt(e,t){ot(e,`selected`,t)}function Mt(e,t){ot(e,`controls`,t)}function Nt(e,t){Mt(e,t.id),mt(t,e.id)}function Pt(e,t){ot(e,`owns`,t)}function Ft(e,t){return t===void 0?e(`ariaIndeterminate`,`indeterminate`):t===!0?e(`ariaChecked`,`checked`):e(`ariaUnchecked`,`unchecked`)}var It,Lt,Rt,zt,Bt,Vt,Ht;function Ut(){return It===void 0&&(It=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),It}function Wt(){return Lt===void 0&&(Lt=/(firefox)/i.test(navigator.userAgent)),Lt}function Gt(){return Rt===void 0&&(Rt=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Rt}function Kt(){return zt===void 0&&(zt=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1),zt}function qt(e){if(!e)return null;let t=e.tabIndex,n=e.getAttribute(`tabIndex`);return t===-1&&(n===null||n===``&&!Wt())?null:t.toString()}function Jt(){if(Ht!==void 0)return Ht;if(!document.body)return-1;let e=1e6,t=Wt()?6e6:1e9,n=document.createElement(`div`);for(document.body.appendChild(n);;){let r=e*2;if(n.style.height=r+`px`,r>t||n.clientHeight!==r)break;e=r}return document.body.removeChild(n),Ht=e,e}function Yt(){return Vt??Xt(),Vt}function Xt(){let e=document.body,t=document.createElement(`div`);t.style.width=t.style.height=`100px`,t.style.opacity=`0`,t.style.overflow=`scroll`,t.style.msOverflowStyle=`scrollbar`,t.style.position=`absolute`,e.appendChild(t);let n=t.offsetWidth-t.clientWidth;n===0&&t.clientWidth===0&&(n=null),t.parentNode&&t.parentNode.removeChild(t),n!=null&&(Vt=n,Bt=n===0)}function Zt(){return Bt??Xt(),Bt}var Qt=`[tabindex], input, select, button, textarea, [href]`,$t=`[disabled], .ag-disabled:not(.ag-button), .ag-disabled *`;function en(e){let t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,`input, select, button, textarea`),r=t.call(e,$t),i=gn(e);return n&&!r&&i}function N(e,t,n={}){let{skipAriaHidden:r}=n;e.classList.toggle(`ag-hidden`,!t),r||yt(e,!t)}function tn(e,t,n={}){let{skipAriaHidden:r}=n;e.classList.toggle(`ag-invisible`,!t),r||yt(e,!t)}function nn(e,t){let n=`disabled`,r=t?e=>e.setAttribute(n,``):e=>e.removeAttribute(n);r(e);let i=e.querySelectorAll(`input`)??[];for(let e of i)r(e)}function rn(e,t,n){let r=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof n==`number`){if(++r>n)break}else if(e===n)break}return!1}function an(e){let{height:t,width:n,borderTopWidth:r,borderRightWidth:i,borderBottomWidth:a,borderLeftWidth:o,paddingTop:s,paddingRight:c,paddingBottom:l,paddingLeft:u,marginTop:d,marginRight:f,marginBottom:p,marginLeft:m,boxSizing:h}=window.getComputedStyle(e);return{height:parseFloat(t||`0`),width:parseFloat(n||`0`),borderTopWidth:parseFloat(r||`0`),borderRightWidth:parseFloat(i||`0`),borderBottomWidth:parseFloat(a||`0`),borderLeftWidth:parseFloat(o||`0`),paddingTop:parseFloat(s||`0`),paddingRight:parseFloat(c||`0`),paddingBottom:parseFloat(l||`0`),paddingLeft:parseFloat(u||`0`),marginTop:parseFloat(d||`0`),marginRight:parseFloat(f||`0`),marginBottom:parseFloat(p||`0`),marginLeft:parseFloat(m||`0`),boxSizing:h}}function on(e){let t=an(e);return t.boxSizing===`border-box`?t.height-t.paddingTop-t.paddingBottom:t.height}function sn(e){let t=an(e);return t.boxSizing===`border-box`?t.width-t.paddingLeft-t.paddingRight:t.width}function cn(e){let{height:t,marginBottom:n,marginTop:r}=an(e);return Math.floor(t+n+r)}function ln(e){let{width:t,marginLeft:n,marginRight:r}=an(e);return Math.floor(t+n+r)}function un(e){let t=e.getBoundingClientRect(),{borderTopWidth:n,borderLeftWidth:r,borderRightWidth:i,borderBottomWidth:a}=an(e);return{top:t.top+(n||0),left:t.left+(r||0),right:t.right+(i||0),bottom:t.bottom+(a||0)}}function dn(e,t){let n=e.scrollLeft;return t&&(n=Math.abs(n)),n}function fn(e,t,n){n&&(t*=-1),e.scrollLeft=t}function pn(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function mn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function hn(e){return!!e.offsetParent}function gn(e){let t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!hn(e)||window.getComputedStyle(e).visibility!==`visible`)}function _n(e){let t=document.createElement(`div`);return t.innerHTML=(e||``).trim(),t.firstChild}function vn(e,t,n){n&&n.nextSibling===t||(e.firstChild?n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement(`afterbegin`,t):e.appendChild(t))}function yn(e,t){for(let n=0;n<t.length;n++){let r=t[n],i=e.children[n];i!==r&&e.insertBefore(r,i)}}function bn(e){return e.replace(/[A-Z]/g,e=>`-${e.toLocaleLowerCase()}`)}function xn(e,t){if(t)for(let n of Object.keys(t)){let r=t[n];if(!n||!n.length||r==null)continue;let i=bn(n),a=r.toString(),o=a.replace(/\s*!important/g,``),s=o.length==a.length?void 0:`important`;e.style.setProperty(i,o,s)}}function Sn(e){return()=>{let t=e();return t?Cn(t)||wn(t):!0}}function Cn(e){return e.clientWidth<e.scrollWidth}function wn(e){return e.clientHeight<e.scrollHeight}function Tn(e,t){t===`flex`?(e.style.removeProperty(`width`),e.style.removeProperty(`minWidth`),e.style.removeProperty(`maxWidth`),e.style.flex=`1 1 auto`):En(e,t)}function En(e,t){t=On(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function Dn(e,t){t=On(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function On(e){return typeof e==`number`?`${e}px`:e}function kn(e){return e instanceof Node||e instanceof HTMLElement}function An(e,t,n){n==null||n===``?e.removeAttribute(t):e.setAttribute(t,n.toString())}function jn(e,t,n){let r=wr(e).ResizeObserver,i=r?new r(n):null;return i?.observe(t),()=>i?.disconnect()}function Mn(e,t){let n=wr(e);n.requestAnimationFrame?n.requestAnimationFrame(t):n.webkitRequestAnimationFrame?n.webkitRequestAnimationFrame(t):n.setTimeout(t,0)}var Nn=`data-ref`,Pn;function Fn(){return Pn??=document.createTextNode(` `),Pn.cloneNode()}function P(e){let{attrs:t,children:n,cls:r,ref:i,role:a,tag:o}=e,s=document.createElement(o);if(r&&(s.className=r),i&&s.setAttribute(Nn,i),a&&s.setAttribute(`role`,a),t)for(let e of Object.keys(t))s.setAttribute(e,t[e]);if(n)if(typeof n==`string`)s.textContent=n;else{let e=!0;for(let t of n)t&&(typeof t==`string`?(s.appendChild(document.createTextNode(t)),e=!1):typeof t==`function`?s.appendChild(t()):(e&&=(s.appendChild(Fn()),!1),s.append(P(t)),s.appendChild(Fn())))}return s}var In={};function Ln(e,t){In[t]||(e(),In[t]=!0)}function Rn(e,t,...n){e.get(`debug`)&&console.log(`AG Grid: `+t,...n)}function zn(e,...t){Ln(()=>console.warn(`AG Grid: `+e,...t),e+t?.join(``))}function Bn(e,...t){Ln(()=>console.error(`AG Grid: `+e,...t),e+t?.join(``))}var Vn={pending:!1,funcs:[]},Hn={pending:!1,funcs:[]};function Un(e,t=`setTimeout`,n){let r=t===`raf`?Hn:Vn;if(r.funcs.push(e),r.pending)return;r.pending=!0;let i=()=>{let e=r.funcs.slice();r.funcs.length=0,r.pending=!1,e.forEach(e=>e())};t===`raf`?Mn(n,i):window.setTimeout(i,0)}function Wn(e,t,n){let r;return function(...i){let a=this;window.clearTimeout(r),r=window.setTimeout(function(){e.isAlive()&&t.apply(a,i)},n)}}function Gn(e,t){let n=0;return function(...r){let i=this,a=Date.now();a-n<t||(n=a,e.apply(i,r))}}function Kn(e,t,n=100,r){let i=Date.now(),a=null,o=!1,s=()=>{let s=Date.now()-i>n;(e()||s)&&(t(),o=!0,a!=null&&(window.clearInterval(a),a=null),s&&r&&zn(r))};s(),o||(a=window.setInterval(s,10))}var qn=`https://www.ag-grid.com`,F=`34.1.1`,Jn=2e3,Yn=100,Xn=`_version_`,Zn=null,Qn=`${qn}/javascript-data-grid`;function $n(e){Zn=e}function er(e){Qn=e}function tr(e,t,n){return Zn?.getConsoleMessage(e,t)??[lr(e,t,n)]}function nr(e,t,n,r){e(`error #${t}`,...tr(t,n,r))}function rr(e){if(!e)return String(e);let t={};for(let n of Object.keys(e))typeof e[n]!=`object`&&typeof e[n]!=`function`&&(t[n]=e[n]);return JSON.stringify(t)}function ir(e){let t=e;return e instanceof Error?t=e.toString():typeof e==`object`&&(t=rr(e)),t}function ar(e){return e===void 0?`undefined`:e===null?`null`:e}function or(e,t){return`${e}?${t.toString()}`}function sr(e,t,n){let r=Array.from(t.entries()).sort((e,t)=>t[1].length-e[1].length),i=or(e,t);for(let[a,o]of r){if(a===Xn)continue;let r=i.length-n;if(r<=0)break;let s=r+3,c=o.length-s>Yn?o.slice(0,o.length-s)+`...`:o.slice(0,Yn)+`...`;t.set(a,c),i=or(e,t)}return i}function cr(e,t){let n=new URLSearchParams;if(n.append(Xn,F),t)for(let e of Object.keys(t))n.append(e,ir(t[e]));let r=`${Qn}/errors/${e}`,i=or(r,n);return i.length<=Jn?i:sr(r,n,Jn)}var lr=(e,t,n)=>{let r=cr(e,t);return`${n?n+`
`:``}Visit ${r}${n?``:`
Alternatively register the ValidationModule to see the full message in the console.`}`};function I(...e){nr(zn,e[0],e[1])}function L(...e){nr(Bn,e[0],e[1])}function ur(e,t,n){nr(Bn,e,t,n)}function dr(e,t){let n=t[0];return`error #${n} `+tr(n,t[1],e).join(` `)}function fr(...e){return dr(void 0,e)}function pr(e,t){return e.get(`rowModelType`)===t}function R(e,t){return pr(e,`clientSide`)}function mr(e,t){return pr(e,`serverSide`)}function z(e,t){return e.get(`domLayout`)===t}function hr(e){return Yr(e)!==void 0}function gr(e){return typeof e.get(`getRowHeight`)==`function`}function _r(e,t){return t?!e.get(`enableStrictPivotColumnOrder`):e.get(`maintainColumnOrder`)}function vr(e,t,n=!1,r){let{gos:i,environment:a}=e;if(r??=a.getDefaultRowHeight(),gr(i)){if(n)return{height:r,estimated:!0};let e={node:t,data:t.data},a=i.getCallback(`getRowHeight`)(e);if(xr(a))return a===0&&I(23),{height:Math.max(1,a),estimated:!1}}if(t.detail&&i.get(`masterDetail`))return yr(i);let o=i.get(`rowHeight`);return{height:o&&xr(o)?o:r,estimated:!1}}function yr(e){if(e.get(`detailRowAutoHeight`))return{height:1,estimated:!1};let t=e.get(`detailRowHeight`);return xr(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function br(e){let{environment:t,gos:n}=e,r=n.get(`rowHeight`);if(!r||j(r))return t.getDefaultRowHeight();let i=t.refreshRowHeightVariable();return i===-1?(I(24),t.getDefaultRowHeight()):i}function xr(e){return!isNaN(e)&&typeof e==`number`&&isFinite(e)}function Sr(e,t,n){let r=t[e.getDomDataKey()];return r?r[n]:void 0}function Cr(e,t,n,r){let i=e.getDomDataKey(),a=t[i];j(a)&&(a={},t[i]=a),a[n]=r}function B(e){let{gos:t,eGridDiv:n}=e,r=null,i=t.get(`getDocument`);return i&&A(i)?r=i():n&&(r=n.ownerDocument),r&&A(r)?r:document}function wr(e){return B(e).defaultView||window}function Tr(e){return e.eGridDiv.getRootNode()}function V(e){return Tr(e).activeElement}function Er(e){let t=null,n=null;try{t=B(e).fullscreenElement}catch{}finally{t||=Tr(e),n=t.querySelector(`body`)||(t instanceof ShadowRoot?t:t instanceof Document?t?.documentElement:t)}return n}function Dr(e){return Er(e)?.clientWidth??(window.innerWidth||-1)}function Or(e){return Er(e)?.clientHeight??(window.innerHeight||-1)}function kr(e,t,n){let r=e.getBoundingClientRect().height,i=Dr(n)-2,a=Or(n)-2;if(!e.offsetParent)return;let o=un(e.offsetParent),{clientY:s,clientX:c}=t,l=s-o.top-r/2,u=c-o.left-10,d=B(n),f=d.defaultView||window,p=f.pageYOffset||d.documentElement.scrollTop,m=f.pageXOffset||d.documentElement.scrollLeft;i>0&&u+e.clientWidth>i+m&&(u=i+m-e.clientWidth),u<0&&(u=0),a>0&&l+e.clientHeight>a+p&&(l=a+p-e.clientHeight),l<0&&(l=0),e.style.left=`${u}px`,e.style.top=`${l}px`}function Ar(e){let t=V(e);return t===null||t===B(e).body}function jr(e){return e.get(`ensureDomOrder`)?!1:e.get(`animateRows`)}function Mr(e){return!(e.get(`paginateChildRows`)||e.get(`groupHideOpenParents`)||z(e,`print`))}function Nr(e){return!e.get(`autoGroupColumnDef`)?.comparator&&!e.get(`treeData`)}function Pr(e){let t=e.get(`groupAggFiltering`);if(typeof t==`function`)return e.getCallback(`groupAggFiltering`);if(t===!0)return()=>!0}function Fr(e){return e.get(`grandTotalRow`)}function Ir(e,t){return t?!1:e.get(`groupDisplayType`)===`groupRows`}function Lr(e,t,n){return!!t.group&&!t.footer&&Ir(e,n)}function Rr(e){let t=e.getCallback(`getRowId`);return t===void 0?t:e=>{let n=t(e);return typeof n!=`string`&&(Ln(()=>I(25,{id:n}),`getRowIdString`),n=String(n)),n}}function zr(e){return e?.checkboxes??!0}function Br(e){return e?.mode===`multiRow`&&(e.headerCheckbox??!0)}function Vr(e){if(typeof e==`object`)return e.checkboxLocation??`selectionColumn`}function Hr(e){return e?.hideDisabledCheckboxes??!1}function Ur(e){return typeof e.get(`rowSelection`)!=`string`}function Wr(e){let t=e.get(`cellSelection`);return t===void 0?e.get(`enableRangeSelection`):!!t}function Gr(e){let t=e.get(`rowSelection`)??`single`;if(typeof t==`string`){let t=e.get(`suppressRowClickSelection`),n=e.get(`suppressRowDeselection`);return t&&n?!1:t?`enableDeselection`:n?`enableSelection`:!0}return t.mode===`singleRow`||t.mode===`multiRow`?t.enableClickSelection??!1:!1}function Kr(e){let t=Gr(e);return t===!0||t===`enableSelection`}function qr(e){let t=Gr(e);return t===!0||t===`enableDeselection`}function Jr(e){let t=e.get(`rowSelection`);return typeof t==`string`?e.get(`isRowSelectable`):t?.isRowSelectable}function Yr(e){let t=`beanName`in e&&e.beanName===`gos`?e.get(`rowSelection`):e.rowSelection;if(typeof t==`string`)switch(t){case`multiple`:return`multiRow`;case`single`:return`singleRow`;default:return}switch(t?.mode){case`multiRow`:case`singleRow`:return t.mode;default:return}}function Xr(e){return Yr(e)===`multiRow`}function Zr(e){let t=e.get(`rowSelection`);return typeof t==`string`?e.get(`rowMultiSelectWithClick`):t?.enableSelectionWithoutKeys??!1}function Qr(e){let t=e.get(`rowSelection`);if(typeof t==`string`){let t=e.get(`groupSelectsChildren`),n=e.get(`groupSelectsFiltered`);return t&&n?`filteredDescendants`:t?`descendants`:`self`}return t?.mode===`multiRow`?t.groupSelects:void 0}function $r(e,t=!0){let n=e.get(`rowSelection`);return typeof n==`object`?n.mode===`multiRow`?n.selectAll:`all`:t?`all`:void 0}function ei(e){let t=Qr(e);return t===`descendants`||t===`filteredDescendants`}function ti(e){let t=e.get(`rowSelection`);return typeof t==`object`&&t.masterSelects||`self`}function ni(e){return e.isModuleRegistered(`SetFilter`)&&!e.get(`suppressSetFilterByDefault`)}function ri(e){return e.get(`columnMenu`)===`legacy`}function ii(e){return!ri(e)}function ai(e){return!e||e.length<2?e:`on`+e[0].toUpperCase()+e.substring(1)}function oi(e,t,n){typeof e!=`object`&&(e={});let r={...e};return n.forEach(e=>{let n=t[e];n!==void 0&&(r[e]=n)}),r}function si(e,t){if(!e)return;let n={},r=!1;if(Object.keys(e).forEach(t=>{n[t]=e[t],r=!0}),!r)return;let i={type:`gridOptionsChanged`,options:n};t.dispatchEvent(i);let a={type:`componentStateChanged`,...n};t.dispatchEvent(a)}function H(e,t){return e.addGridCommonParams(t)}function ci(e){return e.get(`treeData`)?e.get(`treeDataParentIdField`)?`treeSelfRef`:e.get(`treeDataChildrenField`)?`treeNested`:`treePath`:`group`}var li=`__ag_Grid_Stop_Propagation`,ui=[`touchstart`,`touchend`,`touchmove`,`touchcancel`,`scroll`],di=[`wheel`],fi={};function pi(e){e[li]=!0}function mi(e){return e[li]===!0}var hi=(()=>{let e={select:`input`,change:`input`,submit:`form`,reset:`form`,error:`img`,load:`img`,abort:`img`};return t=>{if(typeof fi[t]==`boolean`)return fi[t];let n=document.createElement(e[t]||`div`);return t=`on`+t,fi[t]=t in n}})();function gi(e,t,n){let r=t;for(;r;){let t=Sr(e,r,n);if(t)return t;r=r.parentElement}return null}function _i(e,t){return!t||!e?!1:yi(t).indexOf(e)>=0}function vi(e){let t=[],n=e.target;for(;n;)t.push(n),n=n.parentElement;return t}function yi(e){let t=e;return t.path?t.path:t.composedPath?t.composedPath():vi(t)}function bi(e,t,n,r){let i=xi(n),a;i!=null&&(a={passive:i}),e&&e.addEventListener&&e.addEventListener(t,n,r,a)}var xi=e=>{let t=ui.includes(e),n=di.includes(e);if(t)return!0;if(n)return!1},U=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){let{destroyFunctions:e}=this;for(let t=0;t<e.length;t++)e[t]();e.length=0,this.destroyed=!0,this.dispatchLocalEvent({type:`destroyed`})}addEventListener(e,t,n){this.localEventService||=new Ge,this.localEventService.addEventListener(e,t,n)}removeEventListener(e,t,n){this.localEventService?.removeEventListener(e,t,n)}dispatchLocalEvent(e){this.localEventService?.dispatchEvent(e)}addManagedElementListeners(e,t){return this._setupListeners(e,t)}addManagedEventListeners(e){return this._setupListeners(this.eventSvc,e)}addManagedListeners(e,t){return this._setupListeners(e,t)}_setupListeners(e,t){let n=[];for(let r of Object.keys(t)){let i=t[r];i&&n.push(this._setupListener(e,r,i))}return n}_setupListener(e,t,n){if(this.destroyed)return()=>null;let r;return Si(e)?(e.__addEventListener(t,n),r=()=>(e.__removeEventListener(t,n),null)):(e instanceof HTMLElement?bi(this.beans.frameworkOverrides,e,t,n):e.addEventListener(t,n),r=()=>(e.removeEventListener(t,n),null)),this.destroyFunctions.push(r),()=>(r(),this.destroyFunctions=this.destroyFunctions.filter(e=>e!==r),null)}setupGridOptionListener(e,t){let{gos:n}=this;n.addPropertyEventListener(e,t);let r=()=>(n.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(r),()=>(r(),this.destroyFunctions=this.destroyFunctions.filter(e=>e!==r),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupGridOptionListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;let n=e.join(`-`)+ this.propertyListenerId++,r=e=>{if(e.changeSet){if(e.changeSet&&e.changeSet.id===this.lastChangeSetIdLookup[n])return;this.lastChangeSetIdLookup[n]=e.changeSet.id}t({type:`gridPropertyChanged`,changeSet:e.changeSet,source:e.source})};e.forEach(e=>this.setupGridOptionListener(e,r))}getLocaleTextFunc(){return qe(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){let n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n}createBean(e,t,n){return(t||this.stubContext).createBean(e,n)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}};function Si(e){return e.__addEventListener!==void 0}var Ci=/[&<>"']/g,wi={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Ti(e){return e?.toString().toString()??null}function Ei(e){return Ti(e)?.replace(Ci,e=>wi[e])??null}var Di={resizable:!0,sortable:!0},Oi=0;function ki(){return Oi++}function Ai(e){return e instanceof ji}var ji=class extends U{constructor(e,t,n,r){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=r,this.isColumn=!0,this.instanceId=ki(),this.autoHeaderHeight=null,this.moving=!1,this.resizing=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new Ge,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=Ei(n)}destroy(){super.destroy(),this.beans.rowSpanSvc?.deregister(this)}getInstanceId(){return this.instanceId}setState(){let{colDef:e,beans:{sortSvc:t,pinnedCols:n,colFlex:r}}=this;t?.initCol(this);let i=e.hide;i===void 0?this.visible=!e.initialHide:this.visible=!i,n?.initCol(this),r?.initCol(this)}setColDef(e,t,n){let r=e.spanRows!==this.colDef.spanRows;this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),r&&(this.beans.rowSpanSvc?.deregister(this),this.initRowSpan()),this.dispatchColEvent(`colDefChanged`,n)}getUserProvidedColDef(){return this.userProvidedColDef}getParent(){return this.parent}getOriginalParent(){return this.originalParent}postConstruct(){this.setState(),this.initMinAndMaxWidths(),this.resetActualWidth(`gridInitializing`),this.initDotNotation(),this.initTooltip(),this.initRowSpan(),this.addPivotListener()}initDotNotation(){let{gos:e,colDef:{field:t,tooltipField:n}}=this,r=e.get(`suppressFieldDotNotation`);this.fieldContainsDots=A(t)&&t.indexOf(`.`)>=0&&!r,this.tooltipFieldContainsDots=A(n)&&n.indexOf(`.`)>=0&&!r}initMinAndMaxWidths(){let e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??2**53-1}initTooltip(){this.beans.tooltipSvc?.initCol(this)}initRowSpan(){this.colDef.spanRows&&this.beans.rowSpanSvc?.register(this)}addPivotListener(){let e=this.beans.pivotColDefSvc,t=this.colDef.pivotValueColumn;!e||!t||this.addManagedListeners(t,{colDefChanged:t=>{let n=e.recreateColDef(this.colDef);this.setColDef(n,n,t.source)}})}resetActualWidth(e){let t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t,n=e.width,r=e.initialWidth;return t=n??r??200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){return this.beans.showRowGroupCols?.isRowGroupDisplayed(this,e)??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}__addEventListener(e,t){this.colEventSvc.addEventListener(e,t)}__removeEventListener(e,t){this.colEventSvc.removeEventListener(e,t)}addEventListener(e,t){this.frameworkEventListenerService=this.beans.frameworkOverrides.createLocalEventListenerWrapper?.(this.frameworkEventListenerService,this.colEventSvc);let n=this.frameworkEventListenerService?.wrap(e,t)??t;this.colEventSvc.addEventListener(e,n)}removeEventListener(e,t){let n=this.frameworkEventListenerService?.unwrap(e,t)??t;this.colEventSvc.removeEventListener(e,n)}createColumnFunctionCallbackParams(e){return H(this.gos,{node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){return this.beans.cellNavigation?.isSuppressNavigable(this,e)??!1}isCellEditable(e){return this.beans.editSvc?.isCellEditable({rowNode:e,column:this})??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){return this.beans.selectionSvc?.isCellCheckboxSelection(this,e)??!1}isSuppressPaste(e){return this.isColumnFunc(e,this.colDef?.suppressPaste??null)}isResizable(){return!!this.getColDefValue(`resizable`)}getColDefValue(e){return this.colDef[e]??Di[e]}isColumnFunc(e,t){return typeof t==`boolean`?t:typeof t==`function`?t(this.createColumnFunctionCallbackParams(e)):!1}createColumnEvent(e,t){return H(this.gos,{type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}isSortable(){return!!this.getColDefValue(`sortable`)}isSortAscending(){return this.sort===`asc`}isSortDescending(){return this.sort===`desc`}isSortNone(){return j(this.sort)}isSorting(){return A(this.sort)}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent(`leftChanged`,t))}isFilterActive(){return this.filterActive}isHovered(){return I(261),!!this.beans.colHover?.isHovered(this)}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent(`firstRightPinnedChanged`,t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent(`lastLeftPinnedChanged`,t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned===`left`||this.pinned===`right`}isPinnedLeft(){return this.pinned===`left`}isPinnedRight(){return this.pinned===`right`}getPinned(){return this.pinned}setVisible(e,t){let n=e===!0;this.visible!==n&&(this.visible=n,this.dispatchColEvent(`visibleChanged`,t)),this.dispatchStateUpdatedEvent(`hide`)}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getFirstRealParent(){let e=this.getOriginalParent();for(;e&&e.isPadding();)e=e.getOriginalParent();return e}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};let t=e.getPaddingLevel()+1,n=!0;for(;e;){if(!e.isPadding()){n=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:n}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){let t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return H(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(j(this.colDef.colSpan))return 1;let t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)}getRowSpan(e){if(j(this.colDef.rowSpan))return 1;let t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)}setActualWidth(e,t,n=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex!=null&&t!==`flex`&&t!==`gridInitializing`&&(this.flex=null),n||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent(`width`)}fireColumnWidthChangedEvent(e){this.dispatchColEvent(`widthChanged`,e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}dispatchColEvent(e,t,n){let r=this.createColumnEvent(e,t);n&&M(r,n),this.colEventSvc.dispatchEvent(r)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:`columnStateUpdated`,key:e})}};function W(e){return e instanceof Mi}var Mi=class extends U{constructor(e,t,n,r){super(),this.colGroupDef=e,this.groupId=t,this.padding=n,this.level=r,this.isColumn=!1,this.expandable=!1,this.instanceId=ki(),this.expandableListenerRemoveCallback=null,this.expanded=!!e?.openByDefault}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(e=>e.isVisible()):!1}isPadding(){return this.padding}setExpanded(e){this.expanded=e===void 0?!1:e,this.dispatchLocalEvent({type:`expandedChanged`})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){let e=[];return this.addLeafColumns(e),e}forEachLeafColumn(e){if(this.children)for(let t of this.children)Ai(t)?e(t):W(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){this.children&&this.children.forEach(t=>{Ai(t)?e.push(t):W(t)&&t.addLeafColumns(e)})}getColumnGroupShow(){let e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();let e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(t=>t.__addEventListener(`visibleChanged`,e)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(t=>t.__removeEventListener(`visibleChanged`,e)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,n=!1,r=this.findChildrenRemovingPadding();for(let i=0,a=r.length;i<a;i++){let a=r[i];if(!a.isVisible())continue;let o=a.getColumnGroupShow();o===`open`?(e=!0,n=!0):o===`closed`?(t=!0,n=!0):(e=!0,t=!0)}let i=e&&t&&n;this.expandable!==i&&(this.expandable=i,this.dispatchLocalEvent({type:`expandableChanged`}))}findChildrenRemovingPadding(){let e=[],t=n=>{n.forEach(n=>{W(n)&&n.isPadding()?t(n.children):e.push(n)})};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},Ni={numericColumn:{headerClass:`ag-right-aligned-header`,cellClass:`ag-right-aligned-cell`},rightAligned:{headerClass:`ag-right-aligned-header`,cellClass:`ag-right-aligned-cell`}};function Pi(e,t,n){let r={},i=e.gos;return Object.assign(r,i.get(`defaultColGroupDef`)),Object.assign(r,t),i.validateColDef(r,n),r}var Fi=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=Xe(e);let n=0;for(;;){let r=e??t;if(r?n!==0&&(r+=`_`+n):r=n,!this.existingKeys[r]){let t=String(r);return e&&n>0&&I(273,{providedId:e,usedId:t}),this.existingKeys[t]=!0,t}n++}}},Ii=Object.freeze([]);function G(e){if(e?.length)return e[e.length-1]}function Li(e,t,n){return e==null&&t==null?!0:e!=null&&t!=null&&e.length===t.length&&e.every((e,r)=>n?n(e,t[r]):t[r]===e)}function Ri(e,t){if(e)for(let n of e)t(n)}function zi(e,t){let n=e.indexOf(t);n>=0&&e.splice(n,1)}function Bi(e,t,n){for(let n=0;n<t.length;n++)zi(e,t[n]);for(let r=t.length-1;r>=0;r--)e.splice(n,0,t[r])}var Vi=`ag-Grid-AutoColumn`,Hi=`ag-Grid-SelectionColumn`;function Ui(e){let t=[],n=e=>{for(let r=0;r<e.length;r++){let i=e[r];Ai(i)?t.push(i):W(i)&&n(i.getChildren())}};return n(e),t}function Wi(e){return e.reduce((e,t)=>e+t.getActualWidth(),0)}function Gi(e,t,n){let r={};if(!t)return;pa(null,t,e=>{r[e.getInstanceId()]=e}),n&&pa(null,n,e=>{r[e.getInstanceId()]=null});let i=Object.values(r).filter(e=>e!=null);e.context.destroyBeans(i)}function Ki(e){return e.getId().startsWith(Vi)}function qi(e){return(typeof e==`string`?e:`getColId`in e?e.getColId():e.colId)?.startsWith(`ag-Grid-SelectionColumn`)??!1}function Ji(e){return(typeof e==`string`?e:`getColId`in e?e.getColId():e.colId)?.startsWith(`ag-Grid-RowNumbersColumn`)??!1}function Yi(e){return qi(e)||Ji(e)}function Xi(e){let t=[];return e instanceof Array?t=e:typeof e==`string`&&(t=e.split(`,`)),t}function Zi(e,t){return Li(e,t,(e,t)=>e.getColId()===t.getColId())}function Qi(e){e.map={},e.list.forEach(t=>e.map[t.getId()]=t)}function $i(e){return e===`gridOptionsUpdated`?`gridOptionsChanged`:e}function ea(e,t){let n=e===t,r=e.getColDef()===t,i=e.getColId()==t;return n||r||i}var ta=(e,t)=>(n,r)=>{let i={value1:void 0,value2:void 0},a=!1;return e&&(e[n]!==void 0&&(i.value1=e[n],a=!0),A(r)&&e[r]!==void 0&&(i.value2=e[r],a=!0)),!a&&t&&(t[n]!==void 0&&(i.value1=t[n]),A(r)&&t[r]!==void 0&&(i.value2=t[r])),i};function na(e,t=null,n,r,i){let a=new Fi,{existingCols:o,existingGroups:s,existingColKeys:c}=ra(r);a.addExistingKeys(c);let l=ia(e,t,0,n,o,a,s,i),{colGroupSvc:u}=e,d=u?.findMaxDepth(l,0)??0,f=u?u.balanceColumnTree(l,0,d,a):l;return pa(null,f,(e,t)=>{W(e)&&e.setupExpandable(),e.originalParent=t}),{columnTree:f,treeDepth:d}}function ra(e){let t=[],n=[],r=[];return e&&pa(null,e,e=>{if(W(e)){let t=e;n.push(t)}else{let n=e;r.push(n.getId()),t.push(n)}}),{existingCols:t,existingGroups:n,existingColKeys:r}}function ia(e,t,n,r,i,a,o,s){if(!t)return[];let{colGroupSvc:c}=e,l=Array(t.length);for(let u=0;u<l.length;u++){let d=t[u];c&&fa(d)?l[u]=c.createProvidedColumnGroup(r,d,n,i,a,o,s):l[u]=aa(e,r,d,i,a,s)}return l}function aa(e,t,n,r,i,a){let o=ca(n,r);o&&r?.splice(o.idx,1);let s=o?.column;if(s){let t=la(e,n,s.getColId());s.setColDef(t,n,a),sa(e,s,t,a)}else{let r=i.getUniqueKey(n.colId,n.field);s=new ji(la(e,n,r),n,r,t),e.context.createBean(s)}return e.dataTypeSvc?.addColumnListeners(s),s}function oa(e,t,n,r,i,a,o,s){let{sortSvc:c,pinnedCols:l,colFlex:u}=e;n!==void 0&&t.setVisible(!n,s),c&&(c.updateColSort(t,r,s),i!==void 0&&c.setColSortIndex(t,i)),a!==void 0&&l?.setColPinned(t,a),o!==void 0&&u?.setColFlex(t,o)}function sa(e,t,n,r){oa(e,t,n.hide,n.sort,n.sortIndex,n.pinned,n.flex,r);let i=t.getFlex();if(!(i!=null&&i>0))if(n.width!=null)t.setActualWidth(n.width,r);else{let e=t.getActualWidth();t.setActualWidth(e,r)}}function ca(e,t){if(t)for(let n=0;n<t.length;n++){let r=t[n].getUserProvidedColDef();if(r){if(e.colId!=null){if(t[n].getId()===e.colId)return{idx:n,column:t[n]};continue}if(e.field!=null){if(r.field===e.field)return{idx:n,column:t[n]};continue}if(r===e)return{idx:n,column:t[n]}}}}function la(e,t,n,r){let{gos:i,dataTypeSvc:a}=e,o={};M(o,i.get(`defaultColDef`),!1,!0);let s=ua(e,o,t,n);s&&da(e,s,o);let c=o.cellDataType;M(o,t,!1,!0),c!==void 0&&(o.cellDataType=c);let l=i.get(`autoGroupColumnDef`),u=Nr(i);return t.rowGroup&&l&&u&&M(o,{sort:l.sort,initialSort:l.initialSort},!1,!0),a&&(a.postProcess(o),a.validateColDef(o)),i.validateColDef(o,n,r),o}function ua(e,t,n,r){let i=e.dataTypeSvc?.updateColDefAndGetColumnType(t,n,r),a=n.type??i??t.type;return t.type=a,a?Xi(a):void 0}function da(e,t,n){if(!t.length)return;let r=Object.assign({},Ni),i=e.gos.get(`columnTypes`)||{};for(let e of Object.keys(i)){let t=i[e];e in r?I(34,{key:e}):(t.type&&I(35),r[e]=t)}t.forEach(e=>{let t=r[e.trim()];t?M(n,t,!1,!0):I(36,{t:e})})}function fa(e){return e.children!==void 0}function pa(e,t,n){if(t)for(let r=0;r<t.length;r++){let i=t[r];W(i)&&pa(i,i.getChildren(),n),n(i,e)}}function ma(e,t){let n=[],r=[],i=[];return e.forEach(e=>{let t=e.getColDef().lockPosition;t===`right`?i.push(e):t===`left`||t===!0?n.push(e):r.push(e)}),t.get(`enableRtl`)?[...i,...r,...n]:[...n,...r,...i]}function ha(e,t){let n=!0;return pa(null,t,t=>{if(!W(t))return;let r=t,i=r.getColGroupDef();if(!(i&&i.marryChildren))return;let a=[];r.getLeafColumns().forEach(t=>{let n=e.indexOf(t);a.push(n)}),Math.max.apply(Math,a)-Math.min.apply(Math,a)>r.getLeafColumns().length-1&&(n=!1)}),n}function ga(e,t){if(!e||e.length==0)return;let n=t(e[0]);for(let r=1;r<e.length;r++)if(n!==t(e[r]))return;return n}function _a(e,t,n){if(!t.length)return;let r=t.length===1?t[0]:null,i=ga(t,e=>e.getPinned());e.dispatchEvent({type:`columnPinned`,pinned:i??null,columns:t,column:r,source:n})}function va(e,t,n){if(!t.length)return;let r=t.length===1?t[0]:null,i=ga(t,e=>e.isVisible());e.dispatchEvent({type:`columnVisible`,visible:i,columns:t,column:r,source:n})}function ya(e,t,n,r){e.dispatchEvent({type:t,columns:n,column:n&&n.length==1?n[0]:null,source:r})}function ba(e,t,n,r,i=null){t?.length&&e.dispatchEvent({type:`columnResized`,columns:t,column:t.length===1?t[0]:null,flexColumns:i,finished:n,source:r})}function xa(e,t,n){let{colModel:r,rowGroupColsSvc:i,pivotColsSvc:a,autoColSvc:o,selectionColSvc:s,colAnimation:c,visibleCols:l,pivotResultCols:u,environment:d,valueColsSvc:f,eventSvc:p,gos:m}=e,h=r.getColDefCols()??[],g=s?.getColumns();if(!h?.length&&!g?.length)return!1;if(t?.state&&!t.state.forEach)return I(32),!1;let _=(r,o,s,c,l)=>{if(!r)return;let u=ta(o,t.defaultState),p=u(`flex`).value1;if(oa(e,r,u(`hide`).value1,u(`sort`).value1,u(`sortIndex`).value1,u(`pinned`).value1,p,n),p==null){let e=u(`width`).value1;if(e!=null){let t=r.getColDef().minWidth??d.getDefaultColumnMinWidth();t!=null&&e>=t&&r.setActualWidth(e,n)}}l||!r.isPrimary()||(f?.syncColumnWithState(r,n,u),i?.syncColumnWithState(r,n,u,s),a?.syncColumnWithState(r,n,u,c))},v=(c,u,d)=>{let f=Ca(e,n),h=u.slice(),g={},v={},y=[],b=[],x=[],S=0,C=i?.columns.slice()??[],ee=a?.columns.slice()??[];c.forEach(e=>{let t=e.colId;if(t.startsWith(`ag-Grid-AutoColumn`)){y.push(e),x.push(e);return}if(qi(t)){b.push(e),x.push(e);return}let n=d(t);n?(_(n,e,g,v,!1),zi(h,n)):(x.push(e),S+=1)});let w=e=>_(e,null,g,v,!1);h.forEach(w),i?.sortColumns(ka.bind(i,g,C)),a?.sortColumns(ka.bind(a,v,ee)),r.refreshCols(!1);let T=(e,t,n=[])=>{t.forEach(t=>{let r=e(t.colId);zi(n,r),_(r,t,null,null,!0)}),n.forEach(w)};return T(e=>o?.getColumn(e)??null,y,o?.getColumns()?.slice()),T(e=>s?.getColumn(e)??null,b,s?.getColumns()?.slice()),Ea(t,r,m),l.refresh(n),p.dispatchEvent({type:`columnEverythingChanged`,source:n}),f(),{unmatchedAndAutoStates:x,unmatchedCount:S}};c?.start();let{unmatchedAndAutoStates:y,unmatchedCount:b}=v(t.state||[],h,e=>r.getColDefCol(e));return(y.length>0||A(t.defaultState))&&(b=v(y,u?.getPivotResultCols()?.list??[],e=>u?.getPivotResultCol(e)??null).unmatchedCount),c?.finish(),b===0}function Sa(e,t){let{colModel:n,autoColSvc:r,selectionColSvc:i,eventSvc:a,gos:o}=e,s=n.getColDefCols();if(!s?.length)return;let c=Ui(n.getColDefColTree()),l=[],u=1e3,d=1e3,f=e=>{let t=Ta(e);j(t.rowGroupIndex)&&t.rowGroup&&(t.rowGroupIndex=u++),j(t.pivotIndex)&&t.pivot&&(t.pivotIndex=d++),l.push(t)};r?.getColumns()?.forEach(f),i?.getColumns()?.forEach(f),c?.forEach(f),xa(e,{state:l},t);let p=r?.getColumns()??[];xa(e,{state:[...i?.getColumns()??[],...p,...s].map(e=>({colId:e.colId})),applyOrder:!0},t),a.dispatchEvent(H(o,{type:`columnsReset`,source:t}))}function Ca(e,t){let{rowGroupColsSvc:n,pivotColsSvc:r,valueColsSvc:i,colModel:a,sortSvc:o,eventSvc:s}=e,c={rowGroupColumns:n?.columns.slice()??[],pivotColumns:r?.columns.slice()??[],valueColumns:i?.columns.slice()??[]},l=wa(e),u={};return l.forEach(e=>{u[e.colId]=e}),()=>{let i=(e,n,r,i)=>{if(Li(n.map(i),r.map(i)))return;let a=new Set(n);r.forEach(e=>{a.delete(e)||a.add(e)});let o=[...a];s.dispatchEvent({type:e,columns:o,column:o.length===1?o[0]:null,source:t})},d=e=>{let t=[];return a.forAllCols(n=>{let r=u[n.getColId()];r&&e(r,n)&&t.push(n)}),t},f=e=>e.getColId();i(`columnRowGroupChanged`,c.rowGroupColumns,n?.columns??[],f),i(`columnPivotChanged`,c.pivotColumns,r?.columns??[],f);let p=d((e,t)=>{let n=e.aggFunc!=null,r=n!=t.isValueActive(),i=n&&e.aggFunc!=t.getAggFunc();return r||i});p.length>0&&ya(s,`columnValueChanged`,p,t),ba(s,d((e,t)=>e.width!=t.getActualWidth()),!0,t),_a(s,d((e,t)=>e.pinned!=t.getPinned()),t),va(s,d((e,t)=>e.hide==t.isVisible()),t);let m=d((e,t)=>e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex());m.length>0&&o?.dispatchSortChangedEvents(t,m),Oa(l,wa(e),t,a,s)}}function wa(e){let{colModel:t,rowGroupColsSvc:n,pivotColsSvc:r}=e;if(j(t.getColDefCols())||!t.isAlive())return[];let i=n?.columns,a=r?.columns,o=[],s=e=>{let t=e.isRowGroupActive()&&i?i.indexOf(e):null,n=e.isPivotActive()&&a?a.indexOf(e):null,r=e.isValueActive()?e.getAggFunc():null,s=e.getSort()==null?null:e.getSort(),c=e.getSortIndex()==null?null:e.getSortIndex();o.push({colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:s,sortIndex:c,aggFunc:r,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:n,flex:e.getFlex()??null})};t.forAllCols(e=>s(e));let c=new Map(t.getCols().map((e,t)=>[e.getColId(),t]));return o.sort((e