n8n-editor-ui
Version:
Workflow Editor UI for n8n
3 lines • 980 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.13.4`}}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]=`66ac8c34-b3fa-4d88-a082-4eb9bae8c4ce`,e._sentryDebugIdIdentifier=`sentry-dbid-66ac8c34-b3fa-4d88-a082-4eb9bae8c4ce`)})()}catch{}import{o as e}from"./chunk-DxpFCn6T.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 w,h as T,j as E,jt as ee,kt as D,m as te,o as O,p as ne,pt as re,q as ie,rt as k,w as A,yn as ae,yt as j,zt as oe}from"./vue.runtime.esm-bundler-D9KLAxvJ.js";import{bt as se,g as ce}from"./_MapCache-CUJwh2qp.js";import{$i as le,Bt as ue,D as de,Et as fe,Fi as pe,Ii as me,Kt as he,Mi as ge,Qi as _e,R as ve,Tt as ye,W as be,Zi as xe,_t as Se,h as Ce,vt as we,zt as Te}from"./src-wni2AGA3.js";import{t as Ee}from"./_plugin-vue_export-helper-Dm3nT7Ps.js";import"./sanitize-html-my1ogl5v.js";import{t as De}from"./date-picker-_u2qOcgh.js";import{Ar as Oe,Tr as ke,en as Ae,jr as je,nn as Me,vn as Ne,ya as Pe}from"./users.store-BHWXXawf.js";import{$r as Fe,Br as Ie,Fr as Le,Gr as Re,Hr as ze,Jr as Be,L as Ve,Pr as He,Ps as Ue,Qr as We,Rr as Ge,Ur as Ke,Xr as qe,Yr as Je,Zr as Ye,ei as Xe,la as Ze,mo as Qe,ni as $e,qr as et,ti as tt,vl as nt,zr as rt}from"./constants-CIP7tKq1.js";import"./merge-BqvKZ38d.js";import{c as it}from"./_baseOrderBy-CaKruttV.js";import"./dateformat-CYfyw486.js";import{t as at}from"./useDebounce-CTeIt-cH.js";import{n as ot,t as st}from"./dataTable.store-DzRmkvR8.js";import"./Modal-CfEU2AWh.js";import{t as ct}from"./useClipboard-D72kaMkX.js";import"./ProjectIcon-BBMQDCgu.js";import{t as lt}from"./orderBy-D1a3yE-B.js";import{t as ut}from"./sourceControl.eventBus-BBs1sz7q.js";import{t as dt}from"./ProjectBreadcrumb-Dme2WBZU.js";import{t as ft}from"./DataTableActions-C7d9sXDl.js";import{t as pt}from"./SelectedItemsInfo-BMwkG_bF.js";var mt=`/`,ht=Ee(c({__name:`DataTableBreadcrumbs`,props:{dataTable:{},readOnly:{type:Boolean}},setup(e){let n=e,r=re(`renameInput`),s=st(),c=se(),l=Se(),u=ke(),m=o(n.dataTable.name),h=d(()=>!s.projectPermissions.dataTable.update||n.readOnly),v=d(()=>n.dataTable.project??null),y=d(()=>v.value?[{id:`datatables`,label:c.baseText(`dataTable.dataTables`),href:`/projects/${v.value.id}/datatables`}]:[]),b=async e=>{e.href&&await l.push(e.href)},S=async()=>{await l.push({name:$e,params:{projectId:n.dataTable.projectId}})},C=async()=>{await g(),r.value&&typeof r.value.forceFocus==`function`&&r.value.forceFocus()},T=async e=>{try{if(!await s.updateDataTable(n.dataTable.id,e,n.dataTable.projectId))throw Error(c.baseText(`generic.unknownError`));m.value=e,Me.track(`User renamed data table`,{data_table_id:n.dataTable.id,data_table_project_id:n.dataTable.projectId})}catch(e){m.value=n.dataTable.name,u.showError(e,c.baseText(`dataTable.rename.error`))}};return w(()=>n.dataTable.name,e=>{m.value=e}),(o,s)=>(t(),a(`div`,{class:x(o.$style[`data-table-breadcrumbs`]),"data-test-id":`data-table-breadcrumbs`},[E(_(de),{items:y.value,separator:mt,"highlight-last-item":!1,onItemSelected:b},{prepend:j(()=>[v.value?(t(),A(dt,{key:0,"current-project":v.value},null,8,[`current-project`])):p(``,!0)]),append:j(()=>[i(`span`,{class:x(o.$style.separator)},f(mt),2),E(_(Ce),{ref_key:`renameInput`,ref:r,modelValue:m.value,"onUpdate:modelValue":[s[0]||=e=>m.value=e,T],"data-test-id":`data-table-header-name-input`,placeholder:_(c).baseText(`dataTable.add.input.name.label`),class:x(o.$style[`breadcrumb-current`]),"read-only":e.readOnly,disabled:h.value},null,8,[`modelValue`,`placeholder`,`class`,`read-only`,`disabled`])]),_:1},8,[`items`]),i(`div`,{class:x(o.$style[`data-table-actions`])},[E(ft,{"data-table":n.dataTable,"is-read-only":e.readOnly,location:`breadcrumbs`,onRename:C,onOnDeleted:S},null,8,[`data-table`,`is-read-only`])],2)],2))}}),[[`__cssModules`,{$style:{"data-table-breadcrumbs":`_data-table-breadcrumbs_23od7_125`,"data-table-actions":`_data-table-actions_23od7_130`,separator:`_separator_23od7_135`,"breadcrumb-current":`_breadcrumb-current_23od7_141`}}]]),gt=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 _t(e,t){return t}function vt(e){return e?.getLocaleTextFunc()??_t}function yt(e,t,n,r){let i=t[n];return e.getLocaleTextFunc()(n,typeof i==`function`?i(r):i,r)}function bt(e){return e==null||e===``?null:e}function M(e){return e!=null&&e!==``}function N(e){return!M(e)}function xt(e){return e!=null&&typeof e.toString==`function`?e.toString():null}function St(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)}function Ct(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 wt=new Set([`__proto__`,`constructor`,`prototype`]);function Tt(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=>!wt.has(e)))t(n,e[n])}}function Et(e,t,n=!0,r=!1){M(t)&&Tt(t,(t,i)=>{let a=e[t];a!==i&&(r&&a==null&&typeof i==`object`&&i&&i.constructor===Object&&(a={},e[t]=a),Ot(i)&&Ot(a)&&!Array.isArray(a)?Et(a,i,n,r):(n||i!==void 0)&&(e[t]=i))})}function Dt(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 Ot(e){return typeof e==`object`&&!!e}var kt=class e{static applyGlobalGridOptions(t){if(!e.gridOptions)return{...t};let n={};return Et(n,e.gridOptions,!0,!0),e.mergeStrategy===`deep`?Et(n,t,!0,!0):n={...n,...t},e.gridOptions.context&&(n.context=e.gridOptions.context),t.context&&(e.mergeStrategy===`deep`&&n.context&&Et(t.context,n.context,!0,!0),n.context=t.context),n}};kt.gridOptions=void 0,kt.mergeStrategy=`shallow`;var At=kt,jt={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 Mt(e,t,n){n==null||typeof n==`string`&&n==``?Pt(e,t):Nt(e,t,n)}function Nt(e,t,n){e.setAttribute(Ft(t),n.toString())}function Pt(e,t){e.removeAttribute(Ft(t))}function Ft(e){return`aria-${e}`}function It(e,t){t?e.setAttribute(`role`,t):e.removeAttribute(`role`)}function Lt(e){let t;return t=e===`asc`?`ascending`:e===`desc`?`descending`:e===`mixed`?`other`:`none`,t}function Rt(e){return e.getAttribute(`aria-label`)}function zt(e,t){Mt(e,`label`,t)}function Bt(e,t){Mt(e,`labelledby`,t)}function Vt(e,t){Mt(e,`live`,t)}function Ht(e,t){Mt(e,`atomic`,t)}function Ut(e,t){Mt(e,`relevant`,t)}function Wt(e,t){Mt(e,`invalid`,t)}function Gt(e,t){Mt(e,`hidden`,t)}function Kt(e,t){Nt(e,`expanded`,t)}function qt(e,t){Nt(e,`setsize`,t)}function Jt(e,t){Nt(e,`posinset`,t)}function Yt(e,t){Nt(e,`multiselectable`,t)}function Xt(e,t){Nt(e,`rowcount`,t)}function Zt(e,t){Nt(e,`rowindex`,t)}function Qt(e,t){Nt(e,`colcount`,t)}function $t(e,t){Nt(e,`colindex`,t)}function en(e,t){Nt(e,`colspan`,t)}function tn(e,t){Nt(e,`sort`,t)}function nn(e){Pt(e,`sort`)}function rn(e,t){Mt(e,`selected`,t)}function an(e,t){Mt(e,`controls`,t)}function on(e,t){an(e,t.id),Bt(t,e.id)}function sn(e,t){Mt(e,`owns`,t)}function cn(e,t){return t===void 0?e(`ariaIndeterminate`,`indeterminate`):t===!0?e(`ariaChecked`,`checked`):e(`ariaUnchecked`,`unchecked`)}var ln,un,dn,fn,pn,mn,hn;function gn(){return ln===void 0&&(ln=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),ln}function _n(){return un===void 0&&(un=/(firefox)/i.test(navigator.userAgent)),un}function vn(){return dn===void 0&&(dn=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),dn}function yn(){return fn===void 0&&(fn=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1),fn}function bn(e){if(!e)return null;let t=e.tabIndex,n=e.getAttribute(`tabIndex`);return t===-1&&(n===null||n===``&&!_n())?null:t.toString()}function xn(){if(hn!==void 0)return hn;if(!document.body)return-1;let e=1e6,t=_n()?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),hn=e,e}function Sn(){return mn??Cn(),mn}function Cn(){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&&(mn=n,pn=n===0)}function wn(){return pn??Cn(),pn}var Tn=`[tabindex], input, select, button, textarea, [href]`,En=`[disabled], .ag-disabled:not(.ag-button), .ag-disabled *`;function Dn(e){let t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,`input, select, button, textarea`),r=t.call(e,En),i=Hn(e);return n&&!r&&i}function P(e,t,n={}){let{skipAriaHidden:r}=n;e.classList.toggle(`ag-hidden`,!t),r||Gt(e,!t)}function On(e,t,n={}){let{skipAriaHidden:r}=n;e.classList.toggle(`ag-invisible`,!t),r||Gt(e,!t)}function kn(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 An(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 jn(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 Mn(e){let t=jn(e);return t.boxSizing===`border-box`?t.height-t.paddingTop-t.paddingBottom:t.height}function Nn(e){let t=jn(e);return t.boxSizing===`border-box`?t.width-t.paddingLeft-t.paddingRight:t.width}function Pn(e){let{height:t,marginBottom:n,marginTop:r}=jn(e);return Math.floor(t+n+r)}function Fn(e){let{width:t,marginLeft:n,marginRight:r}=jn(e);return Math.floor(t+n+r)}function In(e){let t=e.getBoundingClientRect(),{borderTopWidth:n,borderLeftWidth:r,borderRightWidth:i,borderBottomWidth:a}=jn(e);return{top:t.top+(n||0),left:t.left+(r||0),right:t.right+(i||0),bottom:t.bottom+(a||0)}}function Ln(e,t){let n=e.scrollLeft;return t&&(n=Math.abs(n)),n}function Rn(e,t,n){n&&(t*=-1),e.scrollLeft=t}function zn(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function Bn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Vn(e){return!!e.offsetParent}function Hn(e){let t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!Vn(e)||window.getComputedStyle(e).visibility!==`visible`)}function Un(e){let t=document.createElement(`div`);return t.innerHTML=(e||``).trim(),t.firstChild}function Wn(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 Gn(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 Kn(e){return e.replace(/[A-Z]/g,e=>`-${e.toLocaleLowerCase()}`)}function qn(e,t){if(t)for(let n of Object.keys(t)){let r=t[n];if(!n||!n.length||r==null)continue;let i=Kn(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 Jn(e){return()=>{let t=e();return t?Yn(t)||Xn(t):!0}}function Yn(e){return e.clientWidth<e.scrollWidth}function Xn(e){return e.clientHeight<e.scrollHeight}function Zn(e,t){t===`flex`?(e.style.removeProperty(`width`),e.style.removeProperty(`minWidth`),e.style.removeProperty(`maxWidth`),e.style.flex=`1 1 auto`):Qn(e,t)}function Qn(e,t){t=er(t),e.style.width=t,e.style.maxWidth=t,e.style.minWidth=t}function $n(e,t){t=er(t),e.style.height=t,e.style.maxHeight=t,e.style.minHeight=t}function er(e){return typeof e==`number`?`${e}px`:e}function tr(e){return e instanceof Node||e instanceof HTMLElement}function nr(e,t,n){n==null||n===``?e.removeAttribute(t):e.setAttribute(t,n.toString())}function rr(e,t,n){let r=Xr(e).ResizeObserver,i=r?new r(n):null;return i?.observe(t),()=>i?.disconnect()}function ir(e,t){let n=Xr(e);n.requestAnimationFrame?n.requestAnimationFrame(t):n.webkitRequestAnimationFrame?n.webkitRequestAnimationFrame(t):n.setTimeout(t,0)}var ar=`data-ref`,or;function sr(){return or??=document.createTextNode(` `),or.cloneNode()}function F(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(ar,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(sr()),!1),s.append(F(t)),s.appendChild(sr())))}return s}var cr={};function lr(e,t){cr[t]||(e(),cr[t]=!0)}function ur(e,t,...n){e.get(`debug`)&&console.log(`AG Grid: `+t,...n)}function dr(e,...t){lr(()=>console.warn(`AG Grid: `+e,...t),e+t?.join(``))}function fr(e,...t){lr(()=>console.error(`AG Grid: `+e,...t),e+t?.join(``))}var pr={pending:!1,funcs:[]},mr={pending:!1,funcs:[]};function hr(e,t=`setTimeout`,n){let r=t===`raf`?mr:pr;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`?ir(n,i):window.setTimeout(i,0)}function gr(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 _r(e,t){let n=0;return function(...r){let i=this,a=Date.now();a-n<t||(n=a,e.apply(i,r))}}function vr(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&&dr(r))};s(),o||(a=window.setInterval(s,10))}var yr=`https://www.ag-grid.com`,I=`34.1.1`,br=2e3,xr=100,Sr=`_version_`,Cr=null,wr=`${yr}/javascript-data-grid`;function Tr(e){Cr=e}function Er(e){wr=e}function Dr(e,t,n){return Cr?.getConsoleMessage(e,t)??[Fr(e,t,n)]}function Or(e,t,n,r){e(`error #${t}`,...Dr(t,n,r))}function kr(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 Ar(e){let t=e;return e instanceof Error?t=e.toString():typeof e==`object`&&(t=kr(e)),t}function jr(e){return e===void 0?`undefined`:e===null?`null`:e}function Mr(e,t){return`${e}?${t.toString()}`}function Nr(e,t,n){let r=Array.from(t.entries()).sort((e,t)=>t[1].length-e[1].length),i=Mr(e,t);for(let[a,o]of r){if(a===Sr)continue;let r=i.length-n;if(r<=0)break;let s=r+3,c=o.length-s>xr?o.slice(0,o.length-s)+`...`:o.slice(0,xr)+`...`;t.set(a,c),i=Mr(e,t)}return i}function Pr(e,t){let n=new URLSearchParams;if(n.append(Sr,I),t)for(let e of Object.keys(t))n.append(e,Ar(t[e]));let r=`${wr}/errors/${e}`,i=Mr(r,n);return i.length<=br?i:Nr(r,n,br)}var Fr=(e,t,n)=>{let r=Pr(e,t);return`${n?n+`
`:``}Visit ${r}${n?``:`
Alternatively register the ValidationModule to see the full message in the console.`}`};function L(...e){Or(dr,e[0],e[1])}function R(...e){Or(fr,e[0],e[1])}function Ir(e,t,n){Or(fr,e,t,n)}function Lr(e,t){let n=t[0];return`error #${n} `+Dr(n,t[1],e).join(` `)}function Rr(...e){return Lr(void 0,e)}function zr(e,t){return e.get(`rowModelType`)===t}function z(e,t){return zr(e,`clientSide`)}function Br(e,t){return zr(e,`serverSide`)}function B(e,t){return e.get(`domLayout`)===t}function Vr(e){return xi(e)!==void 0}function Hr(e){return typeof e.get(`getRowHeight`)==`function`}function Ur(e,t){return t?!e.get(`enableStrictPivotColumnOrder`):e.get(`maintainColumnOrder`)}function Wr(e,t,n=!1,r){let{gos:i,environment:a}=e;if(r??=a.getDefaultRowHeight(),Hr(i)){if(n)return{height:r,estimated:!0};let e={node:t,data:t.data},a=i.getCallback(`getRowHeight`)(e);if(qr(a))return a===0&&L(23),{height:Math.max(1,a),estimated:!1}}if(t.detail&&i.get(`masterDetail`))return Gr(i);let o=i.get(`rowHeight`);return{height:o&&qr(o)?o:r,estimated:!1}}function Gr(e){if(e.get(`detailRowAutoHeight`))return{height:1,estimated:!1};let t=e.get(`detailRowHeight`);return qr(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function Kr(e){let{environment:t,gos:n}=e,r=n.get(`rowHeight`);if(!r||N(r))return t.getDefaultRowHeight();let i=t.refreshRowHeightVariable();return i===-1?(L(24),t.getDefaultRowHeight()):i}function qr(e){return!isNaN(e)&&typeof e==`number`&&isFinite(e)}function Jr(e,t,n){let r=t[e.getDomDataKey()];return r?r[n]:void 0}function Yr(e,t,n,r){let i=e.getDomDataKey(),a=t[i];N(a)&&(a={},t[i]=a),a[n]=r}function V(e){let{gos:t,eGridDiv:n}=e,r=null,i=t.get(`getDocument`);return i&&M(i)?r=i():n&&(r=n.ownerDocument),r&&M(r)?r:document}function Xr(e){return V(e).defaultView||window}function Zr(e){return e.eGridDiv.getRootNode()}function H(e){return Zr(e).activeElement}function Qr(e){let t=null,n=null;try{t=V(e).fullscreenElement}catch{}finally{t||=Zr(e),n=t.querySelector(`body`)||(t instanceof ShadowRoot?t:t instanceof Document?t?.documentElement:t)}return n}function $r(e){return Qr(e)?.clientWidth??(window.innerWidth||-1)}function ei(e){return Qr(e)?.clientHeight??(window.innerHeight||-1)}function ti(e,t,n){let r=e.getBoundingClientRect().height,i=$r(n)-2,a=ei(n)-2;if(!e.offsetParent)return;let o=In(e.offsetParent),{clientY:s,clientX:c}=t,l=s-o.top-r/2,u=c-o.left-10,d=V(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 ni(e){let t=H(e);return t===null||t===V(e).body}function ri(e){return e.get(`ensureDomOrder`)?!1:e.get(`animateRows`)}function ii(e){return!(e.get(`paginateChildRows`)||e.get(`groupHideOpenParents`)||B(e,`print`))}function ai(e){return!e.get(`autoGroupColumnDef`)?.comparator&&!e.get(`treeData`)}function oi(e){let t=e.get(`groupAggFiltering`);if(typeof t==`function`)return e.getCallback(`groupAggFiltering`);if(t===!0)return()=>!0}function si(e){return e.get(`grandTotalRow`)}function ci(e,t){return t?!1:e.get(`groupDisplayType`)===`groupRows`}function li(e,t,n){return!!t.group&&!t.footer&&ci(e,n)}function ui(e){let t=e.getCallback(`getRowId`);return t===void 0?t:e=>{let n=t(e);return typeof n!=`string`&&(lr(()=>L(25,{id:n}),`getRowIdString`),n=String(n)),n}}function di(e){return e?.checkboxes??!0}function fi(e){return e?.mode===`multiRow`&&(e.headerCheckbox??!0)}function pi(e){if(typeof e==`object`)return e.checkboxLocation??`selectionColumn`}function mi(e){return e?.hideDisabledCheckboxes??!1}function hi(e){return typeof e.get(`rowSelection`)!=`string`}function gi(e){let t=e.get(`cellSelection`);return t===void 0?e.get(`enableRangeSelection`):!!t}function _i(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 vi(e){let t=_i(e);return t===!0||t===`enableSelection`}function yi(e){let t=_i(e);return t===!0||t===`enableDeselection`}function bi(e){let t=e.get(`rowSelection`);return typeof t==`string`?e.get(`isRowSelectable`):t?.isRowSelectable}function xi(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 Si(e){return xi(e)===`multiRow`}function Ci(e){let t=e.get(`rowSelection`);return typeof t==`string`?e.get(`rowMultiSelectWithClick`):t?.enableSelectionWithoutKeys??!1}function wi(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 Ti(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=wi(e);return t===`descendants`||t===`filteredDescendants`}function Di(e){let t=e.get(`rowSelection`);return typeof t==`object`&&t.masterSelects||`self`}function Oi(e){return e.isModuleRegistered(`SetFilter`)&&!e.get(`suppressSetFilterByDefault`)}function ki(e){return e.get(`columnMenu`)===`legacy`}function Ai(e){return!ki(e)}function ji(e){return!e||e.length<2?e:`on`+e[0].toUpperCase()+e.substring(1)}function Mi(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 Ni(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 U(e,t){return e.addGridCommonParams(t)}function Pi(e){return e.get(`treeData`)?e.get(`treeDataParentIdField`)?`treeSelfRef`:e.get(`treeDataChildrenField`)?`treeNested`:`treePath`:`group`}var Fi=`__ag_Grid_Stop_Propagation`,Ii=[`touchstart`,`touchend`,`touchmove`,`touchcancel`,`scroll`],Li=[`wheel`],Ri={};function zi(e){e[Fi]=!0}function Bi(e){return e[Fi]===!0}var Vi=(()=>{let e={select:`input`,change:`input`,submit:`form`,reset:`form`,error:`img`,load:`img`,abort:`img`};return t=>{if(typeof Ri[t]==`boolean`)return Ri[t];let n=document.createElement(e[t]||`div`);return t=`on`+t,Ri[t]=t in n}})();function Hi(e,t,n){let r=t;for(;r;){let t=Jr(e,r,n);if(t)return t;r=r.parentElement}return null}function Ui(e,t){return!t||!e?!1:Gi(t).indexOf(e)>=0}function Wi(e){let t=[],n=e.target;for(;n;)t.push(n),n=n.parentElement;return t}function Gi(e){let t=e;return t.path?t.path:t.composedPath?t.composedPath():Wi(t)}function Ki(e,t,n,r){let i=qi(n),a;i!=null&&(a={passive:i}),e&&e.addEventListener&&e.addEventListener(t,n,r,a)}var qi=e=>{let t=Ii.includes(e),n=Li.includes(e);if(t)return!0;if(n)return!1},W=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 gt,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 Ji(e)?(e.__addEventListener(t,n),r=()=>(e.__removeEventListener(t,n),null)):(e instanceof HTMLElement?Ki(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 vt(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 Ji(e){return e.__addEventListener!==void 0}var Yi=/[&<>"']/g,Xi={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Zi(e){return e?.toString().toString()??null}function Qi(e){return Zi(e)?.replace(Yi,e=>Xi[e])??null}var $i={resizable:!0,sortable:!0},ea=0;function ta(){return ea++}function na(e){return e instanceof ra}var ra=class extends W{constructor(e,t,n,r){super(),this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=r,this.isColumn=!0,this.instanceId=ta(),this.autoHeaderHeight=null,this.moving=!1,this.resizing=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.colEventSvc=new gt,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.flex=null,this.colIdSanitised=Qi(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=M(t)&&t.indexOf(`.`)>=0&&!r,this.tooltipFieldContainsDots=M(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 U(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]??$i[e]}isColumnFunc(e,t){return typeof t==`boolean`?t:typeof t==`function`?t(this.createColumnFunctionCallbackParams(e)):!1}createColumnEvent(e,t){return U(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 N(this.sort)}isSorting(){return M(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 L(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 U(this.gos,{node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(N(this.colDef.colSpan))return 1;let t=this.createBaseColDefParams(e),n=this.colDef.colSpan(t);return Math.max(n,1)}getRowSpan(e){if(N(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&&Et(r,n),this.colEventSvc.dispatchEvent(r)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:`columnStateUpdated`,key:e})}};function G(e){return e instanceof ia}var ia=class extends W{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=ta(),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)na(t)?e(t):G(t)&&t.forEachLeafColumn(e)}addLeafColumns(e){this.children&&this.children.forEach(t=>{na(t)?e.push(t):G(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=>{G(n)&&n.isPadding()?t(n.children):e.push(n)})};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},aa={numericColumn:{headerClass:`ag-right-aligned-header`,cellClass:`ag-right-aligned-cell`},rightAligned:{headerClass:`ag-right-aligned-header`,cellClass:`ag-right-aligned-cell`}};function oa(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 sa=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=xt(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&&L(273,{providedId:e,usedId:t}),this.existingKeys[t]=!0,t}n++}}},ca=Object.freeze([]);function K(e){if(e?.length)return e[e.length-1]}function la(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 ua(e,t){if(e)for(let n of e)t(n)}function da(e,t){let n=e.indexOf(t);n>=0&&e.splice(n,1)}function fa(e,t,n){for(let n=0;n<t.length;n++)da(e,t[n]);for(let r=t.length-1;r>=0;r--)e.splice(n,0,t[r])}var pa=`ag-Grid-AutoColumn`,ma=`ag-Grid-SelectionColumn`;function ha(e){let t=[],n=e=>{for(let r=0;r<e.length;r++){let i=e[r];na(i)?t.push(i):G(i)&&n(i.getChildren())}};return n(e),t}function ga(e){return e.reduce((e,t)=>e+t.getActualWidth(),0)}function _a(e,t,n){let r={};if(!t)return;za(null,t,e=>{r[e.getInstanceId()]=e}),n&&za(null,n,e=>{r[e.getInstanceId()]=null});let i=Object.values(r).filter(e=>e!=null);e.context.destroyBeans(i)}function va(e){return e.getId().startsWith(pa)}function ya(e){return(typeof e==`string`?e:`getColId`in e?e.getColId():e.colId)?.startsWith(`ag-Grid-SelectionColumn`)??!1}function ba(e){return(typeof e==`string`?e:`getColId`in e?e.getColId():e.colId)?.startsWith(`ag-Grid-RowNumbersColumn`)??!1}function xa(e){return ya(e)||ba(e)}function Sa(e){let t=[];return e instanceof Array?t=e:typeof e==`string`&&(t=e.split(`,`)),t}function Ca(e,t){return la(e,t,(e,t)=>e.getColId()===t.getColId())}function wa(e){e.map={},e.list.forEach(t=>e.map[t.getId()]=t)}function Ta(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 Da=(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),M(r)&&e[r]!==void 0&&(i.value2=e[r],a=!0)),!a&&t&&(t[n]!==void 0&&(i.value1=t[n]),M(r)&&t[r]!==void 0&&(i.value2=t[r])),i};function Oa(e,t=null,n,r,i){let a=new sa,{existingCols:o,existingGroups:s,existingColKeys:c}=ka(r);a.addExistingKeys(c);let l=Aa(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 za(null,f,(e,t)=>{G(e)&&e.setupExpandable(),e.originalParent=t}),{columnTree:f,treeDepth:d}}function ka(e){let t=[],n=[],r=[];return e&&za(null,e,e=>{if(G(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 Aa(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&&Ra(d)?l[u]=c.createProvidedColumnGroup(r,d,n,i,a,o,s):l[u]=ja(e,r,d,i,a,s)}return l}function ja(e,t,n,r,i,a){let o=Pa(n,r);o&&r?.splice(o.idx,1);let s=o?.column;if(s){let t=Fa(e,n,s.getColId());s.setColDef(t,n,a),Na(e,s,t,a)}else{let r=i.getUniqueKey(n.colId,n.field);s=new ra(Fa(e,n,r),n,r,t),e.context.createBean(s)}return e.dataTypeSvc?.addColumnListeners(s),s}function Ma(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 Na(e,t,n,r){Ma(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 Pa(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 Fa(e,t,n,r){let{gos:i,dataTypeSvc:a}=e,o={};Et(o,i.get(`defaultColDef`),!1,!0);let s=Ia(e,o,t,n);s&&La(e,s,o);let c=o.cellDataType;Et(o,t,!1,!0),c!==void 0&&(o.cellDataType=c);let l=i.get(`autoGroupColumnDef`),u=ai(i);return t.rowGroup&&l&&u&&Et(o,{sort:l.sort,initialSort:l.initialSort},!1,!0),a&&(a.postProcess(o),a.validateColDef(o)),i.validateColDef(o,n,r),o}function Ia(e,t,n,r){let i=e.dataTypeSvc?.updateColDefAndGetColumnType(t,n,r),a=n.type??i??t.type;return t.type=a,a?Sa(a):void 0}function La(e,t,n){if(!t.length)return;let r=Object.assign({},aa),i=e.gos.get(`columnTypes`)||{};for(let e of Object.keys(i)){let t=i[e];e in r?L(34,{key:e}):(t.type&&L(35),r[e]=t)}t.forEach(e=>{let t=r[e.trim()];t?Et(n,t,!1,!0):L(36,{t:e})})}function Ra(e){return e.children!==void 0}function za(e,t,n){if(t)for(let r=0;r<t.length;r++){let i=t[r];G(i)&&za(i,i.getChildren(),n),n(i,e)}}function Ba(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 Va(e,t){let n=!0;return za(null,t,t=>{if(!G(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 Ha(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 Ua(e,t,n){if(!t.length)return;let r=t.length===1?t[0]:null,i=Ha(t,e=>e.getPinned());e.dispatchEvent({type:`columnPinned`,pinned:i??null,columns:t,column:r,source:n})}function Wa(e,t,n){if(!t.length)return;let r=t.length===1?t[0]:null,i=Ha(t,e=>e.isVisible());e.dispatchEvent({type:`columnVisible`,visible:i,columns:t,column:r,source:n})}function Ga(e,t,n,r){e.dispatchEvent({type:t,columns:n,column:n&&n.length==1?n[0]:null,source:r})}function Ka(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 qa(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 L(32),!1;let _=(r,o,s,c,l)=>{if(!r)return;let u=Da(o,t.defaultState),p=u(`flex`).value1;if(Ma(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=Ya(e,n),h=u.slice(),g={},v={},y=[],b=[],x=[],S=0,C=i?.columns.slice()??[],w=a?.columns.slice()??[];c.forEach(e=>{let t=e.colId;if(t.startsWith(`ag-Grid-AutoColumn`)){y.push(e),x.push(e);return}if(ya(t)){b.push(e),x.push(e);return}let n=d(t);n?(_(n,e,g,v,!1),da(h,n)):(x.push(e),S+=1)});let T=e=>_(e,null,g,v,!1);h.forEach(T),i?.sortColumns(to.bind(i,g,C)),a?.sortColumns(to.bind(a,v,w)),r.refreshCols(!1);let E=(e,t,n=[])=>{t.forEach(t=>{let r=e(t.colId);da(n,r),_(r,t,null,null,!0)}),n.forEach(T)};return E(e=>o?.getColumn(e)??null,y,o?.getColumns()?.slice()),E(e=>s?.getColumn(e)??null,b,s?.getColumns()?.slice()),Qa(t,r,m),l.refresh(n),p.dispatchEvent({type:`columnEverythingChanged`